Skip to content

Commit fb73c3d

Browse files
authored
Create style.css
The CSS file to make my HTML look like a Github markdown.
1 parent f462dc4 commit fb73c3d

File tree

1 file changed

+120
-0
lines changed

1 file changed

+120
-0
lines changed

lesson_01/chelseaogbonnia/style.css

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
body {
2+
font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
3+
font-size: 16px;
4+
line-height: 1.5;
5+
color: #24292e;
6+
background-color: #fff;
7+
padding: 20px;
8+
font-size: 100%;
9+
}
10+
11+
h1, h2, h3, h4, h5, h6 {
12+
font-weight: 600;
13+
margin: 1em 0;
14+
border-bottom: 1px solid #eaecef;
15+
}
16+
17+
h1 {
18+
font-size: 2em;
19+
padding-bottom: 0.3em;
20+
}
21+
22+
p {
23+
margin-bottom: 16px;
24+
}
25+
26+
strong {
27+
font-weight: 600;
28+
}
29+
30+
em {
31+
font-style: italic;
32+
}
33+
34+
code {
35+
font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace;
36+
background-color: #f6f8fa;
37+
padding: 0.2em 0.4em;
38+
border-radius: 6px;
39+
}
40+
41+
pre {
42+
background-color: #f6f8fa;
43+
padding: 16px;
44+
border-radius: 6px;
45+
overflow: auto;
46+
font-size: 85%;
47+
line-height: 1.45;
48+
}
49+
50+
ul, ol {
51+
padding-left: 2em;
52+
margin-bottom: 16px;
53+
}
54+
55+
li {
56+
margin-bottom: 0.25em;
57+
}
58+
59+
blockquote {
60+
border-left: 4px solid #dfe2e5;
61+
padding: 0 1em;
62+
color: #6a737d;
63+
margin: 0;
64+
}
65+
66+
a {
67+
color: #0366d6;
68+
text-decoration: none;
69+
}
70+
71+
a:hover {
72+
text-decoration: underline;
73+
}
74+
75+
table {
76+
width: 100%;
77+
border-collapse: collapse;
78+
margin-bottom: 16px;
79+
}
80+
81+
th, td {
82+
border: 1px solid #dfe2e5;
83+
padding: 6px 13px;
84+
}
85+
86+
th {
87+
background-color: #f6f8fa;
88+
font-weight: 600;
89+
}
90+
91+
hr {
92+
border: 0;
93+
border-top: 1px solid #eaecef;
94+
margin: 24px 0;
95+
}
96+
97+
img {
98+
max-width: 100%;
99+
height: auto;
100+
}
101+
102+
input[type="checkbox"] {
103+
margin-right: 0.5em;
104+
}
105+
106+
@media(max-width:480px){
107+
body {
108+
padding: 10px;
109+
}
110+
h1 {
111+
font-size: 1.5em;
112+
}
113+
p{
114+
font-size: 0.9em;
115+
}
116+
pre{
117+
white-space: pre-wrap;
118+
word-wrap: break-word;
119+
}
120+
}

0 commit comments

Comments
 (0)