// shared styles .six-storage-btn.cc, .six-storage-btn-flat.cc ,.six-storage-btn-flat,.six-storage-btn{ border: $button-border; border-radius: $button-radius; border-radius: 5px; display: inline-block; height: $button-height; line-height: $button-height; padding: $button-padding; vertical-align: middle; -webkit-tap-highlight-color: transparent; // Gets rid of tap active state text-transform: capitalize; } // Disabled shared style .six-storage-btn.six-storage-disabled.cc, .six-storage-btn-floating.six-storage-disabled.cc, .six-storage-btn-large.six-storage-disabled.cc, .six-storage-btn-small.six-storage-disabled.cc, .six-storage-btn-flat.six-storage-disabled.cc, .six-storage-btn.cc:disabled, .six-storage-btn-floating.cc:disabled, .six-storage-btn-large.cc:disabled, .six-storage-btn-small.cc:disabled, .six-storage-btn-flat.cc:disabled, .six-storage-btn.cc[disabled], .six-storage-btn-floating.cc[disabled], .six-storage-btn-large.cc[disabled], .six-storage-btn-small.cc[disabled], .six-storage-btn-flat.cc[disabled] { pointer-events: none; background-color: $button-disabled-background ; box-shadow: none; color: $button-disabled-color ; cursor: default; &:hover { background-color: $button-disabled-background ; color: $button-disabled-color; } } // Shared icon styles .six-storage-btn.cc, .six-storage-btn-floating.cc, .six-storage-btn-large.cc, .six-storage-btn-small.cc, .six-storage-btn-flat.cc { font-size: $button-font-size; outline: 0; i { font-size: $button-icon-font-size; line-height: inherit; } } // Shared focus button style .six-storage-btn.cc, .six-storage-btn-floating.cc { &:focus { background-color: darken($button-raised-background, 10%); } } // Raised Button .six-storage-btn.cc ,.six-storage-btn{ text-decoration: none; color: $button-raised-color; background-color: $button-raised-background ; text-align: center; letter-spacing: .5px; font-weight: normal; @extend .six-storage-z-depth-1; transition: background-color .2s ease-out; cursor: pointer; &:hover { background-color: $button-raised-background-hover; color: $button-raised-color; @extend .six-storage-z-depth-1-half; } } // Floating button .six-storage-btn-floating.cc { &:hover { background-color: $button-floating-background-hover; @extend .six-storage-z-depth-1-half; } &:before { border-radius: 0; } &.six-storage-btn-large { &.six-storage-halfway-fab { bottom: -$button-floating-large-size / 2; } width: $button-floating-large-size; height: $button-floating-large-size; padding: 0; i { line-height: $button-floating-large-size; } } &.six-storage-btn-small { &.six-storage-halfway-fab { bottom: -$button-floating-small-size / 2; } width: $button-floating-small-size; height: $button-floating-small-size; i { line-height: $button-floating-small-size; } } &.six-storage-halfway-fab { &.six-storage-left { right: auto; left: 24px; } position: absolute; right: 24px; bottom: -$button-floating-size / 2; } display: inline-block; color: $button-floating-color; position: relative; overflow: hidden; z-index: 1; width: $button-floating-size; height: $button-floating-size; line-height: $button-floating-size; padding: 0; background-color: $button-floating-background; border-radius: $button-floating-radius; @extend .six-storage-z-depth-1; transition: background-color .3s; cursor: pointer; vertical-align: middle; i { width: inherit; display: inline-block; text-align: center; color: $button-floating-color; font-size: $button-large-icon-font-size; line-height: $button-floating-size; } } // button fix button.six-storage-btn-floating.cc { border: $button-border; } // Fixed Action Button .six-storage-fixed-action-btn.cc { &.six-storage-active { ul { visibility: visible; } } // Directions &.direction-left, &.direction-right { padding: 0 0 0 15px; ul { text-align: right; right: 64px; top: 50%; transform: translateY(-50%); height: 100%; left: auto; /*width 100% only goes to width of button container */ width: 500px; li { display: inline-block; margin: 7.5px 15px 0 0; } } } &.direction-right { padding: 0 15px 0 0; ul { text-align: left; direction: rtl; left: 64px; right: auto; li { margin: 7.5px 0 0 15px; } } } &.direction-bottom { padding: 0 0 15px 0; ul { top: 64px; bottom: auto; display: flex; flex-direction: column-reverse; li { margin: 15px 0 0 0; } } } &.toolbar { &.six-storage-active { &>a i { opacity: 0; } } padding: 0; height: $button-floating-large-size; ul { display: flex; top: 0; bottom: 0; z-index: 1; li { flex: 1; display: inline-block; margin: 0; height: 100%; transition: none; a { display: block; overflow: hidden; position: relative; width: 100%; height: 100%; background-color: transparent; box-shadow: none; color: #fff; line-height: $button-floating-large-size; z-index: 1; i { line-height: inherit; } } } } } position: fixed; right: 23px; bottom: 23px; padding-top: 15px; margin-bottom: 0; z-index: 997; ul { left: 0; right: 0; text-align: center; position: absolute; bottom: 64px; margin: 0; visibility: hidden; li { margin-bottom: 15px; } a.six-storage-btn-floating { opacity: 0; } } .six-storage-fab-backdrop { position: absolute; top: 0; left: 0; z-index: -1; width: $button-floating-size; height: $button-floating-size; background-color: $button-floating-background; border-radius: $button-floating-radius; transform: scale(0); } } // Flat button .six-storage-btn-flat.cc ,.six-storage-btn-flat{ box-shadow: none; background-color: transparent; color: $button-flat-color; cursor: pointer; transition: background-color .2s; &:focus, &:hover { box-shadow: none; } &:focus { background-color: rgba(0, 0, 0, .1); } &.six-storage-disabled, &.six-storage-btn-flat[disabled] { background-color: transparent ; color: $button-flat-disabled-color ; cursor: default; } } // Large button .six-storage-btn-large.cc { @extend .six-storage-btn; height: $button-large-height; line-height: $button-large-height; font-size: $button-large-font-size; padding: 0 28px; i { font-size: $button-large-icon-font-size; } } // Small button .six-storage-btn-small.cc { @extend .six-storage-btn; height: $button-small-height; line-height: $button-small-height; font-size: $button-small-font-size; i { font-size: $button-small-icon-font-size; } } // Block button .six-storage-btn-block.cc { display: block; }