qcal/src/Calendar.scss

143 lines
2.2 KiB
SCSS
Raw Normal View History

2022-02-12 14:55:46 -05:00
@import 'bootstrap/scss/functions';
@import 'bootstrap/scss/variables';
@import 'bootstrap/scss/mixins';
2022-02-12 17:46:33 -05:00
@import 'bootstrap/scss/forms';
2022-02-12 15:40:45 -05:00
@import 'bootstrap/scss/grid';
@import 'bootstrap/scss/buttons';
2022-02-12 14:55:46 -05:00
2022-02-12 15:40:45 -05:00
.Calendar {
2022-02-12 14:55:46 -05:00
@include make-container();
}
2022-02-12 15:40:45 -05:00
.Calendar-head {
display: flex;
2022-02-12 21:16:00 -05:00
justify-content: center;
2022-02-12 15:40:45 -05:00
font-size: 2em;
font-weight: 600;
2022-02-12 21:16:00 -05:00
position: sticky;
top: 0;
background: white;
margin-top: -$spacer * 4;
margin-left: -$spacer;
margin-right: -$spacer;
padding-top: $spacer * 4;
padding-left: $spacer;
padding-right: $spacer;
2022-02-12 15:40:45 -05:00
.btn {
margin: 0 1px;
}
}
.Calendar-prev, .Calendar-next {
flex: 0 70px;
}
.Calendar-prev {
text-align: right;
}
.Calendar-month-name {
flex: 1;
2022-02-12 21:16:00 -05:00
max-width: 30rem;
2022-02-12 15:40:45 -05:00
text-align: center;
}
2022-02-12 14:55:46 -05:00
.Month-decadeHead {
display: none;
}
@include media-breakpoint-up(md) {
.Month-decade {
@include make-row();
> * {
@include make-col-ready();
}
}
}
.Month-decadeSplitter {
width: 100%;
}
@include media-breakpoint-up(xl) {
.Month-decadeSplitter {
display: none;
}
.Month-decadeHead {
display: block;
@include make-row();
}
2022-02-12 15:09:24 -05:00
.Day-decade {
display: none;
}
2022-02-12 14:55:46 -05:00
}
@include media-breakpoint-up(lg) {
.ComplementaryDays {
@include make-row();
> * {
@include make-col-ready();
}
}
.ComplementaryDay {
@include make-col($columns: 2);
}
.ComplementaryDays-splitter {
width: 100%;
}
}
2022-02-12 14:55:46 -05:00
.Day, .DecadeName {
margin: 0.5em;
@include make-col($columns: 10);
}
.Day {
padding: 0.5em;
border: 1px solid black;
border-radius: $border-radius;
}
.DecadeName {
text-align: center;
font-weight: 600;
font-size: 1.2em;
}
.Day-name {
font-size: 2em;
font-weight: 600;
}
2022-02-12 15:09:24 -05:00
.Day-decade {
font-weight: 600;
}
.Day-today {
background: $gray-300;
}
2022-02-12 17:46:33 -05:00
.Calendar-month-name.input-group {
justify-content: center;
font-size: 0.75em;
}
.Calendar-month-input {
max-width: 12.5em;
}
.Calendar-year-input {
max-width: 6em;
}
.Calendar-today-button {
max-width: 5em;
}