engelsystem/resources/assets/themes/base.scss

382 lines
6.4 KiB
SCSS

// Basic variables
@use 'sass:map';
// select 2 variables
$link-decoration: none !default;
$link-hover-decoration: underline !default;
$nav-tabs-link-active-color: #fff !default;
$nav-tabs-link-active-bg: $primary !default;
$nav-tabs-link-active-border-color: none !default;
// Imports
@import '~bootstrap/scss/functions';
@import '~bootstrap/scss/variables';
@import '~bootstrap/scss/maps';
@import '~bootstrap/scss/mixins';
$custom-colors: (
black: #000,
);
$theme-colors: map-merge($theme-colors, $custom-colors);
$form-label-font-weight: $font-weight-bold;
@import '~bootstrap/scss/utilities';
@import '~bootstrap/scss/root';
@import '~bootstrap/scss/reboot';
@import '~bootstrap/scss/type';
@import '~bootstrap/scss/containers';
@import '~bootstrap/scss/grid';
@import '~bootstrap/scss/tables';
@import '~bootstrap/scss/forms';
@import '~bootstrap/scss/buttons';
@import '~bootstrap/scss/transitions';
@import '~bootstrap/scss/dropdown';
@import '~bootstrap/scss/button-group';
@import '~bootstrap/scss/nav';
@import '~bootstrap/scss/navbar';
@import '~bootstrap/scss/card';
@import '~bootstrap/scss/pagination';
@import '~bootstrap/scss/badge';
@import '~bootstrap/scss/alert';
@import '~bootstrap/scss/progress';
@import '~bootstrap/scss/list-group';
@import '~bootstrap/scss/close';
@import '~bootstrap/scss/popover';
@import '~bootstrap/scss/helpers';
@import '~bootstrap/scss/utilities/api';
@import '~bootstrap-icons/font/bootstrap-icons';
@import 'choices';
@import 'error';
@import 'barchart';
@import 'colored-links';
$navbar-height: 3.125rem;
body {
padding-top: 70px;
}
.footer a {
color: $text-muted;
}
.text-inherit {
color: inherit;
&:hover {
color: inherit;
}
}
.icon-icon_angel {
background-color: $body-color;
display: inline-block;
width: 1em;
height: 1em;
mask: url(../icons/angel.svg) no-repeat 50% 50%;
mask-size: cover;
}
.text-light .icon-icon_angel {
background-color: map.get($theme-colors, 'light');
}
.dark .icon-icon_angel {
background-color: map.get($theme-colors, 'dark');
}
a .icon-icon_angel {
background-color: $link-color;
}
.navbar .icon-icon_angel {
background-color: $nav-link-disabled-color;
}
.navbar-brand .icon-icon_angel,
table a > .icon-icon_angel {
background-color: $body-color;
}
.nav-item--userhints {
margin: -$navbar-padding-y 0;
}
.popover--userhints .alert:last-of-type {
margin-bottom: 0;
}
.table .form-group {
margin-bottom: 0;
}
.stats {
font-size: 20px;
height: 150px;
text-align: center;
.number {
font-size: 80px;
font-weight: 200;
}
@media (max-width: map-get($grid-breakpoints, 'md')) {
font-size: inherit;
.number {
font-size: 40px;
}
}
}
.dashboard-card {
position: relative;
font-size: 20px;
color: $headings-color;
.card-link {
position: absolute;
width: 100%;
height: 100%;
top: 0;
left: 0;
text-decoration: none; /* No underlines on the link */
z-index: 10; /* Places the link above everything else in the div */
background-color: $primary; /* Fix to make div clickable in IE */
opacity: 0; /* Fix to make div clickable in IE */
filter: alpha(opacity=1); /* Fix to make div clickable in IE */
}
.card-link:hover {
opacity: 0.3;
}
}
// prevent dropdown-menu from overflowing the view
.dropdown-menu {
max-height: calc(100vh - 300px); // 300px: menu offset
overflow: auto;
}
@media (min-width: map-get($grid-breakpoints, 'lg')) {
.dropdown-menu {
max-height: calc(100vh - $navbar-height - 16px); // 16px extra padding
}
}
.selection .checkbox {
display: block;
}
.shift-calendar {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
align-items: stretch;
width: 100%;
.lane {
background: $table-striped-bg;
flex-grow: 1;
min-width: 280px;
width: 280px;
flex-shrink: 1;
.header {
border-bottom: 1px solid $table-border-color;
height: 30px;
padding: 5px 5px 5px 16px;
}
.tick {
height: 30px;
border-top: 1px solid darken($table-striped-bg, 2%);
}
.tick.hour {
border-top: 2px solid $table-border-color;
font-size: 0.9em;
padding-left: 5px;
}
.tick.day {
border-top: 2px solid $primary;
font-size: 0.9em;
padding-left: 5px;
}
}
.lane.time {
border-right: 1px solid $table-border-color;
flex-grow: 0;
min-width: 50px;
width: 50px;
flex-shrink: 0;
}
.shift-card {
z-index: 0;
overflow: hidden;
position: relative;
margin: 0 5px 5px 0;
&:hover {
overflow: visible;
z-index: 100;
}
.shift {
min-height: 100%;
}
}
}
.column_duration {
text-align: right;
}
h1,
h2,
h3,
h4,
h5,
h6,
.h1,
.h2,
.h3,
.h4,
.h5,
.h6 {
code {
background-color: inherit;
}
}
.messages {
&:focus {
outline: none;
}
a:focus {
outline: none;
}
}
.messages span.text-danger {
animation: pulse 1s infinite;
}
.legend .label {
white-space: pre-wrap;
line-height: 2;
}
.shift-calendar.table-responsive {
overflow-x: inherit;
}
// Reference links
h1,
h2,
h3,
h4,
h5,
h6,
.card-header {
a.ref-link {
display: none;
}
&:hover {
a.ref-link {
display: inline;
}
}
}
.ref-id[id] {
padding-top: 3em;
}
// Cards
.card-body > *:last-child {
margin-bottom: 0;
}
.card-header {
&.bg-dark {
color: map.get($theme-colors, 'light');
}
&.bg-light {
color: map.get($theme-colors, 'dark');
}
}
// code tag
code {
background-color: $input-disabled-bg;
@include border-radius($input-border-radius);
}
@keyframes pulse {
0% {
transform: rotate(0deg);
}
10% {
transform: rotate(5deg) translateY(-2px);
}
20% {
transform: rotate(-5deg);
}
30% {
transform: rotate(5deg) translateY(-2px);
}
40% {
transform: rotate(-5deg);
}
50% {
transform: rotate(0deg) translateY(-2px);
}
75% {
transform: rotate(0deg) translateY(0px);
}
}
@media print {
a[href]:after {
content: '';
}
}
.conversation {
align-content: flex-start;
height: 55vh;
overflow-x: hidden;
overflow-y: auto;
.alert {
max-width: 75%;
}
}
/* Hide the arrow up/down buttons rendered by the browser in the input field */
/* Chrome, Safari, Edge, Opera */
input[type='number']::-webkit-outer-spin-button,
input[type='number']::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}
/* Firefox */
input[type='number'] {
-moz-appearance: textfield;
}