_badge.scss
5 years ago
_buttons.scss
5 years ago
_card.scss
5 years ago
_forms.scss
5 years ago
_table.scss
5 years ago
_buttons.scss
150 lines
| 1 | /** |
| 2 | * Buttons |
| 3 | */ |
| 4 | .everest-forms-btn, |
| 5 | a.everest-forms-btn, |
| 6 | button.everest-forms-btn { |
| 7 | border: none; |
| 8 | cursor: pointer; |
| 9 | overflow: hidden; |
| 10 | font-family: inherit; |
| 11 | padding: 10px 15px; |
| 12 | border-radius: 3px; |
| 13 | line-height: 1.25; |
| 14 | position: relative; |
| 15 | display: inline-block; |
| 16 | text-decoration: none; |
| 17 | color: $color_gray-base; |
| 18 | background: $color_gray-lighten; |
| 19 | transition: all 0.2s ease 0s; |
| 20 | z-index: 1; |
| 21 | |
| 22 | .evf-loading { |
| 23 | width: 14px; |
| 24 | height: 14px; |
| 25 | background-size: 14px 14px; |
| 26 | } |
| 27 | |
| 28 | &.everest-forms-btn-primary { |
| 29 | background-color: $everestforms; |
| 30 | color: $color-white; |
| 31 | |
| 32 | &:hover { |
| 33 | color: $color-white; |
| 34 | background-color: darken($everestforms, 10%); |
| 35 | } |
| 36 | } |
| 37 | |
| 38 | &.everest-forms-btn-small { |
| 39 | font-size: 12px; |
| 40 | padding: 5px 10px; |
| 41 | } |
| 42 | |
| 43 | &.everest-forms-btn-link { |
| 44 | font-weight: 600; |
| 45 | color: $everestforms; |
| 46 | background: transparent; |
| 47 | |
| 48 | &:hover { |
| 49 | color: darken($everestforms, 10%); |
| 50 | background: transparent; |
| 51 | } |
| 52 | |
| 53 | &:focus { |
| 54 | box-shadow: none; |
| 55 | text-decoration: underline; |
| 56 | } |
| 57 | } |
| 58 | |
| 59 | &.everest-forms-btn-icon { |
| 60 | background: $color_gray-more-lighten; |
| 61 | color: $color_gray-normal; |
| 62 | padding: 6px; |
| 63 | |
| 64 | svg { |
| 65 | display: flex; |
| 66 | fill: currentColor; |
| 67 | height: 20px; |
| 68 | width: 20px; |
| 69 | } |
| 70 | } |
| 71 | |
| 72 | &.dashicons { |
| 73 | padding: 8px 15px; |
| 74 | |
| 75 | &::before { |
| 76 | width: 20px; |
| 77 | height: 20px; |
| 78 | line-height: 1; |
| 79 | font-size: 20px; |
| 80 | margin-right: 10px; |
| 81 | font-family: dashicons; |
| 82 | vertical-align: middle; |
| 83 | padding: 2px 12px 2px 0; |
| 84 | border-right: 1px solid transparentize($color_gray-base, 0.7); |
| 85 | } |
| 86 | } |
| 87 | |
| 88 | &:hover { |
| 89 | background-color: darken($color_gray-lighten, 10%); |
| 90 | } |
| 91 | |
| 92 | &:active, |
| 93 | &.is-active { |
| 94 | background: $everestforms; |
| 95 | color: $color-white; |
| 96 | } |
| 97 | |
| 98 | &:focus { |
| 99 | outline: none; |
| 100 | box-shadow: 0 0 0 2px lighten($everestforms, 35%); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | .everest-forms-btn-group { |
| 105 | display: inline-flex; |
| 106 | |
| 107 | button, |
| 108 | .everest-forms-btn { |
| 109 | margin: 0 4px; |
| 110 | |
| 111 | &:first-child { |
| 112 | margin-left: 0; |
| 113 | } |
| 114 | |
| 115 | &:last-child { |
| 116 | margin-right: 0; |
| 117 | } |
| 118 | |
| 119 | &.flex { |
| 120 | flex: 1; |
| 121 | display: inline-flex; |
| 122 | justify-content: space-around; |
| 123 | } |
| 124 | } |
| 125 | |
| 126 | &.flex { |
| 127 | display: flex; |
| 128 | } |
| 129 | |
| 130 | &.everest-forms-btn-group--inline { |
| 131 | background: $color_gray-lighten; |
| 132 | padding: 4px; |
| 133 | border-radius: 4px; |
| 134 | position: relative; |
| 135 | vertical-align: middle; |
| 136 | |
| 137 | button, |
| 138 | .everest-forms-btn { |
| 139 | padding: 4px 6px; |
| 140 | margin: 0 2px; |
| 141 | |
| 142 | &:active, |
| 143 | &.is-active { |
| 144 | background: $color-white; |
| 145 | color: $color_gray-base; |
| 146 | } |
| 147 | } |
| 148 | } |
| 149 | } |
| 150 |