-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.scss
119 lines (108 loc) · 2.06 KB
/
style.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
$boxMargin: 8px;
$yearGuideBasis: 4px;
$weekGuideBasis: 6px;
$guideFontSize: 6pt;
html, body {
width: 100%;
height: 100%;
margin: 0px;
}
#header {
position: fixed;
margin: 64px;
}
#menu {
position: fixed;
right: 16px;
bottom: 16px;
opacity: 0.05;
font-size: 10pt;
font-weight: lighter;
cursor: pointer;
border: none;
background-color: rgba(0,0,0,0);
}
#menu:hover {
opacity: 1.0;
}
#wrapper {
width: 520px;
margin: 0px auto 0;
padding-top: 20%;
}
@media screen and (max-width: 520px) {
#wrapper {
width: 80%;
margin: 20px auto 0;
}
}
#center {
position: relative;
width: 100%;
height: 100%;
padding: 100% 0 0;
}
#box {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
display: flex;
flex-direction: column;
flex-wrap: nowrap;
}
#box .year {
display: flex;
flex-direction: row;
flex-wrap: nowrap;
flex-grow: 1;
flex-shrink: 1;
.week {
flex-grow: 1;
flex-shrink: 1;
}
.week:not(.guideWeek) {
border: 1px solid white;
background-color: rgba(22,0,30,0.3);
}
.passedWeek {
background-color: rgba(22,0,30,0.9) !important;
}
.currentWeek {
background-color: rgba(220,0,30,0.9) !important;
}
.guideWeek {
border: 1px solid rgba(0,0,0,0);
}
.yearGuideWeek {
flex-basis: $yearGuideBasis;
}
.weekGuideWeek {
}
// cell displays number
.weekGuide, .yearGuide {
font-size: $guideFontSize;
}
.yearGuide {
position: absolute;
display: inline;
width: calc(((100% - #{$yearGuideBasis} - #{$boxMargin}) / 52) + 2px);
height: calc(((100% - #{$weekGuideBasis} - #{$boxMargin}) / 81) - 2px);// TODO: Append by JS
line-height: calc(((100% - #{$weekGuideBasis} - #{$boxMargin}) / 81) - 2px);// TODO: Append by JS
margin: auto 0;
margin-top: calc((((100% - #{$weekGuideBasis} - #{$boxMargin}) / 81) - 2px) / 2);// TODO: Append by JS
text-align: center;
vertical-align: middle;
}
.weekGuide {
position: absolute;
width: calc(((100% - #{$yearGuideBasis}) / 52) - 2px);
text-align: center;
}
}
.year_-1 {
flex-grow: 1;
flex-shrink: 1;
flex-basis: $weekGuideBasis;
}