File tree Expand file tree Collapse file tree 1 file changed +267
-0
lines changed
starter/03-CSS-Fundamentals Expand file tree Collapse file tree 1 file changed +267
-0
lines changed Original file line number Diff line number Diff line change 1+ * {
2+ /* border-top: 10px solid #1098ad; */
3+ margin : 0 ;
4+ padding : 0 ;
5+ }
6+
7+ /* PAGE SECTIONS */
8+ body {
9+ color : # 444 ;
10+ font-family : sans-serif;
11+
12+ border-top : 10px solid # 1098ad ;
13+ position : relative;
14+ }
15+
16+ .container {
17+ width : 800px ;
18+ /* margin-left: auto;
19+ margin-right: auto; */
20+ margin : 0 auto;
21+ }
22+
23+ .main-header {
24+ background-color : # f7f7f7 ;
25+ /* padding: 20px;
26+ padding-left: 40px;
27+ padding-right: 40px; */
28+ padding : 20px 40px ;
29+ margin-bottom : 60px ;
30+ /* height: 80px; */
31+ }
32+
33+ nav {
34+ font-size : 18px ;
35+ /* text-align: center; */
36+ }
37+
38+ article {
39+ margin-bottom : 60px ;
40+ }
41+
42+ .post-header {
43+ margin-bottom : 40px ;
44+ /* position: relative; */
45+ }
46+
47+ aside {
48+ background-color : # f7f7f7 ;
49+ border-top : 5px solid # 1098ad ;
50+ border-bottom : 5px solid # 1098ad ;
51+ /* padding-top: 50px;
52+ padding-bottom: 50px; */
53+ padding : 50px 0 ;
54+ width : 500px ;
55+ }
56+
57+ /* SMALLER ELEMENTS */
58+ h1 ,
59+ h2 ,
60+ h3 {
61+ color : # 1098ad ;
62+ }
63+
64+ h1 {
65+ font-size : 26px ;
66+ text-transform : uppercase;
67+ font-style : italic;
68+ }
69+
70+ h2 {
71+ font-size : 40px ;
72+ margin-bottom : 30px ;
73+ }
74+
75+ h3 {
76+ font-size : 30px ;
77+ margin-bottom : 20px ;
78+ margin-top : 40px ;
79+ }
80+
81+ h4 {
82+ font-size : 20px ;
83+ text-transform : uppercase;
84+ text-align : center;
85+ }
86+
87+ p {
88+ font-size : 22px ;
89+ line-height : 1.5 ;
90+ margin-bottom : 15px ;
91+ }
92+
93+ ul ,
94+ ol {
95+ margin-left : 50px ;
96+ margin-bottom : 20px ;
97+ }
98+
99+ li {
100+ font-size : 20px ;
101+ margin-bottom : 10px ;
102+ /* display: inline; */
103+ }
104+
105+ li : last-child {
106+ margin-bottom : 0 ;
107+ }
108+
109+ /* footer p {
110+ font-size: 16px;
111+ } */
112+
113+ /* article header p {
114+ font-style: italic;
115+ } */
116+
117+ # author {
118+ font-style : italic;
119+ font-size : 18px ;
120+ }
121+
122+ # copyright {
123+ font-size : 16px ;
124+ }
125+
126+ .related-author {
127+ font-size : 18px ;
128+ font-weight : bold;
129+ }
130+
131+ /* ul {
132+ list-style: none;
133+ } */
134+
135+ .related {
136+ list-style : none;
137+ }
138+
139+ body {
140+ /* background-color: orangered; */
141+ }
142+
143+ /* .first-li {
144+ font-weight: bold;
145+ } */
146+
147+ li : first-child {
148+ font-weight : bold;
149+ }
150+
151+ li : last-child {
152+ font-style : italic;
153+ }
154+
155+ li : nth-child (even) {
156+ /* color: red; */
157+ }
158+
159+ /* Misconception: this won't work! */
160+ article p : first-child {
161+ color : red;
162+ }
163+
164+ /* Styling links */
165+ a : link {
166+ color : # 1098ad ;
167+ text-decoration : none;
168+ }
169+
170+ a : visited {
171+ /* color: #777; */
172+ color : # 1098ad ;
173+ }
174+
175+ a : hover {
176+ color : orangered;
177+ font-weight : bold;
178+ text-decoration : underline orangered;
179+ }
180+
181+ a : active {
182+ background-color : black;
183+ font-style : italic;
184+ }
185+ /* LVHA */
186+
187+ .post-img {
188+ width : 100% ;
189+ height : auto;
190+ }
191+
192+ nav a : link {
193+ /* background-color: orangered;
194+ margin: 20px;
195+ padding: 20px;
196+
197+ display: block; */
198+
199+ margin-right : 30px ;
200+ margin-top : 10px ;
201+ display : inline-block;
202+ }
203+
204+ nav a : link : last-child {
205+ margin-right : 0 ;
206+ }
207+
208+ button {
209+ font-size : 22px ;
210+ padding : 20px ;
211+ cursor : pointer;
212+
213+ position : absolute;
214+ /* top: 50px;
215+ left: 50px; */
216+ bottom : 50px ;
217+ right : 50px ;
218+ }
219+
220+ h1 ::first-letter {
221+ font-style : normal;
222+ margin-right : 5px ;
223+ }
224+
225+ h3 + p ::first-line {
226+ /* color: red; */
227+ }
228+
229+ h2 {
230+ /* background-color: orange; */
231+ position : relative;
232+ }
233+
234+ h2 ::before {
235+ content : "TOP" ;
236+ background-color : # ffe70e ;
237+ color : # 444 ;
238+ font-size : 16px ;
239+ font-weight : bold;
240+ display : inline-block;
241+ padding : 5px 10px ;
242+ position : absolute;
243+ top : -10px ;
244+ right : -25px ;
245+ }
246+
247+ /* Resolving conflicts */
248+ /* #copyright {
249+ color: red;
250+ }
251+
252+ .copyright {
253+ color: blue;
254+ }
255+
256+ .text {
257+ color: yellow;
258+ }
259+
260+ footer p {
261+ color: green !important;
262+ } */
263+
264+ /* nav a:link,
265+ nav p {
266+ font-size: 18px;
267+ } */
You can’t perform that action at this time.
0 commit comments