Details | Last modification | View Log | RSS feed
| Rev | Author | Line No. | Line |
|---|---|---|---|
| 1 | espaco | 1 | /*** |
| 2 | Custom buttons based on bootstrap SASS |
||
| 3 | ***/ |
||
| 4 | |||
| 5 | .btn { |
||
| 6 | outline: none !important; |
||
| 7 | @if $theme-type == "default" { |
||
| 8 | box-shadow: none !important; |
||
| 9 | } |
||
| 10 | |||
| 11 | &:hover { |
||
| 12 | transition: all 0.3s; |
||
| 13 | } |
||
| 14 | } |
||
| 15 | |||
| 16 | .btn:not(.btn-sm):not(.btn-lg) { |
||
| 17 | line-height: 1.44; |
||
| 18 | } |
||
| 19 | |||
| 20 | /*** |
||
| 21 | Custom color buttons |
||
| 22 | ***/ |
||
| 23 | |||
| 24 | @each $name, $colors in $component-colors { |
||
| 25 | .btn.#{$name}:not(.btn-outline) { |
||
| 26 | @include button-variant(map-get($colors, font), map-get($colors, base), map-get($colors, base)); |
||
| 27 | } |
||
| 28 | |||
| 29 | .btn.btn-outline.#{$name} { |
||
| 30 | border-color: map-get($colors, base); |
||
| 31 | color: map-get($colors, base); |
||
| 32 | background: none; |
||
| 33 | |||
| 34 | &:hover, |
||
| 35 | &:active, |
||
| 36 | &:active:hover, |
||
| 37 | &:active:focus, |
||
| 38 | &:focus, |
||
| 39 | &.active { |
||
| 40 | border-color: map-get($colors, base); |
||
| 41 | color: map-get($colors, font); |
||
| 42 | background-color: map-get($colors, base); |
||
| 43 | } |
||
| 44 | } |
||
| 45 | |||
| 46 | .btn.#{$name}-stripe { |
||
| 47 | border-left: 4px solid map-get($colors, base) !important; |
||
| 48 | } |
||
| 49 | |||
| 50 | |||
| 51 | .btn.#{$name}.btn-no-border:not(.active) { |
||
| 52 | border-color: transparent; |
||
| 53 | } |
||
| 54 | } |
||
| 55 | |||
| 56 | |||
| 57 | /* Circle Buttons */ |
||
| 58 | |||
| 59 | .btn-circle { |
||
| 60 | border-radius: 25px !important; |
||
| 61 | overflow: hidden; |
||
| 62 | } |
||
| 63 | |||
| 64 | .btn-circle-right { |
||
| 65 | border-radius: 0 25px 25px 0 !important; |
||
| 66 | } |
||
| 67 | |||
| 68 | .btn-circle-left { |
||
| 69 | border-radius: 25px 0 0 25px !important; |
||
| 70 | } |
||
| 71 | |||
| 72 | .btn-circle-bottom { |
||
| 73 | border-radius: 0 0 25px 25px !important; |
||
| 74 | } |
||
| 75 | |||
| 76 | .btn-circle-top { |
||
| 77 | border-radius: 25px 25px 0 0 !important; |
||
| 78 | } |
||
| 79 | |||
| 80 | .btn-icon-only { |
||
| 81 | height: 34px; |
||
| 82 | width: 34px; |
||
| 83 | text-align: center; |
||
| 84 | padding-left: 0; |
||
| 85 | padding-right: 0; |
||
| 86 | |||
| 87 | > [class^="icon-"], |
||
| 88 | > i { |
||
| 89 | text-align: center; |
||
| 90 | margin-top: 2px; |
||
| 91 | } |
||
| 92 | } |
||
| 93 | |||
| 94 | |||
| 95 | .btn-group.btn-group-circle { |
||
| 96 | > .btn { |
||
| 97 | &:first-child { |
||
| 98 | border-radius: 25px 0 0 25px !important; |
||
| 99 | } |
||
| 100 | |||
| 101 | &:last-child { |
||
| 102 | border-radius: 0 25px 25px 0 !important; |
||
| 103 | } |
||
| 104 | } |
||
| 105 | } |
||
| 106 | |||
| 107 | .btn-group.btn-group-devided { |
||
| 108 | > .btn { |
||
| 109 | margin-right: 5px; |
||
| 110 | |||
| 111 | &:last-child { |
||
| 112 | margin-right: 0; |
||
| 113 | } |
||
| 114 | } |
||
| 115 | } |
||
| 116 | |||
| 117 | .btn-group-vertical.btn-group-vertical-circle { |
||
| 118 | > .btn { |
||
| 119 | &:first-child { |
||
| 120 | border-radius: 25px 25px 0 0 !important; |
||
| 121 | } |
||
| 122 | |||
| 123 | &:last-child { |
||
| 124 | border-radius: 0 0 25px 25px !important; |
||
| 125 | } |
||
| 126 | } |
||
| 127 | } |
||
| 128 | |||
| 129 | @if $theme-type == "material-design" { |
||
| 130 | $uppercase-padding: 8px 14px 7px 14px !default; |
||
| 131 | $uppercase-padding-lg: 12px 26px 10px 26px !default; |
||
| 132 | $uppercase-padding-sm: 6px 18px 6px 18px !default; |
||
| 133 | $uppercase-padding-xs: 3px 8px 3px 8px !default; |
||
| 134 | |||
| 135 | .btn:not(.md-skip) { |
||
| 136 | font-size: 12px; |
||
| 137 | font-weight: 600; |
||
| 138 | text-transform: uppercase; |
||
| 139 | transition: box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1); |
||
| 140 | @include border-radius($general-border-radius); |
||
| 141 | overflow: hidden; |
||
| 142 | position: relative; |
||
| 143 | user-select: none; |
||
| 144 | |||
| 145 | @extend .md-shadow-z-1; |
||
| 146 | |||
| 147 | .btn-group > & { |
||
| 148 | @extend .md-shadow-z-1; |
||
| 149 | } |
||
| 150 | |||
| 151 | .search-form &, |
||
| 152 | .btn-theme-panel & { |
||
| 153 | box-shadow: none !important; |
||
| 154 | overflow: visible; |
||
| 155 | } |
||
| 156 | |||
| 157 | &.btn-link { |
||
| 158 | box-shadow: none; |
||
| 159 | color: $link-color; |
||
| 160 | |||
| 161 | &:hover { |
||
| 162 | text-decoration: none; |
||
| 163 | |||
| 164 | @extend .md-shadow-z-1; |
||
| 165 | } |
||
| 166 | } |
||
| 167 | |||
| 168 | &:hover { |
||
| 169 | @extend .md-shadow-z-2-hover; |
||
| 170 | } |
||
| 171 | |||
| 172 | &:active { |
||
| 173 | @extend .md-shadow-z-3-hover; |
||
| 174 | } |
||
| 175 | |||
| 176 | padding: $uppercase-padding; |
||
| 177 | |||
| 178 | > i { |
||
| 179 | margin-top: 0; |
||
| 180 | margin-left: 3px; |
||
| 181 | margin-right: 3px; |
||
| 182 | } |
||
| 183 | |||
| 184 | &.btn-sm { |
||
| 185 | font-size: 11px; |
||
| 186 | padding: $uppercase-padding-sm; |
||
| 187 | } |
||
| 188 | |||
| 189 | &.btn-xs { |
||
| 190 | font-size: 11px; |
||
| 191 | padding: $uppercase-padding-xs; |
||
| 192 | } |
||
| 193 | |||
| 194 | &.btn-lg { |
||
| 195 | font-size: 16px; |
||
| 196 | padding: $uppercase-padding-lg; |
||
| 197 | } |
||
| 198 | |||
| 199 | &.btn-icon-only { |
||
| 200 | padding-left: 0; |
||
| 201 | padding-right: 0; |
||
| 202 | |||
| 203 | > i { |
||
| 204 | margin-left: 0; |
||
| 205 | margin-right: 0; |
||
| 206 | } |
||
| 207 | } |
||
| 208 | } |
||
| 209 | } |