github.com/stampzilla/stampzilla-go@v2.0.0-rc9+incompatible/nodes/stampzilla-server/web/src/index.scss (about) 1 //$white: #ffffff !default; 2 //$gray-100: #f8f9fa !default; 3 //$gray-200: #e9ecef !default; 4 //$gray-300: #dee2e6 !default; 5 //$gray-400: #ced4da !default; 6 //$gray-500: #adb5bd !default; 7 //$gray-600: #6c757d !default; 8 //$gray-700: #495057 !default; 9 //$gray-800: #343a40 !default; 10 //$gray-900: #212529 !default; 11 //$black: #000 !default; 12 13 //$grays: () !default; 14 //$grays: map-merge(( 15 //"100": $gray-100, 16 //"200": $gray-200, 17 //"300": $gray-300, 18 //"400": $gray-400, 19 //"500": $gray-500, 20 //"600": $gray-600, 21 //"700": $gray-700, 22 //"800": $gray-800, 23 //"900": $gray-900 24 //), $grays); 25 26 //$blue: #009688 !default; 27 //$indigo: #6610f2 !default; 28 //$purple: #6f42c1 !default; 29 //$pink: #e83e8c !default; 30 //$red: #dc3545 !default; 31 //$orange: #fd7e14 !default; 32 //$yellow: #ffc107 !default; 33 //$green: #28a745 !default; 34 //$teal: #20c997 !default; 35 //$cyan: #17a2b8 !default; 36 37 //$primary: #009688 !default; 38 //$secondary: $gray-600 !default; 39 //$success: $green !default; 40 //$info: $cyan !default; 41 //$warning: $yellow !default; 42 //$danger: $red !default; 43 //$light: $gray-100 !default; 44 //$dark: $gray-800 !default; 45 46 //$theme-colors: () !default; 47 //$theme-colors: map-merge(( 48 //"primary": $primary, 49 //"secondary": $secondary, 50 //"success": $success, 51 //"info": $info, 52 //"warning": $warning, 53 //"danger": $danger, 54 //"light": $light, 55 //"dark": $dark 56 //), $theme-colors); 57 58 @import "~admin-lte/dist/css/adminlte"; 59 @import "~bootstrap/scss/bootstrap"; 60 61 //.sidebar-dark-primary .nav-sidebar > .nav-item > .nav-link.active { 62 //background: $primary; 63 //} 64 65 $fa-font-path: "~font-awesome/fonts"; 66 @import "~font-awesome/scss/font-awesome"; 67 $ionicons-font-path: "~ionicons/dist/fonts"; 68 @import "~ionicons/dist/scss/ionicons"; 69 70 @import "~octicons/build/build"; 71 72 $custom-control-description-disabled-color: #868e96; 73 74 $switch-height: calc(#{$input-height} * 0.8) !default; 75 $switch-height-sm: calc(#{$input-height-sm} * 0.8) !default; 76 $switch-height-lg: calc(#{$input-height-lg} * 0.8) !default; 77 $switch-border-radius: $switch-height !default; 78 $switch-bg: $custom-control-indicator-bg !default; 79 $switch-checked-bg: map-get($theme-colors, "primary") !default; 80 $switch-disabled-bg: $custom-control-indicator-disabled-bg !default; 81 $switch-disabled-color: $custom-control-description-disabled-color !default; 82 $switch-thumb-bg: $white !default; 83 $switch-thumb-border-radius: 50% !default; 84 $switch-thumb-padding: 2px !default; 85 $switch-focus-box-shadow: 0 0 0 $input-btn-focus-width 86 rgba(map-get($theme-colors, "primary"), 0.25); 87 $switch-transition: 0.2s all !default; 88 89 .switch { 90 font-size: $font-size-base; 91 position: relative; 92 93 input { 94 position: absolute; 95 height: 1px; 96 width: 1px; 97 background: none; 98 border: 0; 99 clip: rect(0 0 0 0); 100 clip-path: inset(50%); 101 overflow: hidden; 102 padding: 0; 103 104 + label { 105 position: relative; 106 min-width: calc(#{$switch-height} * 2); 107 border-radius: $switch-border-radius; 108 height: $switch-height; 109 line-height: $switch-height; 110 display: inline-block; 111 cursor: pointer; 112 outline: none; 113 user-select: none; 114 vertical-align: middle; 115 text-indent: calc(calc(#{$switch-height} * 2) + 0.5rem); 116 } 117 118 + label::before, 119 + label::after { 120 content: ""; 121 position: absolute; 122 top: 0; 123 left: 0; 124 width: calc(#{$switch-height} * 2); 125 bottom: 0; 126 display: block; 127 } 128 129 + label::before { 130 right: 0; 131 background-color: $switch-bg; 132 border-radius: $switch-border-radius; 133 transition: $switch-transition; 134 } 135 136 + label::after { 137 top: $switch-thumb-padding; 138 left: $switch-thumb-padding; 139 width: calc(#{$switch-height} - calc(#{$switch-thumb-padding} * 2)); 140 height: calc(#{$switch-height} - calc(#{$switch-thumb-padding} * 2)); 141 border-radius: $switch-thumb-border-radius; 142 background-color: $switch-thumb-bg; 143 transition: $switch-transition; 144 } 145 146 &:checked + label::before { 147 background-color: $switch-checked-bg; 148 } 149 150 &:checked + label::after { 151 margin-left: $switch-height; 152 } 153 154 &:focus + label::before { 155 outline: none; 156 box-shadow: $switch-focus-box-shadow; 157 } 158 159 &:disabled + label { 160 color: $switch-disabled-color; 161 cursor: not-allowed; 162 } 163 164 &:disabled + label::before { 165 background-color: $switch-disabled-bg; 166 } 167 } 168 169 // Small variation 170 &.switch-sm { 171 font-size: $font-size-sm; 172 173 input { 174 + label { 175 min-width: calc(#{$switch-height-sm} * 2); 176 height: $switch-height-sm; 177 line-height: $switch-height-sm; 178 text-indent: calc(calc(#{$switch-height-sm} * 2) + 0.5rem); 179 } 180 181 + label::before { 182 width: calc(#{$switch-height-sm} * 2); 183 } 184 185 + label::after { 186 width: calc(#{$switch-height-sm} - calc(#{$switch-thumb-padding} * 2)); 187 height: calc(#{$switch-height-sm} - calc(#{$switch-thumb-padding} * 2)); 188 } 189 190 &:checked + label::after { 191 margin-left: $switch-height-sm; 192 } 193 } 194 } 195 196 // Large variation 197 &.switch-lg { 198 font-size: $font-size-lg; 199 200 input { 201 + label { 202 min-width: calc(#{$switch-height-lg} * 2); 203 height: $switch-height-lg; 204 line-height: $switch-height-lg; 205 text-indent: calc(calc(#{$switch-height-lg} * 2) + 0.5rem); 206 } 207 208 + label::before { 209 width: calc(#{$switch-height-lg} * 2); 210 } 211 212 + label::after { 213 width: calc(#{$switch-height-lg} - calc(#{$switch-thumb-padding} * 2)); 214 height: calc(#{$switch-height-lg} - calc(#{$switch-thumb-padding} * 2)); 215 } 216 217 &:checked + label::after { 218 margin-left: $switch-height-lg; 219 } 220 } 221 } 222 223 + .switch { 224 margin-left: 1rem; 225 } 226 } 227 228 .nav-item a { 229 display: flex; 230 align-items: center; 231 232 span { 233 flex: 1; 234 } 235 } 236 237 238 .field-description { 239 font-size: .8em; 240 color: $gray-500; 241 margin-bottom: 0.5rem; 242 }