1- /* Here are some starter styles
2- You can edit these or replace them entirely
3- It's showing you a common way to organise CSS
4- And includes solutions to common problems
5- As well as useful links to learn more */
6-
7- /* ====== Design Palette ======
8- This is our "design palette".
9- It sets out the colours, fonts, styles etc to be used in this design
10- At work, a designer will give these to you based on the corporate brand, but while you are learning
11- You can design it yourself if you like
12- Inspect the starter design with Devtools
13- Click on the colour swatches to see what is happening
14- I've put some useful CSS you won't have learned yet
15- For you to explore and play with if you are interested
16- https://web.dev/articles/min-max-clamp
17- https://scrimba.com/learn-css-variables-c026
18- ====== Design Palette ====== */
19- : root {
20- --paper : oklch (7 0 0 );
21- --ink : color-mix (in oklab, var (--color ) 5% , black);
22- --font : 100% / 1.5 system-ui;
23- --space : clamp (6px , 6px + 2vw , 15px );
24- --line : 1px solid;
25- --container : 1280px ;
26- }
27- /* ====== Base Elements ======
28- General rules for basic HTML elements in any context */
1+ * {
2+ margin : 0 ;
3+ padding : 0 ;
4+ box-sizing : border-box;
5+ font-family : 'Arial' , sans-serif;
6+ }
7+
8+ html ,
9+ body {
10+ height : 100% ;
11+ }
12+
2913body {
30- background : var (--paper );
31- color : var (--ink );
32- font : var (--font );
14+ background-color : # 3c3f72 ;
15+ color : # 080000 ;
16+ font-family : 'Arial' , sans-serif;
17+ line-height : 1.5 ;
18+ font-size : 1em ;
19+ display : flex;
20+ flex-direction : column;
21+ }
22+
23+ .page-header {
24+ background-color : # d0bee3 ;
25+ color : # 1a082c ;
26+ text-align : center;
27+ text-shadow : 2px 2px 4px rgba (225 , 226 , 237 , 0.982 );
28+ margin-bottom : 40px ;
29+ padding : 30px ;
30+ font-size : 1.5em ;
3331}
34- a {
35- padding : var ( --space );
36- border : var ( --line ) ;
37- max-width : fit-content ;
32+
33+ . page-header h1 {
34+ font-size : 2 em ;
35+ margin-bottom : 5 px ;
3836}
39- img ,
40- svg {
37+
38+ . hero . placeholder {
4139 width : 100% ;
42- object-fit : cover;
40+ height : 600px ;
41+ background-color : # d0bee3 ;
42+ border : 2px dashed # 1a082c ;
43+ border-radius : 10px ;
44+ margin-bottom : 20px ;
45+
46+ }
47+
48+ .hero {
49+ margin-right : 20px ;
50+ margin-left : 20px ;
51+ }
52+
53+ .main-article {
54+ flex : 1 ;
55+ background : white;
56+ padding-top : 45px ;
57+ padding-left : 15px ;
58+ padding-right : 15px ;
59+ padding-bottom : 15px ;
60+ border : 2px solid # 000 ;
61+ border-radius : 10px ;
62+ margin-bottom : 20px ;
63+ text-align : justify;
64+ margin-right : 20px ;
65+ margin-left : 20px ;
66+
67+ }
68+
69+ .main-article p ,
70+ .small-article p {
71+ font-size : 1.2em ;
4372}
44- /* ====== Site Layout ======
45- Setting the overall rules for page regions
46- https://www.w3.org/WAI/tutorials/page-structure/regions/
47- */
48- main {
49- max-width : var (--container );
50- margin : 0 auto calc (var (--space ) * 4 ) auto;
73+
74+
75+ .small-article h3 {
76+ font-size : 1em ;
77+ color : # 350763 ;
78+ margin-bottom : 15px ;
79+ text-shadow : 2px 2px 4px rgba (225 , 226 , 237 , 0.982 );
80+ }
81+
82+
83+ .main-article h2 {
84+ color : # 350763 ;
85+ margin-bottom : 15px ;
86+ text-shadow : 2px 2px 4px rgba (225 , 226 , 237 , 0.982 );
5187}
88+
89+ .btn {
90+ display : inline-block;
91+ padding : 4px 14px ;
92+ background-color : # 350763 ;
93+ color : white;
94+ text-decoration : none;
95+ border-radius : 5px ;
96+ margin-top : 10px ;
97+ font-size : 1.2em ;
98+ font-weight : bold;
99+ }
100+
101+ .btn : hover {
102+ background-color : # c3e7fb ;
103+ color : # 1a082c ;
104+ }
105+
106+ .small-articles {
107+ display : flex;
108+ gap : 20px ;
109+ margin-bottom : 20px ;
110+ margin-right : 20px ;
111+ margin-left : 20px ;
112+ text-align : justify;
113+
114+
115+ }
116+
117+ .small-article {
118+ flex : 1 ;
119+ background : white;
120+ padding : 15px ;
121+ border : 2px solid # 000 ;
122+ border-radius : 10px ;
123+ }
124+
125+ .small-article h3 {
126+ color : # 350763 ;
127+ margin-bottom : 10px ;
128+ font-size : 1.2em ;
129+ }
130+
131+ .placeholder-small {
132+ width : 100% ;
133+ height : 450px ;
134+ background-color : # d0bee3 ;
135+ border : 2px dashed # 1a082c ;
136+ border-radius : 10px ;
137+ margin-bottom : 15px ;
138+ }
139+
52140footer {
53- position : fixed ;
54- bottom : 0 ;
141+ background-color : # d0bee3 ;
142+ color : # 1a082c ;
55143 text-align : center;
144+ text-shadow : 2px 2px 4px rgba (225 , 226 , 237 , 0.982 );
145+ padding : 10px 15px ;
146+ line-height : 1.3 ;
147+ font-size : 1em ;
148+ margin-top : auto;
149+
56150}
57- /* ====== Articles Grid Layout ====
58- Setting the rules for how articles are placed in the main element.
59- Inspect this in Devtools and click the "grid" button in the Elements view
60- Play with the options that come up.
61- https://developer.chrome.com/docs/devtools/css/grid
62- https://gridbyexample.com/learn/
63- */
64- main {
65- display : grid;
66- grid-template-columns : 1fr 1fr ;
67- gap : var (--space );
68- > * : first-child {
69- grid-column : span 2 ;
70- }
71- }
72- /* ====== Article Layout ======
73- Setting the rules for how elements are placed in the article.
74- Now laying out just the INSIDE of the repeated card/article design.
75- Keeping things orderly and separate is the key to good, simple CSS.
76- */
77- article {
78- border : var (--line );
79- padding-bottom : var (--space );
80- text-align : left;
81- display : grid;
82- grid-template-columns : var (--space ) 1fr var (--space );
83- > * {
84- grid-column : 2 / 3 ;
85- }
86- > img {
87- grid-column : span 3 ;
88- }
151+
152+ footer p {
153+ font-weight : bold;
89154}
155+
156+ .footer-note {
157+ font-size : 22px ;
158+ color : # 1a082c ;
159+ margin-bottom : 5px ;
160+ text-shadow : 2px 2px 4px rgba (210 , 213 , 244 , 0.982 );
161+ padding-top : 10px ;
162+ padding-bottom : 10px ;
163+ padding-left : 15px ;
164+ padding-right : 15px ;
165+ border-bottom : none;
166+ <<<<<<< HEAD
167+ /* optional: remove the thick bar */
168+ = = = = = = = > > > > > > > 59daf8a (Updated wireframe HTML and CSS) bor der- radius: 10px;
169+
170+
171+ }
172+
173+ .footer-note a : hover {
174+ color : # c6e9e9 ;
175+ text-shadow : 2px 2px 4px rgba (25 , 32 , 112 , 0.982 );
176+
177+ }
0 commit comments