|
| 1 | +@layer components { |
| 2 | + .gsi-material-button { |
| 3 | + -moz-user-select: none; |
| 4 | + -webkit-user-select: none; |
| 5 | + -ms-user-select: none; |
| 6 | + -webkit-appearance: none; |
| 7 | + background-color: WHITE; |
| 8 | + background-image: none; |
| 9 | + border: 1px solid #747775; |
| 10 | + -webkit-border-radius: 4px; |
| 11 | + border-radius: 4px; |
| 12 | + -webkit-box-sizing: border-box; |
| 13 | + box-sizing: border-box; |
| 14 | + color: #1f1f1f; |
| 15 | + cursor: pointer; |
| 16 | + font-family: 'Roboto', arial, sans-serif; |
| 17 | + font-size: 14px; |
| 18 | + height: 40px; |
| 19 | + letter-spacing: 0.25px; |
| 20 | + outline: none; |
| 21 | + overflow: hidden; |
| 22 | + padding: 0 12px; |
| 23 | + position: relative; |
| 24 | + text-align: center; |
| 25 | + -webkit-transition: background-color .218s, border-color .218s, box-shadow .218s; |
| 26 | + transition: background-color .218s, border-color .218s, box-shadow .218s; |
| 27 | + vertical-align: middle; |
| 28 | + white-space: nowrap; |
| 29 | + width: auto; |
| 30 | + max-width: 400px; |
| 31 | + min-width: min-content; |
| 32 | + display: inline-flex; |
| 33 | + } |
| 34 | + |
| 35 | + .gsi-material-button .gsi-material-button-icon { |
| 36 | + height: 20px; |
| 37 | + margin-right: 12px; |
| 38 | + min-width: 20px; |
| 39 | + width: 20px; |
| 40 | + } |
| 41 | + |
| 42 | + .gsi-material-button .gsi-material-button-content-wrapper { |
| 43 | + -webkit-align-items: center; |
| 44 | + align-items: center; |
| 45 | + display: flex; |
| 46 | + -webkit-flex-direction: row; |
| 47 | + flex-direction: row; |
| 48 | + -webkit-flex-wrap: nowrap; |
| 49 | + flex-wrap: nowrap; |
| 50 | + height: 100%; |
| 51 | + justify-content: space-between; |
| 52 | + position: relative; |
| 53 | + width: 100%; |
| 54 | + } |
| 55 | + |
| 56 | + .gsi-material-button .gsi-material-button-contents { |
| 57 | + -webkit-flex-grow: 1; |
| 58 | + flex-grow: 1; |
| 59 | + font-family: 'Roboto', arial, sans-serif; |
| 60 | + font-weight: 500; |
| 61 | + overflow: hidden; |
| 62 | + text-overflow: ellipsis; |
| 63 | + vertical-align: top; |
| 64 | + } |
| 65 | + |
| 66 | + .gsi-material-button .gsi-material-button-state { |
| 67 | + -webkit-transition: opacity .218s; |
| 68 | + transition: opacity .218s; |
| 69 | + bottom: 0; |
| 70 | + left: 0; |
| 71 | + opacity: 0; |
| 72 | + position: absolute; |
| 73 | + right: 0; |
| 74 | + top: 0; |
| 75 | + } |
| 76 | + |
| 77 | + .gsi-material-button:disabled { |
| 78 | + cursor: default; |
| 79 | + background-color: #ffffff61; |
| 80 | + border-color: #1f1f1f1f; |
| 81 | + } |
| 82 | + |
| 83 | + .gsi-material-button:disabled .gsi-material-button-contents { |
| 84 | + opacity: 38%; |
| 85 | + } |
| 86 | + |
| 87 | + .gsi-material-button:disabled .gsi-material-button-icon { |
| 88 | + opacity: 38%; |
| 89 | + } |
| 90 | + |
| 91 | + .gsi-material-button:not(:disabled):active .gsi-material-button-state, |
| 92 | + .gsi-material-button:not(:disabled):focus .gsi-material-button-state { |
| 93 | + background-color: #303030; |
| 94 | + opacity: 12%; |
| 95 | + } |
| 96 | + |
| 97 | + .gsi-material-button:not(:disabled):hover { |
| 98 | + -webkit-box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15); |
| 99 | + box-shadow: 0 1px 2px 0 rgba(60, 64, 67, .30), 0 1px 3px 1px rgba(60, 64, 67, .15); |
| 100 | + } |
| 101 | + |
| 102 | + .gsi-material-button:not(:disabled):hover .gsi-material-button-state { |
| 103 | + background-color: #303030; |
| 104 | + opacity: 8%; |
| 105 | + } |
| 106 | +} |
0 commit comments