|
10 | 10 | <style>
|
11 | 11 | html, body {
|
12 | 12 | background: rgb(77, 149, 218);
|
13 |
| - |
14 | 13 | margin: 0;
|
15 | 14 | padding: 0;
|
16 | 15 | }
|
17 | 16 | div {
|
18 | 17 | text-align: center;
|
19 | 18 | }
|
20 | 19 | #links {
|
21 |
| - width: 50vh; |
22 |
| - max-width: 50vw; |
| 20 | + width: 60vw; |
| 21 | + max-width: 60vw; |
23 | 22 | margin: 5vh auto;
|
24 | 23 | padding: 0 3vw 0 3vw;
|
25 | 24 | }
|
26 |
| - #links > a, #links > .browser-info { |
| 25 | + #links > .link-container > a, #links > .browser-info { |
27 | 26 | font-family: "Source Code Pro", Monaco, Consolas, "Courier New", monospace, Impact;
|
28 |
| - font-size: 3.5vh; |
29 |
| - padding: 0.75vh 10vw 0.75vh 10vw; |
30 |
| - margin: 1.5vh -10vw; |
| 27 | + font-size: 16pt; |
| 28 | + padding: 0.75vh 0vw 0.75vh 0vw; |
| 29 | + margin-top: 1.5vh; |
31 | 30 | }
|
32 |
| - #links > a { |
| 31 | + #links > .link-container > a { |
33 | 32 | text-decoration: none;
|
34 | 33 | color: white;
|
35 |
| - font-size: 5em; |
36 |
| - font-size: 4vh; |
| 34 | + font-size: 18pt; |
37 | 35 | display: block;
|
38 | 36 | width: 100%;
|
39 | 37 | box-shadow: 0 3px 6px rgba(0,0,0,0.16), 0 3px 6px rgba(0,0,0,0.23);
|
40 | 38 | transition: all 150ms;
|
41 | 39 | font-weight: bold;
|
42 | 40 | word-wrap: break-word;
|
43 | 41 | }
|
44 |
| - #links > .description { |
| 42 | + #links > .link-container > .description { |
45 | 43 | text-decoration: none;
|
46 | 44 | color: white;
|
47 |
| - display: none; |
| 45 | + max-height: 0; |
| 46 | + overflow: hidden; |
48 | 47 | width: 100%;
|
49 |
| - transition: all 150ms; |
| 48 | + transition: all 1.5s; |
| 49 | + transition-delay: 300ms; |
50 | 50 | font-weight: bold;
|
| 51 | + font-size: 14pt; |
51 | 52 | word-wrap: break-word;
|
52 | 53 | }
|
| 54 | + #links > .link-container:hover > .description { |
| 55 | + max-height: 50vh; |
| 56 | + } |
53 | 57 | #links > .browser-info {
|
54 | 58 | margin: 3em auto 2em;
|
55 | 59 | padding: 0.75vh 0vh;
|
|
58 | 62 | text-shadow: 0 0 0.5em rgba(0, 0, 0, 0.5);
|
59 | 63 | }
|
60 | 64 | @media (min-height: 600px) {
|
61 |
| - #links > a { |
62 |
| - margin: 0.75vh -10vw; |
| 65 | + #links > .link-container > a { |
| 66 | + margin: 0.75vh 0vw; |
63 | 67 | }
|
64 |
| - #links > a, #links .browser-info { |
| 68 | + #links > .link-container > a, #links .browser-info { |
65 | 69 | font-size: 20px;
|
66 | 70 | padding-top: 0.25em;
|
67 | 71 | padding-bottom: 0.25em;
|
68 | 72 | }
|
69 | 73 | }
|
70 |
| - #description-toggle { |
71 |
| - font-family: "Source Code Pro", Monaco, Consolas, "Courier New", monospace, Impact; |
72 |
| - font-size: 3.5vh; |
73 |
| - padding: 0.75vh 10vw 0.75vh 10vw; |
74 |
| - margin: 1.5vh -10vw 0 1.5vh; |
75 |
| - text-decoration: none; |
76 |
| - color: white; |
77 |
| - font-size: 2.5em; |
78 |
| - font-size: 2vh; |
79 |
| - display: block; |
80 |
| - width: 20%; |
81 |
| - cursor: pointer; |
82 |
| - transition: all 150ms; |
83 |
| - font-weight: bold; |
84 |
| - word-wrap: break-word; |
85 |
| - } |
86 |
| - #links > a:hover, #links > a:focus { |
| 74 | + #links > .link-container > a:hover, #links > .link-container > a:focus { |
87 | 75 | text-decoration: underline;
|
88 | 76 | text-shadow:
|
89 | 77 | 0 0 20px rgba(255, 255, 255, 0.5),
|
|
108 | 96 | .dubious {
|
109 | 97 | background: rgb(246, 207, 47);
|
110 | 98 | }
|
111 |
| - #links > a.dubious { |
| 99 | + #links > .link-container > a.dubious { |
112 | 100 | color: #222;
|
113 | 101 | }
|
114 |
| - #links > a.dubious:hover { |
| 102 | + #links > .link-container > a.dubious:hover { |
115 | 103 | text-shadow:
|
116 | 104 | 0 0 20px rgba(150, 100, 0, 0.15),
|
117 | 105 | 0 0 40px rgba(150, 100, 0, 0.15),
|
|
130 | 118 | color: #222;
|
131 | 119 | background: rgb(243, 121, 46);
|
132 | 120 | }
|
133 |
| - #links > .comic-sans { |
134 |
| - font-family: "Comic Sans MS", "Comic Sans", "Marker Felt"; |
135 |
| - } |
136 |
| - #links > .more { |
137 |
| - display: none; |
138 |
| - } |
139 |
| - #links.show-more > .more { |
140 |
| - display: block; |
141 |
| - } |
142 |
| - #links > #reveal-more { |
143 |
| - background: black; |
144 |
| - } |
145 |
| - #links > #reveal-more:hover { |
146 |
| - cursor: pointer |
147 |
| - } |
148 |
| - #links.show-more > #reveal-more { |
149 |
| - display: none; |
150 |
| - } |
151 |
| - #links > .hidden { |
152 |
| - display: none; |
153 |
| - } |
154 | 121 |
|
155 | 122 | h2 {
|
156 | 123 | color: white;
|
|
223 | 190 | return null;
|
224 | 191 | }
|
225 | 192 |
|
226 |
| - function toggleDescriptions() { |
227 |
| - var descriptions = document.querySelectorAll("#links > .description"); |
228 |
| - for (var i = 0; i < descriptions.length; i++) { |
229 |
| - if (descriptions[i].style.display === "block") { |
230 |
| - descriptions[i].style.display = "none" |
231 |
| - } else { |
232 |
| - descriptions[i].style.display = "block" |
233 |
| - } |
234 |
| - |
235 |
| - } |
236 |
| - } |
237 |
| - |
238 | 193 | window.addEventListener("load", function() {
|
239 | 194 | document.getElementById("ua").title = navigator.userAgent;
|
240 | 195 | document.getElementById("ua").textContent = getBrowserVersion();
|
|
246 | 201 | </script>
|
247 | 202 | </head>
|
248 | 203 | <body>
|
249 |
| - <a id="description-toggle">Show Descriptions</a> |
250 | 204 | <div id="links">
|
251 | 205 | {% for category in site.data.categories %}
|
252 | 206 | <h2>{{ category.name }}:</h2>
|
253 | 207 | {% for subdomain_hash in site.data.subdomains %}
|
254 |
| - {% assign name = subdomain_hash[0] %} |
255 |
| - {% assign subdomain = subdomain_hash[1] %} |
256 |
| - {% if subdomain.category == category.name %} |
257 |
| - <a href="https://{{ name }}.{{ site.domain }}/" style="background: {{ subdomain.background }}">{{ name }}</a> |
258 |
| - <div class="description">{{ subdomain.description }}</div> |
259 |
| - {% endif %} |
| 208 | + <div class="link-container"> |
| 209 | + {% assign name = subdomain_hash[0] %} |
| 210 | + {% assign subdomain = subdomain_hash[1] %} |
| 211 | + {% if subdomain.category == category.name %} |
| 212 | + <a href="https://{{ name }}.{{ site.domain }}/" style="background: {{ subdomain.background }}">{{ name }}</a> |
| 213 | + <div class="description">{{ subdomain.description }}</div> |
| 214 | + {% endif %} |
| 215 | + </div> |
260 | 216 | {% endfor %}
|
261 | 217 | {% endfor %}
|
262 | 218 | <div class="browser-info">
|
|
0 commit comments