engelsystem/resources/assets/themes/base.scss

420 lines
7.2 KiB
SCSS
Raw Normal View History

// select 2 variables
$cursor-disabled: false;
$link-decoration: none !default;
$link-hover-decoration: underline !default;
@import "~bootstrap/scss/functions";
@import "~bootstrap/scss/variables";
@import "~bootstrap/scss/mixins";
$custom-colors: (
black: #000
);
$theme-colors: map-merge($theme-colors, $custom-colors);
@import "~bootstrap/scss/bootstrap";
@import "~bootstrap-icons/font/bootstrap-icons.css";
@import "~eonasdan-bootstrap-datetimepicker/build/css/bootstrap-datetimepicker.css";
2021-07-17 16:42:22 +02:00
@import "~select2/src/scss/core";
@import "~select2-bootstrap-5-theme/src/include-all";
2018-11-13 17:47:19 +01:00
@import "error";
2014-12-06 19:02:02 +01:00
$navbar-height: 3.125rem;
body {
padding-top: 70px;
}
.footer a {
color: $text-muted;
}
.text-big {
2017-01-02 15:43:36 +01:00
display: block;
font-size: 30px;
line-height: 30px;
2018-11-13 17:47:19 +01:00
margin: 0;
2016-11-18 15:36:02 +01:00
}
2018-10-05 17:09:06 +02:00
.icon-icon_angel {
background-color: $body-color;
2018-10-05 17:09:06 +02:00
display: inline-block;
width: 1em;
height: 1em;
mask: url(../icons/angel.svg) no-repeat 50% 50%;
mask-size: cover;
}
a .icon-icon_angel {
background-color: $link-color;
2018-10-05 17:09:06 +02:00
}
.navbar .icon-icon_angel {
background-color: $nav-link-disabled-color;
2018-10-05 17:09:06 +02:00
}
.navbar-brand .icon-icon_angel {
background-color: $body-color;
2018-10-05 17:09:06 +02:00
}
table a > .icon-icon_angel {
background-color: $body-color;
2018-10-05 17:09:06 +02:00
}
2018-12-09 12:51:48 +01:00
.table .form-group {
2018-12-27 12:30:58 +01:00
margin-bottom: 0;
2018-12-09 12:51:48 +01:00
}
2017-12-12 21:57:57 +01:00
.stats {
2017-12-26 17:08:14 +01:00
font-size: 20px;
2017-12-26 17:37:17 +01:00
height: 150px;
2018-12-27 12:30:58 +01:00
text-align: center;
.number {
font-size: 80px;
font-weight: 200;
}
@media (max-width: map-get($grid-breakpoints, 'md')) {
2018-12-27 12:30:58 +01:00
font-size: inherit;
.number {
font-size: 40px;
}
2017-12-13 12:46:15 +01:00
}
2017-12-12 21:57:57 +01:00
}
2018-12-27 02:47:41 +01:00
2017-12-12 21:57:57 +01:00
.stats-danger {
color: map-get($theme-colors, 'danger');
2017-12-12 21:57:57 +01:00
}
.stats-warning {
color: map-get($theme-colors, 'warning');
2017-12-12 21:57:57 +01:00
}
.stats-success {
color: map-get($theme-colors, 'success');
2017-12-12 21:57:57 +01:00
}
2017-12-13 12:22:26 +01:00
.dashboard-panel {
2018-12-27 12:30:58 +01:00
position: relative;
font-size: 20px;
color: $headings-color;
2018-12-27 12:30:58 +01:00
.panel-link {
position: absolute;
2017-12-13 12:22:26 +01:00
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 */
2017-12-13 12:22:26 +01:00
opacity: 0; /* Fix to make div clickable in IE */
filter: alpha(opacity=1); /* Fix to make div clickable in IE */
2018-12-27 12:30:58 +01:00
}
2018-12-27 12:30:58 +01:00
.panel-link:hover {
2017-12-13 12:22:26 +01:00
opacity: 0.3;
2018-12-27 12:30:58 +01:00
}
2017-12-13 12:22:26 +01:00
}
//.panel-primary .panel-heading a {
// color: $panel-primary-text;
// background-color: $panel-primary-heading-bg;
//}
//
//.panel-default .panel-heading a {
// color: $panel-default-text;
// background-color: $panel-default-heading-bg;
//}
//
//.panel-info .panel-heading a {
// color: $panel-info-text;
// background-color: $panel-info-heading-bg;
//}
//
//.panel-success .panel-heading a {
// color: $panel-success-text;
// background-color: $panel-success-heading-bg;
//}
//
//.panel-warning .panel-heading a {
// color: $panel-warning-text;
// background-color: $panel-warning-heading-bg;
//}
//
//.panel-danger .panel-heading a {
// color: $panel-danger-text;
// background-color: $panel-danger-heading-bg;
//}
2016-11-14 17:58:15 +01:00
2020-10-20 16:07:34 +02:00
.select2-dropdown {
background-color: $input-bg;
2020-10-20 16:07:34 +02:00
}
.selection .checkbox {
2018-12-27 12:30:58 +01:00
display: block;
}
2016-11-05 10:06:06 +01:00
.shift-calendar {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
2018-11-13 17:47:19 +01:00
align-items: stretch;
2016-11-05 10:06:06 +01:00
width: 100%;
2017-01-02 15:43:36 +01:00
.lane {
background: $table-striped-bg;
2017-01-02 15:43:36 +01:00
flex-grow: 1;
min-width: 280px;
width: 280px;
flex-shrink: 1;
.header {
background: $dark; //@todo bs5
border-bottom: 1px solid $table-border-color;
2017-01-02 15:43:36 +01:00
height: 30px;
padding: 5px 5px 5px 16px;
}
.tick {
height: 30px;
border-top: 1px solid darken($table-striped-bg, 2%);
2017-01-02 15:43:36 +01:00
}
2016-11-05 10:06:06 +01:00
.tick.hour {
border-top: 2px solid $table-border-color;
2016-11-05 10:06:06 +01:00
font-size: 0.9em;
padding-left: 5px;
}
2017-01-02 15:43:36 +01:00
2016-11-05 10:06:06 +01:00
.tick.day {
border-top: 2px solid $primary;
2016-11-05 10:06:06 +01:00
font-size: 0.9em;
padding-left: 5px;
}
2017-01-02 15:43:36 +01:00
}
.lane.time {
border-right: 1px solid $table-border-color;
2017-01-02 15:43:36 +01:00
flex-grow: 0;
min-width: 50px;
width: 50px;
flex-shrink: 0;
}
2018-12-27 12:30:58 +01:00
.shift-card {
2018-12-27 12:30:58 +01:00
z-index: 0;
overflow: hidden;
position: relative;
2019-10-20 14:54:00 +02:00
margin: 0 5px 5px 0;
2018-12-27 12:30:58 +01:00
&:hover {
overflow: visible;
z-index: 100;
}
2019-10-20 14:54:00 +02:00
.shift {
min-height: 100%;
2018-12-27 12:30:58 +01:00
}
2017-01-02 15:43:36 +01:00
}
2014-12-15 23:09:06 +01:00
}
2014-12-06 19:02:02 +01:00
.space-top {
margin-top: 15px;
}
2014-12-07 00:08:09 +01:00
2017-12-27 12:45:48 +01:00
.column_duration {
2018-12-27 12:30:58 +01:00
text-align: right;
2017-12-27 12:45:48 +01:00
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
code {
background-color: inherit;
}
}
2014-12-07 00:08:09 +01:00
.messages {
&:focus {
outline: none;
}
2018-12-27 12:30:58 +01:00
2014-12-07 00:08:09 +01:00
a:focus {
outline: none;
}
}
2014-12-07 21:02:22 +01:00
.messages span.text-danger {
animation: pulse 1s infinite;
}
.legend .label {
white-space: pre-wrap;
line-height: 2;
}
.shift-calendar.table-responsive {
overflow-x: inherit;
}
2020-05-01 16:29:28 +02:00
.inline-form-spacing {
margin-bottom: map-get($spacers, 3);
2020-05-01 16:29:28 +02:00
}
2020-11-15 18:47:30 +01:00
.user-settings .settings-menu ul {
margin-top: map-get($spacers, 3); //@todo bs5
2020-11-15 18:47:30 +01:00
}
2020-12-27 17:55:41 +01:00
span.ref-id[id] {
padding-top: 50px;
}
.faq {
.panel-heading h3 {
margin: 0;
small a.ref-link {
display: none;
}
&:hover {
small a.ref-link {
display: inherit;
}
}
}
}
2014-12-07 21:02:22 +01:00
@keyframes pulse {
0% {
2017-01-02 15:43:36 +01:00
transform: rotate(0deg);
2014-12-07 21:02:22 +01:00
}
10% {
2017-01-02 15:43:36 +01:00
transform: rotate(5deg) translateY(-2px);
2014-12-07 21:02:22 +01:00
}
20% {
2017-01-02 15:43:36 +01:00
transform: rotate(-5deg);
2014-12-07 21:02:22 +01:00
}
2017-01-02 15:43:36 +01:00
30% {
transform: rotate(5deg) translateY(-2px);;
2014-12-07 21:02:22 +01:00
}
2017-01-02 15:43:36 +01:00
40% {
transform: rotate(-5deg);
2014-12-07 21:02:22 +01:00
}
2017-01-02 15:43:36 +01:00
50% {
transform: rotate(0deg) translateY(-2px);
2014-12-07 21:02:22 +01:00
}
75% {
transform: rotate(0deg) translateY(0px);
}
}
@media (max-width: 525px) {
.col-xxs-12 {
float: none;
width: 100%;
2018-12-27 12:30:58 +01:00
position: relative;
left: 0;
right: 0;
min-height: 1px;
padding-right: 15px;
padding-left: 15px;
}
}
2019-07-24 20:57:27 +02:00
@media print {
a[href]:after {
content: "";
}
2019-12-30 14:06:07 +01:00
}
.navbar-toggle {
transform: scale(1.25, 0.96);
padding: 2px 6px;
margin-top: 6px;
margin-bottom: 4px;
max-height: $navbar-height;
2019-12-30 14:06:07 +01:00
.icon {
border-color: $primary;
2019-12-30 14:06:07 +01:00
font-weight: bold;
color: $primary;
2019-12-30 14:06:07 +01:00
font-size: 25px;
&-close {
padding: 0 3px;
display: none;
}
}
&.is-open .icon {
&-open {
display: none;
}
&-close {
display: block;
}
}
}
@media screen and (max-width: map-get($grid-breakpoints, 'xxl')) {
2019-12-30 14:06:07 +01:00
#navbar-offcanvas {
display: block;
position: absolute;
width: 90%;
2021-07-17 14:57:04 +02:00
height: calc(100vh - #{$navbar-height});
2019-12-30 14:06:07 +01:00
max-height: unset;
left: 101%;
top: $navbar-height + 1;
// extra padding because mobile Safari displays a bottom bar hiding parts of the menu
padding-bottom: 75px;
2019-12-30 14:06:07 +01:00
transition: left .3s ease-in-out;
background: $light; // @todo bs5
2019-12-30 14:06:07 +01:00
margin: 0 !important; // Overridden in theme with high specifity:
// .container > .navbar-header,
// .container-fluid > .navbar-header,
// .container > .navbar-collapse,
// .container-fluid > .navbar-collapse
// Is open
&.collapse.in {
left: 10%;
display: block;
overflow-y: auto;
box-shadow: -5px 20px 20px 0 rgba(0, 0, 0, 0.5), 5px 0 5px -5px rgba(0, 0, 0, 0.5);
2019-12-30 14:06:07 +01:00
}
// Hide current page in nav.
.nav > li.active {
display: none;
}
2019-12-30 14:06:07 +01:00
.caret {
float: right;
margin-top: 7px;
}
}
.navbar-toggle {
align-items: center;
font-size: 18px;
display: flex;
height: 38px;
justify-content: center;
padding: 0;
transform: none;
width: 38px;
.icon-close {
padding: 0;
}
}
2019-12-30 14:06:07 +01:00
}