Skip to content

Commit 9ccde52

Browse files
Merge pull request #9 from official-clockwork/stylestuff
Logo and pallette
2 parents 5c3505c + 141e7f3 commit 9ccde52

3 files changed

Lines changed: 469 additions & 169 deletions

File tree

OpenBench/static/logo.svg

Lines changed: 5 additions & 5 deletions
Loading

OpenBench/static/style.css

Lines changed: 39 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
1-
2-
a:link, a:visited, a:hover, a:active {
1+
a:link,
2+
a:visited,
3+
a:hover,
4+
a:active {
35
text-decoration: none;
46
color: #8BBAD6;
57
}
@@ -11,16 +13,18 @@ body {
1113

1214
--color-font1: #DBDEE1;
1315
--color-font2: #949BA4;
14-
--color-font3: #008F11;
16+
--color-font3: #d4af37;
1517

1618
background-color: var(--color1);
1719

1820
font-size: 16px;
1921
font-family: "Courier Prime", serif;
20-
display:flex;
22+
display: flex;
2123
}
2224

23-
body, html, main{
25+
body,
26+
html,
27+
main {
2428
padding: 0;
2529
margin: 0;
2630
min-width: 100%;
@@ -37,7 +41,7 @@ body, html, main{
3741
display: none;
3842
}
3943

40-
#content-parent{
44+
#content-parent {
4145
flex-grow: 1;
4246
justify-content: left;
4347
height: 100%;
@@ -48,12 +52,24 @@ body, html, main{
4852
}
4953

5054
#content {
51-
max-width: calc(min(100%,1000px));
55+
max-width: calc(min(100%, 1000px));
5256
width: 100%;
5357
white-space: nowrap;
5458
display: inline-block;
5559
}
5660

61+
/* Center the logo header */
62+
#content-header {
63+
display: flex;
64+
justify-content: center;
65+
align-items: center;
66+
width: 100%;
67+
}
68+
69+
#content-header h2 {
70+
margin: 0;
71+
}
72+
5773
#sidebar ul {
5874
list-style-type: none;
5975
padding: 0px 16px 0px 8px;
@@ -111,7 +127,7 @@ body, html, main{
111127
background-color: #323232;
112128
}
113129

114-
#content .hoverable tr:hover{
130+
#content .hoverable tr:hover {
115131
background-color: var(--color1);
116132
}
117133

@@ -153,12 +169,14 @@ body, html, main{
153169

154170
/* Table Spacer for chaining Tables as a hack */
155171

156-
#content .table-spacer th, #content .table-spacer tr {
172+
#content .table-spacer th,
173+
#content .table-spacer tr {
157174
background-color: var(--color1);
158175
height: 1rem;
159176
}
160177

161-
#content .table-spacer-small th, #content .table-spacer-small tr {
178+
#content .table-spacer-small th,
179+
#content .table-spacer-small tr {
162180
background-color: #171717;
163181
height: 0.4rem;
164182
padding: 0px;
@@ -176,7 +194,8 @@ body, html, main{
176194
border-bottom: 1px #444444 solid;
177195
}
178196

179-
#content th, #content td {
197+
#content th,
198+
#content td {
180199
padding: 10px 12px 6px 12px;
181200
}
182201

@@ -185,12 +204,12 @@ body, html, main{
185204
justify-content: space-between;
186205
}
187206

188-
#content .anchor-container > .anchorbutton {
207+
#content .anchor-container>.anchorbutton {
189208
flex: 1;
190209
margin-right: 4px;
191210
}
192211

193-
#content .anchor-container > .anchorbutton:last-child {
212+
#content .anchor-container>.anchorbutton:last-child {
194213
margin-right: 0px;
195214
}
196215

@@ -411,6 +430,8 @@ td pre {
411430
position: relative;
412431
z-index: 10;
413432
font-size: 2.2rem;
433+
top: 50%;
434+
transform: translateY(-50%);
414435
}
415436

416437
#content-parent {
@@ -428,8 +449,9 @@ td pre {
428449
#content-header {
429450
display: flex;
430451
align-items: center;
452+
justify-content: flex-start;
431453
background-color: var(--color1);
432-
position: absolute;
454+
position: relative;
433455
top: 0;
434456
left: 0;
435457
z-index: 10;
@@ -439,6 +461,8 @@ td pre {
439461
/* Adjust the font size to the screen width, ensuring that the title doesn't overflow */
440462
font-size: clamp(1.0rem, 4.8vw, 1.4rem);
441463
margin: 8px 0;
464+
flex-grow: 1;
465+
text-align: center;
442466
}
443467

444468
#content-header .site-title {
@@ -505,5 +529,4 @@ td pre {
505529
background-color: #000;
506530
border: 1px solid #ccc;
507531
border-radius: 8px;
508-
}
509-
532+
}

0 commit comments

Comments
 (0)