portal/src/jsMain/resources/style/components/_board.scss
Lars Westermann 36bdad8036
Bugfixes
2019-06-12 22:20:13 +02:00

247 lines
3.8 KiB
SCSS

@import "../config";
.board {
top: 0;
left: 0;
position: absolute;
width: 100%;
height: 100%;
overflow: hidden;
& > div {
position: absolute;
left: 0;
top: 0;
width: 100%;
height: 100%;
& > div {
position: relative;
overflow: hidden;
&:first-child {
width: 70%;
float: left;
overflow: visible;
&:after {
content: '';
position: absolute;
top: -1rem;
bottom: 0;
left: 100%;
margin-left: 1rem;
border-right: solid 1px var(--table-border-color);
}
}
&:last-child {
width: 29%;
float: right;
}
}
}
}
.board-header {
height: 8rem !important;
margin-top: 0.3rem;
& > div {
height: 100%;
}
&:after {
content: "";
position: absolute;
left: 0;
width: 100%;
height: 100%;
border-bottom: solid 1px var(--table-border-color);
box-shadow: 0 0 4px var(--shadow-color);
top: -1rem;
padding-top: 1.2rem;
}
}
.board-content {
top: 9rem !important;
bottom: 0;
height: auto !important;
}
.board-logo {
img {
height: 6rem;
width: 6rem;
position: absolute;
top: 50%;
left: 4rem;
margin-top: -3rem;
margin-left: -3rem;
}
}
.board-running {
display: flex;
flex-wrap: wrap;
align-content: flex-start;
&:empty + .board-running-empty {
display: block;
}
}
.board-running-empty {
position: absolute !important;
top: 0;
left: 0;
height: 8rem;
line-height: 8rem;
width: 70%;
text-align: center;
font-size: 1.7rem;
font-family: $headFont;
display: none;
}
.board-schedule {
line-height: 2rem;
height: 2rem;
min-width: 10rem;
display: flex;
border-bottom: solid 1px var(--table-border-color);
width: calc(50% - 1rem);
margin-left: 1rem;
position: relative;
&:nth-last-child(1), &:nth-last-child(2) {
border-bottom: none;
}
& > div {
flex-grow: 0;
flex-shrink: 0;
}
.board-schedule-name {
flex-grow: 1 !important;
flex-shrink: 1 !important;
}
.board-schedule-room {
flex-grow: 1 !important;
flex-shrink: 1 !important;
}
.board-schedule-clock {
position: absolute;
left: 1rem;
top: 0;
display: none;
color: var(--primary-color);
}
&.board-schedule-running .board-schedule-clock {
display: block;
}
}
.board-schedule-color {
width: 1.5rem;
span {
display: block;
background-color: var(--primary-color);
width: 0.5rem;
height: 1rem;
margin-top: 0.5rem;
margin-left: 0.3rem;
}
}
.board-schedule-time {
width: 8rem;
color: var(--text-secondary-color);
text-align: center;
overflow: hidden;
text-overflow: ellipsis;
}
.board-schedule-name {
flex-grow: 1;
overflow: hidden;
text-overflow: ellipsis;
}
.board-schedule-room {
width: 8rem;
text-align: right;
color: var(--text-secondary-color);
overflow: hidden;
text-overflow: ellipsis;
}
.board-calendar {
height: 100% !important;
margin-top: 0 !important;
.calendar-table {
overflow: hidden;
}
.calendar-table-box {
width: 100%;
}
.calendar-row {
width: 100% !important;
height: 0.7rem !important;
}
.calendar-cell {
&:not(:first-child) {
flex-grow: 1;
flex-shrink: 1;
flex-basis: 0;
}
}
.calendar-entry::after {
content: none;
}
}
.board-header-date {
position: absolute;
line-height: 2rem;
font-size: 2rem;
top: 0;
left: 8rem;
padding: 1.8rem 0;
span {
display: block;
}
.board-header-date-time {
font-size: 2rem;
}
.board-header-date-date {
font-size: 1.2rem;
}
}
.board-twitter {
& > * {
margin-top: -1px !important;
}
}
.board-announcement {
position: fixed;
bottom: 3rem;
z-index: 10;
margin-bottom: 0 !important;
}