Repository navigation
Expand file tree
/
Copy pathmain.css
More file actions
145 lines (117 loc) · 5.74 KB
/
Copy pathmain.css
File metadata and controls
145 lines (117 loc) · 5.74 KB
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
/* degreeswhat/main.css */
html {color:#000; background:#ddd;}
body {margin:0; padding:0; font-size:1em; font-family:'Helvetica Neue', Helvetica, Arial, sans-serif;}
h1 {display:none; font-size:1.3em; margin:0 0 1em 0; font-weight:normal; white-space:nowrap;}
h2 {font-size:1.2em; margin:0 0 1em 0;}
h3 {font-size:1.0em; margin:2em 0 1em 0}
h4 {font-size:0.9em; margin:2em 0 1em 0}
p {margin:0 0 1em 0;}
big {font-size:1.2em;}
sup {font-size:0.75em; margin:0 0.2em;}
.center {text-align:center;}
.nobr {white-space:nowrap;}
.hide {display:none;}
table {margin:0 0 1em 0; border-collapse:collapse;}
th {text-align:left;}
th, td {padding:0.3em 0.5em; border:1px solid rgba(127,127,127,0.15);}
form {margin:0 0 1em 0;}
form label {display:inline-block; margin-right:0.3em;}
form input {margin-right:0.5em; white-space:nowrap;}
/* links */
a {color:#00e; text-decoration:none;}
a:visited {color:#a0e;}
a:hover {text-decoration:underline;}
nav a:link, a.close {text-decoration:none; font-weight:bold; color:#003;}
nav a:visited, a.close:visited {color:#003;}
nav a:hover, a.close:hover {color:#f00;}
/* nav positions */
nav, section, div {box-sizing:border-box;}
nav {position:absolute; margin:0;}
nav svg {width:1.625em; height:1.625em;}
#nav1 {left:16px; top:16px;}
#nav2 {right:16px; top:16px; text-align:right;}
#fullscreen {display:none; margin-left:0.5em;}
/* --- LAYOUT --- */
#compass {display:block; width:100vmin; width:100dvmin; height:100vmin; height:100dvmin; margin:0 auto; padding:0; /*border:1px dotted blue;*/}
.info {display:block; max-width:40em; margin:0 auto; padding:0.01em 1em; text-align:center; /*border:1px dotted red;*/}
section {display:block; width:100vmin; width:100dvmin; max-width:40em; margin:0 auto; padding:0;} /* default for no-js */
section.overlay {display:none; position:fixed; left:0; top:0; width:100vw; max-width:100vw; height:100vh; height:100dvh; margin:0; background:rgba(255,255,255,0.90); backdrop-filter:blur(3px); -webkit-backdrop-filter: blur(3px); overflow:scroll; overscroll-behavior:contain;} /* .overlay class added via js */
#compass, #compassOverlay {touch-action:none;}
/* info */
.info {}
.info h3 {margin:1em 0;}
#info1 {}
#info1 dl {max-width:10em; margin:0 0 1em 0;}
#info1 dt {margin-top:1em; text-align:left; font-weight:bold;}
#info1 dt:first-child {margin-top:0;}
#info1 dd {margin-left:0; text-align:right;}
#info2 {}
#info2 p[data-degrees] {display:none;}
#color span {display:inline-block; min-width:3em;}
/* sections */
section > div {position:relative; margin:0; padding:1em;}
.close {position:absolute; right:1.3em; top:1.3em; margin:0; line-height:1;}
/* about */
#bmc {margin:1em auto; text-align:center;}
#bmc a {display:inline-block; padding:13px 27px 9px 24px; color:#0d0c23; background:#fd0; border-radius:11px;}
#bmc a:hover {color:#fd0c23;}
@media (orientation:portrait) {
#info1 {display:none;}
#info2 {max-width:20em; min-height:10em;}
}
@media (orientation:landscape) {
#compass {width:100vmin; width:100dvmin; height:100vmin; height:100dvmin;}
.info {position:absolute; left:0; top:4em; width:calc(50vw - 50vmin); width:calc(50vw - 50dvmin); height:calc(100vh - 4em); height:calc(100dvh - 4em); overflow:visible;}
#info1 {padding-right:0; text-align:left;}
#info2 {left:auto; right:0; padding-left:0; text-align:right;}
}
@media (min-width:30rem) {
section.overlay {background:rgba(221,221,221,0.9); overflow:hidden;}
section.overlay > div {width:40em; max-width:80vw; height:auto; max-height:90vh; max-height:90dvh; margin:5vh auto; margin:5dvh auto; background:rgba(255,255,255,0.7); border:1px solid #999; border-radius:7px; box-shadow:0 5px 10px 8px rgba(0, 0, 0, 0.2); overflow:scroll; overscroll-behavior:contain;}
#settings.overlay > div {width:20em;}
}
@media (min-height:25em) {
h1 {display:block;}
}
/* --- COLOR SCHEMES --- */
:root.dark {color:#ddd; background:#222;}
:root.dark a {color:#79f;}
:root.dark a:visited {color:#a7d;}
:root.dark nav a:link, :root.dark a.close { color:#ddd;}
:root.dark nav a:visited, :root.dark a.close:visited {color:#ddd;}
:root.dark nav a:hover, :root.dark a.close:hover {color:#f00;}
:root.dark section.overlay {background:rgba(51,51,51,0.90);}
:root.dark #compassCard > circle, :root.dark #degreeNumbers > g > rect {fill:#111;}
:root.dark #text1 > rect, :root.dark #text2 > rect {fill:rgba(51,51,51,0.95)}
@media (min-width:30rem) {
:root.dark section.overlay {background:rgba(34,34,34,0.90);}
:root.dark section.overlay > div {background:rgba(51,51,51,0.7); border:1px solid #4c4c4c;}
}
@media (prefers-color-scheme: dark) {
html {color:#ddd; background:#222;}
a {color:#79f;}
a:visited {color:#a7d;}
nav a:link, a.close {color:#ddd;}
nav a:visited, a.close:visited {color:#ddd;}
nav a:hover, a.close:hover {color:#f00;}
section.overlay {background:rgba(51,51,51,0.90);}
#compassCard > circle, #degreeNumbers > g > rect {fill:#111;}
#text1 > rect, #text2 > rect {fill:rgba(51,51,51,0.95)}
@media (min-width:30rem) {
section.overlay {background:rgba(34,34,34,0.90);}
section.overlay > div {background:rgba(51,51,51,0.7); border:1px solid #4c4c4c;}
}
:root.light {color:#000; background:#ddd;}
:root.light a {color:#00e;}
:root.light a:visited {color:#a0e;}
:root.light nav a:link, :root.light a.close {color:#003;}
:root.light nav a:visited, :root.light a.close:visited {color:#003;}
:root.light nav a:hover, :root.light a.close:hover {color:#f00;}
:root.light section.overlay {background:rgba(51,51,51,0.90);}
:root.light #compassCard > circle, :root.light #degreeNumbers > g > rect {fill:#fff;}
:root.light #text1 > rect, :root.light #text2 > rect {fill:rgba(238,238,238,0.95)}
@media (min-width:30rem) {
:root.light section.overlay {background:rgba(221,221,221,0.90);}
:root.light section.overlay > div {background:rgba(255,255,255,0.7); border:1px solid #999;}
}
}