Skip to content

Commit 597c3fa

Browse files
Refactor CSS styles and improve layout
1 parent 0a32bc0 commit 597c3fa

1 file changed

Lines changed: 110 additions & 8 deletions

File tree

style2.css

Lines changed: 110 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,111 @@
1-
* {
2-
all: unset; /* Strips every single default browser style */
3-
display: block;
4-
font-family: monospace; /* Gives it that "coding" feel */
5-
white-space: pre; /* Keeps your line breaks and spacing exactly as typed */
6-
background: #000; /* Optional: keep it dark */
7-
color: #fff; /* Optional: keep it readable */
8-
padding: 10px;
1+
@import url("https://fonts.googleapis.com/css?family=IBM+Plex+Sans|IBM+Plex+Mono");
2+
3+
body {
4+
margin-top: 1em;
5+
left: 10%;
6+
right: 10%;
7+
padding: 0.5em;
8+
background-color: #111111;
9+
color: rgba(222, 222, 222, 1.00);
10+
font-family: "IBM Plex Sans", Roboto, Calibri, Helvetica, Arial, sans-serif;
11+
}
12+
13+
a {
14+
color: rgba(106, 152, 175, 1.00);
15+
}
16+
17+
a:visited {
18+
color: rgba(166, 121, 210, 1.00);
19+
}
20+
21+
.theblueguy {
22+
background-color: #222222;
23+
margin: -0.5em;
24+
padding: 0.5em;
25+
}
26+
27+
h1 {
28+
font-size: 36pt;
29+
line-height: 1em;
30+
}
31+
32+
h2, h3 {
33+
padding-top: 21px;
34+
font-size: 15pt;
35+
line-height: 1.5em;
36+
text-align: left;
37+
}
38+
39+
hr {
40+
border: 1px gray solid;
41+
}
42+
43+
.text {
44+
text-align: justify;
45+
font-size: 12pt;
46+
line-height: 1.5em;
47+
}
48+
49+
ul {
50+
padding-right: 1em;
51+
}
52+
53+
.towerofpisa {
54+
font-style: italic;
55+
}
56+
57+
.titanic {
58+
float: none;
59+
}
60+
61+
.bold {
62+
font-weight: bold;
63+
}
64+
65+
#bottom, figcaption {
66+
font-size: 9pt;
67+
/* font-style: oblique;
68+
color: dimgray; */
69+
text-align: left;
70+
}
71+
72+
#bottom {
73+
margin-top: 3em;
74+
font-style: normal;
75+
}
76+
77+
.pre, pre, code {
78+
font-family: "IBM Plex Mono", monospace;
79+
}
80+
81+
nav ul li {
82+
padding: .5em;
83+
}
84+
85+
img {
86+
max-width: 100%;
87+
height: auto;
88+
}
89+
90+
@media screen and (max-width: 800px) {
91+
body {
92+
left: 0;
93+
right: 0;
94+
}
95+
}
96+
97+
@media screen and (max-width: 1024px) {
98+
h1 {
99+
font-size: 24pt;
100+
text-align: center;
101+
}
102+
h2, h3 {
103+
font-size: 12pt;
104+
}
105+
.text {
106+
font-size: 9pt;
107+
}
108+
#bottom, .ad {
109+
font-size: 8pt;
110+
}
9111
}

0 commit comments

Comments
 (0)