Files
pybricks-code/src/activities/activities.scss
T
David Lechner b255a145e3 components/ViewHeightSensor: remove view height sensor
This appears to no longer be necessary for correct app height on Android.
2022-12-21 19:44:11 -06:00

46 lines
1.2 KiB
SCSS

// SPDX-License-Identifier: MIT
// Copyright (c) 2022 The Pybricks Authors
@use '@blueprintjs/core/lib/scss/variables' as bp;
@use '../variables' as pb;
// override bluetprintjs styles
.#{bp.$ns}-tabs.#{bp.$ns}-vertical > {
& .#{bp.$ns}-tab-list .pb-activities-tablist-tab {
margin: bp.$pt-grid-size * 0.6;
padding: unset;
width: unset;
line-height: unset;
}
& .pb-activities-tabview {
padding: bp.$pt-grid-size * 0.5;
}
}
.pb-activities {
// TODO: submit upstream patch to allow setting tablist class
&-tablist,
& .#{bp.$ns}-tab-list {
@include pb.background-contrast(6%);
}
&-tabview {
display: flex;
flex-direction: column;
width: bp.$pt-grid-size * 25;
padding: bp.$pt-grid-size;
@include pb.background-contrast(0%);
// on small screens, make the activity view an overlay instead of inline
@media screen and (max-width: pb.$narrow-screen-limit) {
position: absolute;
top: 0px;
// FIXME: this should be a variable
left: 47px;
height: calc(100% - pb.$status-bar-height);
z-index: bp.$pt-z-index-overlay;
}
}
}