sunrise-cms/public-scss/style.scss

220 lines
2.9 KiB
SCSS

@import '@cityssm/bulma-webapp-css/cityssm';
@import 'bulma/sass/utilities/derived-variables';
@import 'bulma-calendar/src/sass/index';
@import '@cityssm/fa-glow/fa-glow';
$white: #fff;
$black: #000;
.is-linethrough {
text-decoration: line-through;
}
.has-width-10 {
width: 10px;
}
.has-width-900 {
width: 900px;
}
.has-min-page-height {
min-height: 100vh;
}
/*
* Status containers
*/
.has-status-loaded .is-hidden-status-loaded,
.has-status-loading .is-hidden-status-loading,
.has-status-view .is-hidden-status-view,
fieldset:enabled .is-hidden-enabled {
display: none;
}
.has-status-view .is-noninteractive-status-view {
pointer-events: none;
}
/* to fix page titles inside level components, set on .level-left */
.has-flex-shrink-1 {
flex-shrink: 1;
}
.has-border-radius-3 {
border-radius: 3px;
}
/*
* Tabs
*/
.tab-content {
display: none;
&.is-active {
display: block;
}
}
#is-login-page {
overflow: auto;
background-position: top center;
background-size: cover;
body > .columns {
min-height: 100vh;
}
}
.button.is-xsmall {
height: 2em;
padding-top: 0;
padding-bottom: 0;
font-size: 0.75rem;
}
/*
* Print
*/
.container.is-page {
width: 8.5in;
padding: 10px 20px 20px;
margin: 20px auto;
background-color: $white;
border: 1px solid $black;
@media print {
width: 100%;
padding: 0;
border: 0;
}
}
/*
* SVG
*/
.image svg {
display: block;
height: auto;
width: 100%;
.highlight,
.highlight path {
&.is-danger {
stroke: $danger-dark !important;
fill: rgba($danger-light, 0.6);
}
&.is-success {
stroke: $success-dark !important;
fill: rgba($success, 0.6);
}
}
text {
user-select: none;
}
}
/*
* "Readonly" selects
*/
.select option:disabled {
display: none;
}
/*
* Modal Size Fix
*/
.modal-card {
max-width: 100%;
}
/*
* Accessibility
*/
$black-ter: hsl(0, 0%, 14%);
.control .button.is-static,
.menu .menu-label {
color: $black-ter;
}
/*
* z-index to compensate for leaflet
*/
.navbar.is-fixed-top {
z-index: 1100;
}
.modal {
z-index: 1200;
}
/*
* Static button pointer events
*/
span.button.is-static {
pointer-events: all;
cursor: default;
}
/*
* Calendar Picker
*/
.datetimepicker-dummy {
.datetimepicker-dummy-wrapper::before {
mask: unset;
-webkit-mask: unset;
background-color: transparent !important;
}
/* fix left icon */
.datetimepicker-dummy-wrapper .datetimepicker-dummy-input:first-child {
text-indent: 2rem;
}
/* center the button */
.datetimepicker-clear-button {
transform: none;
margin-right: 0.25rem;
margin-top: 0.15rem;
}
}
.datetimepicker.is-active {
z-index: 10;
}
/*
* Fixed Level
*/
.level {
&.is-fixed-bottom {
z-index: 1100;
position: fixed;
bottom: 0;
left: 0;
right: 0;
padding: 15px;
margin: 0;
&.has-shadow {
box-shadow: 0 -2px 0 0 #f5f5f5;
}
}
}