github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/pkg/ui/styl/shame.styl (about) 1 // Copyright 2019 The Cockroach Authors. 2 // 3 // Use of this software is governed by the Business Source License 4 // included in the file licenses/BSL.txt. 5 // 6 // As of the Change Date specified in that file, in accordance with 7 // the Business Source License, use of this software will be governed 8 // by the Apache License, Version 2.0, included in the file 9 // licenses/APL.txt. 10 11 // This is an attempt to override settings from the react-select component. 12 // react-select's css file uses rules with extremely high specificity, making 13 // numerous !important statements necessary. 14 // @stylint off 15 16 @require "../src/components/core/index.styl" 17 18 .Select.is-focused 19 &:not(.is-open) 20 .Select-control 21 box-shadow none 22 border none 23 24 .Select.is-focused 25 &:not(.is-open) 26 .Select-control 27 box-shadow none 28 border none 29 30 .Select-value, .Select-placeholder 31 line-height inherit !important 32 height auto !important 33 position relative !important 34 white-space nowrap !important 35 max-width 250px !important 36 padding 0 0 0 3px !important 37 38 .Select-control 39 line-height inherit !important 40 height auto !important 41 border-width 0 !important 42 background-color transparent !important 43 width auto !important 44 &:hover 45 box-shadow none 46 47 .Select-input 48 line-height inherit !important 49 height auto !important 50 position absolute !important 51 top 0 !important 52 53 .Select-input > input 54 padding 0 !important 55 56 .Select-menu-outer 57 width auto !important 58 border none !important 59 box-shadow 0 2px 4px rgba(0, 0, 0, .2) !important 60 max-height 200px 61 font-family Lato-Regular 62 font-size 14px 63 text-transform none 64 letter-spacing 0 65 border-radius 4px !important 66 padding 0 0 67 68 .Select-menu, .Select-menu-outer 69 max-height 350px 70 71 .Select-value-label 72 display block !important 73 cursor pointer 74 75 .Select-arrow 76 border-top-color $adminui-grey-1 !important 77 78 .Select 79 display block 80 width 100% 81 82 .dropdown--side-arrows 83 .Select 84 padding 12px 24px !important 85 .Select-arrow-zone 86 display none 87 88 // NVD3 Style overrides. 89 .nvtooltip 90 font-family Lato-Regular !important 91 color $body-color !important 92 padding 15px 20px !important 93 background rgba(255, 255, 255, .98) !important 94 border-radius 5px !important 95 border 1px solid rgba(0, 0, 0, .1) !important 96 box-shadow 0px 0px 4px rgba(0, 0, 0, .2) 97 98 .nvtooltip table 99 margin 0 !important 100 101 .nvtooltip .legend-color-guide div 102 width 7px !important 103 height 7px !important 104 border-radius 50% !important 105 border none !important 106 107 .nvtooltip table tr.highlight td 108 padding 2px 9px 2px 0 !important 109 border none !important 110 111 .nvtooltip table tr.highlight td:first-child 112 padding 2px 9px 2px 3rem 113 114 .nvtooltip strong 115 font-weight 400 !important 116 117 .legend-subtext 118 color $tooltip-color !important 119 font-weight 300 120 121 .nvd3 .nv-axis 122 .tick line 123 stroke $table-border-color 124 125 text 126 fill $headings-color 127 font-family Lato-Regular 128 font-size 11px 129 130 .nv-axislabel 131 font-family Lato-Regular 132 fill $headings-color 133 134 .nv-y .nv-axis .domain 135 opacity 0 136 137 .nvd3 text 138 opacity .6 139 font-size 10px 140 141 .ant-divider 142 background $button-border-color 143 margin-left 0 144 margin-right 22px 145 &.ant-divider-vertical 146 height auto 147 148 .ant-tooltip 149 .ant-tooltip-inner 150 font-size 12px 151 border-radius 4px 152 background-color $body-color 153 font-family Lato-Regular 154 color #fff 155 box-shadow none 156 padding 5px 8px 157 min-width 0 158 min-height 0 159 &.preset-black 160 .ant-tooltip-inner 161 background-color #000 162 pre 163 font-family RobotoMono-Medium 164 font-size 12px 165 color #e7ecf3 166 letter-spacing 0.7px 167 line-height 24px 168 ._text-bold 169 font-family RobotoMono-Bold 170 color #8dbcff 171 172 .ant-input, .ant-time-picker-input 173 height 40px 174 padding 0px 11px 175 border-radius 3px 176 border solid 1px $button-border-color 177 &:focus 178 border solid 1px $link-color 179 box-shadow none 180 &:hover 181 border-color $link-color 182 183 .ant-time-picker-panel-combobox 184 display flex 185 186 .ant-calendar-picker:hover .ant-calendar-picker-input:not(.ant-input-disabled) 187 border-color $link-color 188 189 .ant-fullcalendar-header 190 padding: 10px 4px 191 text-align: center 192 193 .ant-fullcalendar 194 font-size 12px 195 font-family Lato-Regular 196 197 .ant-fullcalendar-selected-day 198 .ant-fullcalendar-date 199 background #eff5fe 200 color #3a7ce1 201 &:hover 202 background #e0efff 203 color $blue-color 204 205 .ant-fullcalendar-today 206 &.ant-fullcalendar-date 207 color #3a7ce1 208 border-color #3a7ce1 209 &:hover 210 background #eff5fd 211 &.ant-fullcalendar-selected-day 212 .ant-fullcalendar-date 213 background #eff5fd 214 &:hover 215 background $grey4 216 font-weight bold 217 &.ant-fullcalendar-disabled-cell 218 .ant-fullcalendar-date 219 background #E7ECF3 220 &:hover 221 background #E7ECF3 222 223 .ant-fullcalendar-date, .ant-time-picker-panel li 224 color #5F6C87 225 font-family Lato-Regular 226 font-size 12px 227 &.ant-time-picker-panel-addon-option-disabled 228 color #a3a5af 229 &:hover 230 background #f6f6f6 231 &:focus 232 color $link-color 233 234 .ant-time-picker-panel li 235 display flex 236 align-items center 237 238 .ant-fullcalendar-disabled-cell .ant-fullcalendar-date 239 background #E7ECF3 240 241 .ant-fullcalendar-disabled-cell.ant-fullcalendar-today .ant-fullcalendar-date 242 color #a3a5af 243 font-weight bold 244 border-color transparent 245 &:before 246 border 1px solid #a3a5af 247 248 .ant-btn-default, .ant-calendar-today-btn 249 width 100% 250 font-family Lato-Bold 251 color $link-color 252 text-align center 253 font-size 14px 254 margin 0 255 padding 0 256 text-transform none 257 border: 0; 258 span 259 line-height 1.71 260 letter-spacing 0.1px 261 262 .ant-btn:focus 263 color: $link-color 264 265 .ant-btn:after 266 display: none !important; 267 268 .ant-btn-background-ghost 269 box-shadow: none 270 271 .color 272 &--link 273 color $link 274 &:hover 275 text-decoration underline 276 277 .ant-checkbox-wrapper 278 &:hover 279 .ant-checkbox-inner 280 border solid 1px $checkbox-border-hover 281 background $popover-border-color 282 .ant-checkbox-inner 283 border solid 1px $checkbox-border 284 border-radius 3px 285 .ant-checkbox-checked 286 &:hover 287 .ant-checkbox-inner 288 border solid 1px $link 289 background $link 290 .ant-checkbox-inner 291 background-color $link 292 span 293 font-family SourceSansPro-SemiBold 294 font-size 14px 295 line-height 1.71 296 letter-spacing 0.1px 297 color $popover-color 298 299 .ant-pagination 300 display flex 301 justify-content center 302 align-items flex-end 303 margin 40px 0 304 &.mini 305 .ant-pagination-item, .ant-pagination-prev, .ant-pagination-next 306 margin 0 5px 307 .ant-pagination-item 308 a 309 color $body-color 310 font-size 14px 311 font-family Lato-Medium 312 &:hover 313 color $link-color 314 .ant-pagination-item-active 315 background transparent 316 border-radius 2px 317 border 1px solid $link-color 318 a 319 color $link-color 320 .ant-pagination-next, .ant-pagination-prev 321 .ant-pagination-item-link 322 font-size 12px 323 color $body-color 324 &:hover 325 .ant-pagination-item-link 326 color $link-color 327 &.ant-pagination-disabled 328 .ant-pagination-item-link 329 color #b8bbbc 330 &:hover 331 .ant-pagination-item-link 332 color #b8bbbc 333 334 .drawer--preset-black 335 display flex 336 align-items center 337 /* width */ 338 ::-webkit-scrollbar { 339 width 7px 340 } 341 342 /* Track */ 343 ::-webkit-scrollbar-track { 344 background transparent 345 border-radius 10px 346 } 347 348 /* Handle */ 349 ::-webkit-scrollbar-thumb { 350 background #5f6c87 351 border-radius 10px 352 } 353 354 /* Handle on hover */ 355 ::-webkit-scrollbar-thumb:hover { 356 background #5f6c87ad 357 } 358 .ant-divider 359 width 1px 360 background #5f6c87 361 margin: 0 15px 362 height 14px 363 .__actions 364 button, a 365 width auto 366 color #f6f6f6 367 font-size 12px 368 font-family Lato-Bold 369 line-height 2 370 letter-spacing 0.1px 371 &:hover 372 color #5f6c87 373 .ant-drawer-content 374 overflow auto 375 .ant-drawer-mask 376 background-color transparent 377 .ant-drawer-content-wrapper 378 padding-left 80px 379 box-shadow none !important 380 .ant-drawer-content 381 background #242a35 382 .ant-drawer-header 383 padding 15px 0 384 margin 0 24px 385 background transparent 386 border-bottom: 1px solid #5f6c87; 387 .ant-drawer-body 388 padding 15px 20px 389 margin 0 4px 390 height 190px 391 overflow-x hidde 392 overflow-y auto 393 .drawer__content 394 color #f6f6f6 395 font-family RobotoMono-Regular 396 font-size 12px 397 line-height 24px 398 ._text-bold 399 color #87beff 400 font-family RobotoMono-Bold 401 402 .cockroach--tabs 403 .ant-tabs-bar 404 border-bottom 1px solid $grey2 405 .ant-tabs-tab 406 font-family SourceSansPro-Regular 407 font-size 16px 408 line-height 1.5 409 letter-spacing normal 410 color $placeholder 411 &:hover 412 color $adminui-grey-1 413 .ant-tabs-tab-active 414 color $adminui-grey-1 415 .ant-tabs-ink-bar 416 height 3px 417 border-radius 40px 418 background-color $blue 419 420 .page--header 421 padding 0 422 &__title 423 font-family $font-family--base 424 font-size 20px 425 line-height 1.6 426 letter-spacing -0.2px 427 color $colors--neutral-8 428 margin-bottom 25px