mirror of
https://github.com/pybricks/pybricks-code.git
synced 2026-09-12 09:36:27 +00:00
107 lines
1.8 KiB
SCSS
107 lines
1.8 KiB
SCSS
// SPDX-License-Identifier: MIT
|
|
// Copyright (c) 2020-2022 The Pybricks Authors
|
|
|
|
@import './variables.scss';
|
|
@import '~normalize.css';
|
|
@import '~@blueprintjs/core/src/blueprint.scss';
|
|
@import '~@blueprintjs/popover2/src/blueprint-popover2.scss';
|
|
|
|
:root {
|
|
--pb-vh: 100vh;
|
|
}
|
|
|
|
body {
|
|
// no scrolling of the page
|
|
overflow: hidden;
|
|
user-select: none;
|
|
}
|
|
|
|
// Utility classes
|
|
|
|
.h-100 {
|
|
height: 100%;
|
|
}
|
|
|
|
.w-100 {
|
|
width: 100%;
|
|
}
|
|
|
|
.p-absolute {
|
|
position: absolute;
|
|
}
|
|
|
|
.no-wrap {
|
|
white-space: nowrap;
|
|
}
|
|
|
|
// global style tweaks
|
|
|
|
.#{$ns}-toast {
|
|
user-select: text;
|
|
max-width: 700px;
|
|
}
|
|
|
|
.#{$ns}-button {
|
|
user-select: none;
|
|
}
|
|
|
|
a.#{$ns}-button {
|
|
text-align: left;
|
|
}
|
|
|
|
// https://github.com/palantir/blueprint/issues/
|
|
.#{$ns}-control input:focus:not(:focus-visible) ~ .#{$ns}-control-indicator,
|
|
.#{$ns}-button:focus:not(:focus-visible) {
|
|
outline: none;
|
|
}
|
|
|
|
.#{$ns}-button-text > img {
|
|
display: block;
|
|
}
|
|
|
|
.#{$ns}-dialog-footer-actions {
|
|
flex-wrap: wrap;
|
|
row-gap: 10px;
|
|
}
|
|
|
|
.#{$ns}-form-group > .#{$ns}-label {
|
|
font-weight: bolder;
|
|
}
|
|
|
|
::-webkit-scrollbar {
|
|
width: 16px;
|
|
}
|
|
|
|
.#{$ns}-dark ::-webkit-scrollbar-track {
|
|
background: $pt-dark-app-background-color;
|
|
}
|
|
|
|
::-webkit-scrollbar-track {
|
|
background: $pt-app-background-color;
|
|
}
|
|
|
|
.#{$ns}-dark ::-webkit-scrollbar-thumb {
|
|
border-color: $pt-dark-app-background-color;
|
|
background: $pt-dark-icon-color;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb {
|
|
border-width: 3px;
|
|
border-style: solid;
|
|
border-radius: 8px;
|
|
border-color: $pt-app-background-color;
|
|
background: $pt-icon-color;
|
|
}
|
|
|
|
.#{$ns}-dark ::-webkit-scrollbar-thumb:hover {
|
|
background: $pt-dark-icon-color-hover;
|
|
}
|
|
|
|
::-webkit-scrollbar-thumb:hover {
|
|
background: $pt-icon-color-hover;
|
|
}
|
|
|
|
.#{$ns}-input-group .#{$ns}-icon {
|
|
margin: 7px;
|
|
}
|