chrono/chrono/manager/static/css/style.scss

1037 lines
18 KiB
SCSS

.occupation-bar {
display: block;
position: absolute;
bottom: 0;
height: 3px;
background: #88e;
transition: max-width 300ms ease-in;
max-width: 0%;
width: 100%;
}
.full .occupation-bar {
background: #33e;
}
.overbooking .occupation-bar {
background: #e33;
}
li.full {
background: #f8f8fe;
}
li.cancelled span.event-info {
text-decoration: line-through;
}
li.new-report {
font-weight: bold;
}
li span.duration {
font-size: 80%;
}
li span.identifier {
font-size: 80%;
opacity: 0.6;
}
h2 span.identifier {
font-size: 1rem;
opacity: 0.6;
}
.time-only-picker thead {
display: none;
}
.time-only-picker tbody td {
width: 200px;
}
.timeperiods {
display: flex;
flex-wrap: wrap;
}
.timeperiods .timeperiod {
flex: 1 0 auto;
width: 18%;
margin-right: 10px;
margin-bottom: 10px;
position: relative;
}
.timeperiods .timeperiod h4 {
margin-top: 0;
}
.timeperiods .timeperiod a.add::before {
content: "\f055"; /* plus-circle */
font-family: FontAwesome;
padding-right: 1ex;
}
a.timeperiod-list-all {
font-style: italic;
}
.link-action-icon.settings::before {
content: "\f0ad"; /* wrench */
}
.openevents .section h4:first-child {
margin-top: 0;
}
table.agenda-table {
margin-top: 1em;
border-spacing: 0.5vw 0;
table-layout: fixed;
background-color: white;
padding: 0.5em 0;
padding-bottom: 2em;
}
.agenda-table thead th {
padding-bottom: 1ex;
font-weight: normal;
word-break: break-word;
}
.agenda-table {
width: 100%;
@for $i from 1 through 7 {
&.desks-#{$i} {
thead th { width: (100%/$i)-1%; }
}
}
}
.agenda-table tbody tr th {
box-sizing: border-box;
padding: 1.2ex 2ex;
vertical-align: top;
font-weight: normal;
&.hour {
text-align: left;
}
&.weeknum {
text-align: left;
padding-top: 3rem;
}
a {
color: #000;
border: 0;
}
&.weekday {
padding-top: 3rem;
&.today {
font-weight: bold;
}
}
}
.agenda-table tbody tr:first-child th.weekday,
.agenda-table tbody tr:first-child th.weeknum {
// don't add extra padding on top row
padding-top: 1ex;
}
// hour cells width
.agenda-table thead tr:first-child td:first-child,
.agenda-table tbody tr:first-child th:not(.weekday) {
width: 6em;
}
.agenda-table tbody tr.odd th.hour,
.agenda-table tbody tr.odd td {
background-color: #f5f5f5;
@media print {
border-top: 1px solid #aaa;
}
}
.agenda-table tbody tr.odd td.other-month {
background: transparent;
}
.agenda-table tbody td {
padding: 0 1ex;
vertical-align: top;
position: relative;
border: 0;
}
@for $i from 1 through 60 {
table.hourspan-#{$i} tbody td {
height: calc(#{$i} * 2.5em);
}
}
.agenda-table tbody td div {
box-sizing: border-box;
position: absolute;
overflow: hidden;
&.opening-hours, &.exception-hours {
z-index: 1;
background:
linear-gradient(
135deg,
hsla(65, 65%, 94%, 0.4) 20%,
hsla(65, 55%, 92%, 0.7) 70%,
hsl(65, 50%, 90%) 90%) fixed;
left: 0;
width: 100%;
}
&.opening-hours {
border-left: 0.5em solid hsla(57, 65%, 67%, 1);
}
&.exception-hours {
background:
repeating-linear-gradient(
135deg,
hsla(10, 10%, 75%, 0.7) 0,
hsla(10, 10%, 80%, 0.55) 10px,
transparent 11px,
transparent 20px);
text-align: center;
}
&.booking {
&.lease {
background:
repeating-linear-gradient(
135deg,
hsla(10, 10%, 75%, 0.7) 0,
hsla(10, 10%, 80%, 0.55) 10px,
transparent 11px,
transparent 20px);
// color: currentColor;
color: hsla(0, 0%, 0%, 0.7);
}
left: 0;
color: hsl(210, 84%, 40%);
padding: 1ex;
background:
linear-gradient(
110deg,
hsla(0, 0%, 100%, 0.85) 0%,
hsla(0, 0%, 100%, 0.65) 100%)
currentColor;
width: 100%;
border-left: .5em solid;
border-bottom: 1px solid;
border-color: currentColor;
box-shadow: 0 0 0 0 #888;
transition:
width 150ms ease-in,
min-width 150ms ease-in,
left 150ms ease-in,
right 150ms ease-in,
padding 150ms ease-in,
box-shadow 250ms ease-in;
z-index: 2;
&:hover {
z-index: 4;
height: auto !important;
box-shadow: 0 0 1em 0 #888;
}
> * {
color: hsla(0, 0%, 0%, 0.6);
}
a {
// color: currentColor;
color: hsla(0, 0%, 0%, 0.7);
border-bottom-color: inherit;
&:hover {
color: black;
}
}
}
}
.agenda-table tbody tr td.guardian {
vertical-align: middle;
background-image:
linear-gradient(
110deg,
hsla(0, 0%, 100%, 0.85) 0%,
hsla(0, 0%, 100%, 0.65) 100%);
&.first-guardian {
background-color: hsl(30, 100%, 46%);
}
&.second-guardian {
background-color: hsl(120, 57%, 35%);
}
}
.monthview tbody td div.booking {
text-indent: -9999px;
&:not(:hover) {
padding-top: 0;
padding-bottom: 0;
}
&:hover {
text-indent: 0;
left: 0% !important;
width: 100% !important;
}
span.desk {
display: block;
}
}
.monthview table.single-desk tbody td div.booking {
text-indent: 0;
}
.day-view.agenda-table {
width: auto;
min-width: 100%;
thead th {
min-width: 25px;
}
// sticky hour cells
thead td,
tbody th {
position: sticky;
left: 0;
z-index: 3;
background-color: white;
}
.booking {
min-width: 0;
right: 0;
left: auto;
&:hover {
right: 0;
min-width: 8.5em;
}
}
}
span.start-time {
font-size: 80%;
}
.date-title {
cursor: pointer;
}
span.buttons-group {
display: inline-flex;
.date-prev {
margin-left: 0;
}
}
div#appbar > h2.date-nav {
font-size: 100%;
position: static;
.date-title {
font-size: 200%;
position: relative;
top: 4px;
margin-left: 0.5em;
margin-right: 0.5em;
}
}
.date-prev, .date-next, .date-picker-opener {
&::after {
font-weight: normal;
font-size: 1rem;
font-family: FontAwesome;
}
}
.date-prev::after { content: "\f053"; } /* chevron-left */
.date-next::after { content: "\f054"; } /* chevron-right */
.date-picker-opener::after { content: "\f073"; } /* calendar */
.date-picker {
button, select {
font-size: 1rem;
}
&::before {
position: absolute;
content: "";
display: block;
width: 1ex;
height: 1ex;
border: 1px solid #d0d0d0;
border-width: 1px 0 0 1px;
top: -0.6ex;
left: 9rem;
background: #FAFAFA;
transform: rotate(45deg);
}
position: absolute;
background: #FAFAFA;
border: 1px solid #d0d0d0;
box-shadow: 0px 1px 1px 2px rgba(0, 0, 0, 0.04);
padding: 1ex 4ex;
left: 0;
top: 6ex;
z-index: 100;
}
ul#id_weekdays {
margin: 0;
padding: 0;
list-style: none;
max-width: 42em;
li {
margin: 0;
padding: 0;
display: inline-block;
width: 10em;
}
}
ul.objects-list.single-links li a.link-action-icon.refresh {
margin-right: 3em;
&::before {
content: "\f021"; /* refresh */
}
}
ul.objects-list.single-links li a.link-action-icon.duplicate {
margin-right: 3em;
&::before {
content: "\f24d"; /* clone */
}
}
ul.objects-list.single-links.events-list {
li a:first-child {
line-height: 2;
padding: 1ex 0.5ex 1ex 2ex;
span.event-title {
font-weight: 600;
}
span.tags {
span.tag {
left: 0;
}
}
}
}
div.event-title-meta span.tag {
box-sizing: border-box;
border-radius: 1ex;
padding: 0 1ex;
background: #386ede;
color: white;
}
div.ui-dialog form p span.datetime input,
div.ui-dialog form input[type=time] {
width: auto;
}
div.booking a.cancel {
float: right;
}
p.email-subject {
text-align: center;
}
table.check-bookings {
td.booking-username {
width: 30%;
}
td.booking-status {
width: 20%;
}
td.booking-actions {
form {
display: inline-block;
}
}
}
form.check-bookings-filters li {
display: inline;
margin-right: 10px;
}
// booking colors
$booking-colors: (
0: hsl(30, 100%, 46%),
1: hsl(120, 57%, 35%),
2: hsl(270, 40%, 50%),
3: hsl(355, 80%, 45%),
4: hsl(10, 70%, 30%),
5: hsl(60, 98%, 30%),
6: hsl(150, 57%, 25%),
7: hsl(320, 70%, 60%)
);
.booking-colors {
margin-top: 1.5rem;
}
.booking-color-label {
padding: .33em .66em;
border-radius: 0.33em;
color: hsla(0, 0%, 100%, 0.9) !important;
font-weight: bold;
font-size: .65em;
}
@each $index, $color in $booking-colors {
.agenda-table tbody td div.booking-color-#{$index} {
color: $color;
}
.booking-bg-color-#{$index} {
background-color: $color;
}
}
form div.widget[id^=id_recurrence] {
padding-left: 1em;
}
// weekdays buttons group
// display weeks checkboxs to buttons group
.weekdays-buttons-group {
display: table;
border-collapse: collapse;
font-size: 1.2em;
margin: 0.2em 0px;
overflow: hidden;
input {
display: none;
}
label {
display: table-cell;
border: 1px solid #386ede;
padding: 0.33em 0.66em;
color: #386ede;
cursor: pointer;
font-weight: 500;
line-height: 1;
&:hover {
background-color: #eee;
}
}
input:checked + label {
background-color: #386ede;
color: white;
border-color: #386ede white;
}
}
div.ui-dialog div.widget .datetime input {
width: auto;
}
table.timesheet {
width: auto;
th {
padding: 0.5em 0.5ex;
background: none;
border: 1px solid #f3f3f3;
&.date {
width: 20px;
text-align: center;
}
&.date-event {
width: 60px;
text-align: center;
}
}
td {
padding: 0.5em 0.5ex;
border: 1px solid #f3f3f3;
&.date {
text-align: center;
padding: 0px;
max-width: 2em;
}
}
}
.page_break {
height: 20px;
}
div.agenda-settings .pk-tabs--container {
& > div {
padding: 1ex;
.panel--buttons a.button {
line-height: inherit;
}
}
}
#event_details {
margin: 1em 0;
.objects-list .lease {
background:
repeating-linear-gradient(
135deg,
hsla(10, 10%, 75%, 0.7) 0,
hsla(10, 10%, 80%, 0.55) 10px,
transparent 11px,
transparent 20px);
}
.objects-list .lease span {
padding: 0 0.5ex 0 2ex;
}
}
@media print {
#event_details {
a.delete,
.infonotice {
display: none;
}
}
}
span.togglable {
padding: 1em 2ex;
cursor: pointer;
}
.untoggled span.togglable:after {
font-family: FontAwesome;
content: "\f107"; /* angle-down */
cursor: pointer;
}
.toggled span.togglable:after {
font-family: FontAwesome;
content: "\f106"; /* angle-up */
cursor: pointer;
}
.extra-user-block {
padding-left: 2em;
}
div#appbar a.active {
background: #386ede;
color: white;
}
// Partial booking view
div#main-content.partial-booking-dayview {
// change default overflow to allow sticky hours list
overflow: visible;
}
.partial-booking {
--registrant-name-width: 15rem;
--zebra-color: hsla(0,0%,0%,0.05);
--separator-color: white;
--separator-size: 2px;
--padding: 0.5rem;
position: relative;
background: white;
padding: var(--padding);
&--hours-list {
background: white;
position: sticky;
z-index: 2;
top: 0;
display: grid;
grid-template-columns: repeat(var(--nb-hours), 1fr);
font-size: 80%;
@media (min-width: 761px) {
padding-left: var(--registrant-name-width);
}
}
&--hour {
text-align: center;
transform: translateX(-50%);
&:first-child {
visibility: hidden;
}
}
&--occupation-rate-list {
position: static;
display: grid;
grid-template-rows: 40px auto;
align-items: end;
margin-top: 0.33rem;
margin-bottom: 1rem;
border-top: 3px solid var(--zebra-color);
grid-template-columns: repeat(var(--nb-hours), 1fr);
@media (min-width: 761px) {
grid-template-columns: var(--registrant-name-width) repeat(var(--nb-hours), 1fr);
}
}
.occupation-rate-list--title {
margin: 0;
font-size: 1rem;
font-weight: normal;
justify-self: end;
align-self: end;
padding: .66rem;
padding-bottom: 0;
@media (max-width: 760px) {
grid-column: 1/-1;
grid-row: 2/3;
}
}
.occupation-rate {
@function linear-progress($from, $to) {
$ratio: #{($to - $from) / 100};
@return "calc(#{$ratio} * var(--rate-percent) + #{$from})";
}
--hue: #{linear-progress(40, 10)};
--saturation: #{linear-progress(50%, 75%)};
--luminosity: #{linear-progress(65%, 50%)};
background-color: hsl(var(--hue), var(--saturation), var(--luminosity));
height: calc(1% * var(--rate-percent));
margin: 0;
opacity: 80%;
position: relative;
&--info {
display: block;
position: absolute;
z-index: 5;
padding: .33em .66em;
text-align: center;
background-color: var(--font-color);
color: white;
top: 100%;
left: 50%;
transform: translateX(-50%);
margin-top: .5em;
font-weight: bold;
filter: drop-shadow(0 0 3px white);
&::before {
content: "";
display: block;
position: absolute;
bottom: 100%;
left: 50%;
transform: translateX(-50%);
border: .5em solid transparent;
border-bottom-color: var(--font-color);
}
}
&:not(:hover) .occupation-rate--info {
display: none;
}
&:hover {
opacity: 100%;
z-index: 4;
}
&.overbooked {
--hue: 0;
--saturation: 95%;
--luminosity: 40%;
}
}
&--registrant-items {
margin-top: 0.5rem;
position: relative;
}
&--registrant {
display: flex;
flex-wrap: wrap;
&:nth-child(odd) {
background-color: var(--zebra-color);
}
&:nth-child(even) {
--separator-color: var(--zebra-color);
}
.registrant {
&--name {
box-sizing: border-box;
margin: 0;
padding: .66rem;
font-size: 130%;
color: #505050;
font-weight: normal;
@media (min-width: 761px) {
flex: 0 0 var(--registrant-name-width);
text-align: right;
}
}
&--datas {
box-sizing: border-box;
flex: 1 0 100%;
padding: .33rem 0;
@media (min-width: 761px) {
flex-basis: auto;
}
background: linear-gradient(
to left,
var(--separator-color) var(--separator-size),
transparent var(--separator-size),
transparent 100%
);
background-size: calc(100% / var(--nb-hours)) 100%;
@media (min-width: 761px) {
border-left: var(--separator-size) solid var(--separator-color);
}
}
&--bar-container {
position: relative;
margin: 0.33rem 0;
}
&--bar {
box-sizing: border-box;
display: inline-block;
margin: 0;
position: relative;
background-color: var(--bar-color);
color: white;
border: none;
&:not(:first-child) {
position: absolute;
top: 0;
}
.start-time, .end-time {
display: inline-block;
padding: 0.33em 0.66em;
}
.end-time {
float: right;
}
&.booking {
--bar-color: #1066bc;
.occasional {
font-style: italic;
font-size: 90%;
}
}
&.check.present, &.computed.present {
--bar-color: var(--green);
}
&.check.absent, &.computed.absent {
--bar-color: var(--red);
}
&.computed {
opacity: 0.6;
}
&.end-only, &.start-only {
background-color: transparent;
.end-time, .start-time {
background-color: var(--bar-color);
position: relative;
&::before {
content:"?";
color: var(--bar-color);
font-weight: 800;
line-height: 0;
position: absolute;
border: 0.75em solid transparent;
width: 0;
height: 0;
top: 0;
bottom: 0;
margin: auto;
}
}
.start-time::before {
left: 100%;
border-left-color: var(--bar-color);
text-indent: 0.25em;
}
.end-time::before {
right: 100%;
border-right-color: var(--bar-color);
text-indent: -0.75em;
}
}
}
}
}
&--hour-indicator-wrapper {
position: absolute;
inset: 0 var(--padding) 0 var(--padding);
@media (min-width: 761px) {
margin-left: var(--registrant-name-width);
}
}
&--hour-indicator {
position: absolute;
top: 0;
left: 0;
width: 1px;
height: 100%;
background-color: var(--red);
z-index: 3;
}
}
.agenda-table.partial-bookings .booking {
height: 70%;
width: 100%;
position: absolute;
right: 0;
top: 15%;
background: #1066bc;
&.present {
background: hsl(120, 57%, 35%);
}
&.absent {
background: hsl(355, 80%, 45%);
}
}
.partial-booking--check-icon {
border: 0;
&::before {
content: "\f017"; /* clock */
font-family: FontAwesome;
padding-left: 1ex;
}
}
/* ants-hub */
ul.objects-list.single-links li.ants-setting-not-configured a.edit {
color: red;
}
.ants-setting {
.meeting-type {
vertical-align: top;
text-align: center;
}
ul.inline {
display: flex;
width: 40em;
margin: 1ex;
margin-block-start: 0em;
padding-inline-start: 0em;
}
ul.inline li {
flex: 1;
text-align: center;
border: 1px solid grey;
border-width: 1px 0px 1px 1px;
list-style: none;
}
ul.inline li:first-child {
border-radius: 5px 0px 0px 5px;
}
li label {
width: 100%;
display: inline-block;
}
ul.inline li:last-child {
border-radius: 0px 5px 5px 0px;
border-width: 1px 1px 1px 1px;
}
ul.inline input {
display: none;
}
label.checked {
background: lightblue;
}
}
/* used for the city-edit link */
.icon-edit::before { content: "\f044"; }
a.button.button-paragraph {
text-align: left;
box-sizing: border-box;
display: block;
max-width: 100%;
margin-bottom: 1rem;
line-height: 150%;
padding-top: 0.8em;
padding-bottom: 0.8em;
}
.application-logo, .application-icon {
vertical-align: middle;
}
.snapshots-list .collapsed {
display: none;
}
p.snapshot-description {
font-size: 80%;
margin: 0;
}
div.diff {
margin: 1em 0;
h3 {
del, ins {
font-weight: bold;
background-color: transparent;
}
del {
color: #fbb6c2 !important;
}
ins {
color: #d4fcbc !important;
}
}
}
ins {
text-decoration: none;
background-color: #d4fcbc;
}
del {
text-decoration: line-through;
background-color: #fbb6c2;
color: #555;
}
table.diff {
background: white;
border: 1px solid #f3f3f3;
border-collapse: collapse;
width: 100%;
colgroup, thead, tbody, td {
border: 1px solid #f3f3f3;
}
tbody tr:nth-child(even) {
background: #fdfdfd;
}
th, td {
max-width: 30vw;
/* it will not actually limit width as the table is set to
* expand to 100% but it will prevent one side getting wider
*/
overflow: hidden;
text-overflow: ellipsis;
vertical-align: top;
}
.diff_header {
background: #f7f7f7;
}
td.diff_header {
text-align: right;
padding-right: 10px;
color: #606060;
}
.diff_next {
display: none;
}
.diff_add {
background-color: #aaffaa;
}
.diff_chg {
background-color: #ffff77;
}
.diff_sub {
background-color: #ffaaaa;
}
}