blob: d655252dd58cd69870824325627fcfd915aecc72 [file] [log] [blame]
Copybara botbe50d492023-11-30 00:16:42 +01001.schedule {
2 display: inline-flex;
3 flex: none;
4 border: 1px solid rgba(0,0,0,.12);
5
6 --hour-height: 30px;
7}
8
9.schedule .sidetime {
10 padding-top: 36px;
11 width: 40px;
12}
13
14.schedule .sidetime .hour {
15 position: relative;
16 height: var(--hour-height);
17}
18
19.schedule .sidetime .hour .hour--text {
20 position: absolute;
21 top: -9px;
22 right: 7px;
23 font-size: 11px;
24}
25
26.schedule .day {
27 flex: 1 0 auto;
28 width: 100px;
29 min-width: 100px;
30}
31
32.schedule .day .day--header {
33 text-align: center;
34 box-sizing: content-box;
35 height: 20px;
36 font-size: 18px;
37 font-weight: 300;
38 padding: 8px 0;
39 border-bottom: solid 1px #ccc;
40}
41
42.schedule .day .day--content {
43 position: relative;
44}
45
46.schedule .day .day--content .hour {
47 height: Calc(var(--hour-height) - 1px);
48}
49
50.schedule .day .day--content .hour:not(:last-child) {
51 border-bottom: solid 1px #ddd;
52}
53
54.schedule .day .day--content .hour:last-child, .schedule .sidetime .hour:last-child {
55 height: 13px;
56}
57
58.schedule .day .day--content .work-event, .schedule .day .day--content .inline-event {
59 position: absolute;
60 border-radius: 3px;
61 overflow-y: auto;
62}
63
64.schedule .day .day--content .event--actions {
65 position: absolute;
66 top: 4px;
67 right: 4px;
68 line-height: 14px;
69 background: #00000077;
70 border-radius: 5px;
71 z-index: 2;
72}
73
74.schedule .day .day--content .event--actions .material-icons {
75 color: white;
76 font-size: 20px;
77}
78
79.schedule .day .day--content .event--header, .schedule .day .day--content .event--body {
80 text-align: left;
81 font-size: 11px;
82}
83
84.schedule .day .day--content .work-event {
85 left: 4px;
86 width: 92px;
87 background: #2E7D32;
88}
89
90.schedule .day .day--content .work-event .event--header, .schedule .day .day--content .work-event .event--body {
91 line-height: 14px;
92 color: white;
93}
94
95.schedule .day .day--content .work-event .event--header {
96 margin: 5px 5px 0 5px;
97 font-weight: bold;
98}
99
100.schedule .day .day--content .work-event .event--body {
101 margin: 0 5px;
102}
103
104.schedule .day .day--content .inline-event {
105 left: 3px;
106 width: 86px;
107 background: #81C784;
108}
109
110.schedule .day .day--content .inline-event .event--header {
111 font-weight: 500;
112}
113
114.schedule .day .day--content .inline-event .event--header, .schedule .day .day--content .inline-event .event--body {
115 line-height: 14px;
116 margin: 0 5px;
117 color: black;
118}
119
120@media (hover: hover) {
121 .schedule .day .day--content .event--actions {
122 opacity: 0;
123 transition: opacity 0.15s ease-in;
124 background: #00000099;
125 }
126
127 .schedule .day .day--content .work-event:hover .event--actions {
128 opacity: 1;
129 }
130}