Skip to content

Commit 4d2354e

Browse files
committed
third project switched to global styles and font-awesome link
1 parent 4de4a77 commit 4d2354e

File tree

4 files changed

+8
-350
lines changed

4 files changed

+8
-350
lines changed

3-reviews/final/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
rel="stylesheet"
1010
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
1111
/>
12+
<!-- global styles -->
13+
<link rel="stylesheet" href="../../global.css" />
1214
<!-- styles -->
1315
<link rel="stylesheet" href="styles.css" />
1416
</head>

3-reviews/final/styles.css

+2-175
Original file line numberDiff line numberDiff line change
@@ -1,180 +1,5 @@
11
/*
22
===============
3-
Fonts
4-
===============
5-
*/
6-
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");
7-
8-
/*
9-
===============
10-
Variables
11-
===============
12-
*/
13-
14-
:root {
15-
/* dark shades of primary color*/
16-
--clr-primary-1: hsl(205, 86%, 17%);
17-
--clr-primary-2: hsl(205, 77%, 27%);
18-
--clr-primary-3: hsl(205, 72%, 37%);
19-
--clr-primary-4: hsl(205, 63%, 48%);
20-
/* primary/main color */
21-
--clr-primary-5: hsl(205, 78%, 60%);
22-
/* lighter shades of primary color */
23-
--clr-primary-6: hsl(205, 89%, 70%);
24-
--clr-primary-7: hsl(205, 90%, 76%);
25-
--clr-primary-8: hsl(205, 86%, 81%);
26-
--clr-primary-9: hsl(205, 90%, 88%);
27-
--clr-primary-10: hsl(205, 100%, 96%);
28-
/* darkest grey - used for headings */
29-
--clr-grey-1: hsl(209, 61%, 16%);
30-
--clr-grey-2: hsl(211, 39%, 23%);
31-
--clr-grey-3: hsl(209, 34%, 30%);
32-
--clr-grey-4: hsl(209, 28%, 39%);
33-
/* grey used for paragraphs */
34-
--clr-grey-5: hsl(210, 22%, 49%);
35-
--clr-grey-6: hsl(209, 23%, 60%);
36-
--clr-grey-7: hsl(211, 27%, 70%);
37-
--clr-grey-8: hsl(210, 31%, 80%);
38-
--clr-grey-9: hsl(212, 33%, 89%);
39-
--clr-grey-10: hsl(210, 36%, 96%);
40-
--clr-white: #fff;
41-
--clr-red-dark: hsl(360, 67%, 44%);
42-
--clr-red-light: hsl(360, 71%, 66%);
43-
--clr-green-dark: hsl(125, 67%, 44%);
44-
--clr-green-light: hsl(125, 71%, 66%);
45-
--clr-black: #222;
46-
--ff-primary: "Roboto", sans-serif;
47-
--ff-secondary: "Open Sans", sans-serif;
48-
--transition: all 0.3s linear;
49-
--spacing: 0.25rem;
50-
--radius: 0.5rem;
51-
--light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
52-
--dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
53-
--max-width: 1170px;
54-
--fixed-width: 620px;
55-
}
56-
/*
57-
===============
58-
Global Styles
59-
===============
60-
*/
61-
62-
*,
63-
::after,
64-
::before {
65-
margin: 0;
66-
padding: 0;
67-
box-sizing: border-box;
68-
}
69-
body {
70-
font-family: var(--ff-secondary);
71-
background: var(--clr-grey-10);
72-
color: var(--clr-grey-1);
73-
line-height: 1.5;
74-
font-size: 0.875rem;
75-
}
76-
ul {
77-
list-style-type: none;
78-
}
79-
a {
80-
text-decoration: none;
81-
}
82-
img:not(.nav-logo) {
83-
width: 100%;
84-
display: block;
85-
}
86-
87-
h1,
88-
h2,
89-
h3,
90-
h4 {
91-
letter-spacing: var(--spacing);
92-
text-transform: capitalize;
93-
line-height: 1.25;
94-
margin-bottom: 0.75rem;
95-
font-family: var(--ff-primary);
96-
}
97-
h1 {
98-
font-size: 3rem;
99-
}
100-
h2 {
101-
font-size: 2rem;
102-
}
103-
h3 {
104-
font-size: 1.25rem;
105-
}
106-
h4 {
107-
font-size: 0.875rem;
108-
}
109-
p {
110-
margin-bottom: 1.25rem;
111-
color: var(--clr-grey-5);
112-
}
113-
@media screen and (min-width: 800px) {
114-
h1 {
115-
font-size: 4rem;
116-
}
117-
h2 {
118-
font-size: 2.5rem;
119-
}
120-
h3 {
121-
font-size: 1.75rem;
122-
}
123-
h4 {
124-
font-size: 1rem;
125-
}
126-
body {
127-
font-size: 1rem;
128-
}
129-
h1,
130-
h2,
131-
h3,
132-
h4 {
133-
line-height: 1;
134-
}
135-
}
136-
/* global classes */
137-
138-
.btn {
139-
text-transform: uppercase;
140-
background: transparent;
141-
color: var(--clr-black);
142-
padding: 0.375rem 0.75rem;
143-
letter-spacing: var(--spacing);
144-
display: inline-block;
145-
transition: var(--transition);
146-
font-size: 0.875rem;
147-
border: 2px solid var(--clr-black);
148-
cursor: pointer;
149-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
150-
border-radius: var(--radius);
151-
}
152-
.btn:hover {
153-
color: var(--clr-white);
154-
background: var(--clr-black);
155-
}
156-
/* section */
157-
.section {
158-
padding: 5rem 0;
159-
}
160-
161-
.section-center {
162-
width: 90vw;
163-
margin: 0 auto;
164-
max-width: 1170px;
165-
}
166-
@media screen and (min-width: 992px) {
167-
.section-center {
168-
width: 95vw;
169-
}
170-
}
171-
main {
172-
min-height: 100vh;
173-
display: grid;
174-
place-items: center;
175-
}
176-
/*
177-
===============
1783
Reviews
1794
===============
1805
*/
@@ -218,6 +43,8 @@ main {
21843
margin-bottom: 1.5rem;
21944
}
22045
#person-img {
46+
width: 100%;
47+
display: block;
22148
height: 100%;
22249
object-fit: cover;
22350
border-radius: 50%;

3-reviews/setup/index.html

+2
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@
99
rel="stylesheet"
1010
href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.14.0/css/all.min.css"
1111
/>
12+
<!-- global styles -->
13+
<link rel="stylesheet" href="../../global.css" />
1214
<!-- styles -->
1315
<link rel="stylesheet" href="styles.css" />
1416
</head>

3-reviews/setup/styles.css

+2-175
Original file line numberDiff line numberDiff line change
@@ -1,180 +1,5 @@
11
/*
22
===============
3-
Fonts
4-
===============
5-
*/
6-
@import url("https://fonts.googleapis.com/css?family=Open+Sans|Roboto:400,700&display=swap");
7-
8-
/*
9-
===============
10-
Variables
11-
===============
12-
*/
13-
14-
:root {
15-
/* dark shades of primary color*/
16-
--clr-primary-1: hsl(205, 86%, 17%);
17-
--clr-primary-2: hsl(205, 77%, 27%);
18-
--clr-primary-3: hsl(205, 72%, 37%);
19-
--clr-primary-4: hsl(205, 63%, 48%);
20-
/* primary/main color */
21-
--clr-primary-5: hsl(205, 78%, 60%);
22-
/* lighter shades of primary color */
23-
--clr-primary-6: hsl(205, 89%, 70%);
24-
--clr-primary-7: hsl(205, 90%, 76%);
25-
--clr-primary-8: hsl(205, 86%, 81%);
26-
--clr-primary-9: hsl(205, 90%, 88%);
27-
--clr-primary-10: hsl(205, 100%, 96%);
28-
/* darkest grey - used for headings */
29-
--clr-grey-1: hsl(209, 61%, 16%);
30-
--clr-grey-2: hsl(211, 39%, 23%);
31-
--clr-grey-3: hsl(209, 34%, 30%);
32-
--clr-grey-4: hsl(209, 28%, 39%);
33-
/* grey used for paragraphs */
34-
--clr-grey-5: hsl(210, 22%, 49%);
35-
--clr-grey-6: hsl(209, 23%, 60%);
36-
--clr-grey-7: hsl(211, 27%, 70%);
37-
--clr-grey-8: hsl(210, 31%, 80%);
38-
--clr-grey-9: hsl(212, 33%, 89%);
39-
--clr-grey-10: hsl(210, 36%, 96%);
40-
--clr-white: #fff;
41-
--clr-red-dark: hsl(360, 67%, 44%);
42-
--clr-red-light: hsl(360, 71%, 66%);
43-
--clr-green-dark: hsl(125, 67%, 44%);
44-
--clr-green-light: hsl(125, 71%, 66%);
45-
--clr-black: #222;
46-
--ff-primary: "Roboto", sans-serif;
47-
--ff-secondary: "Open Sans", sans-serif;
48-
--transition: all 0.3s linear;
49-
--spacing: 0.25rem;
50-
--radius: 0.5rem;
51-
--light-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
52-
--dark-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
53-
--max-width: 1170px;
54-
--fixed-width: 620px;
55-
}
56-
/*
57-
===============
58-
Global Styles
59-
===============
60-
*/
61-
62-
*,
63-
::after,
64-
::before {
65-
margin: 0;
66-
padding: 0;
67-
box-sizing: border-box;
68-
}
69-
body {
70-
font-family: var(--ff-secondary);
71-
background: var(--clr-grey-10);
72-
color: var(--clr-grey-1);
73-
line-height: 1.5;
74-
font-size: 0.875rem;
75-
}
76-
ul {
77-
list-style-type: none;
78-
}
79-
a {
80-
text-decoration: none;
81-
}
82-
img:not(.nav-logo) {
83-
width: 100%;
84-
display: block;
85-
}
86-
87-
h1,
88-
h2,
89-
h3,
90-
h4 {
91-
letter-spacing: var(--spacing);
92-
text-transform: capitalize;
93-
line-height: 1.25;
94-
margin-bottom: 0.75rem;
95-
font-family: var(--ff-primary);
96-
}
97-
h1 {
98-
font-size: 3rem;
99-
}
100-
h2 {
101-
font-size: 2rem;
102-
}
103-
h3 {
104-
font-size: 1.25rem;
105-
}
106-
h4 {
107-
font-size: 0.875rem;
108-
}
109-
p {
110-
margin-bottom: 1.25rem;
111-
color: var(--clr-grey-5);
112-
}
113-
@media screen and (min-width: 800px) {
114-
h1 {
115-
font-size: 4rem;
116-
}
117-
h2 {
118-
font-size: 2.5rem;
119-
}
120-
h3 {
121-
font-size: 1.75rem;
122-
}
123-
h4 {
124-
font-size: 1rem;
125-
}
126-
body {
127-
font-size: 1rem;
128-
}
129-
h1,
130-
h2,
131-
h3,
132-
h4 {
133-
line-height: 1;
134-
}
135-
}
136-
/* global classes */
137-
138-
.btn {
139-
text-transform: uppercase;
140-
background: transparent;
141-
color: var(--clr-black);
142-
padding: 0.375rem 0.75rem;
143-
letter-spacing: var(--spacing);
144-
display: inline-block;
145-
transition: var(--transition);
146-
font-size: 0.875rem;
147-
border: 2px solid var(--clr-black);
148-
cursor: pointer;
149-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
150-
border-radius: var(--radius);
151-
}
152-
.btn:hover {
153-
color: var(--clr-white);
154-
background: var(--clr-black);
155-
}
156-
/* section */
157-
.section {
158-
padding: 5rem 0;
159-
}
160-
161-
.section-center {
162-
width: 90vw;
163-
margin: 0 auto;
164-
max-width: 1170px;
165-
}
166-
@media screen and (min-width: 992px) {
167-
.section-center {
168-
width: 95vw;
169-
}
170-
}
171-
main {
172-
min-height: 100vh;
173-
display: grid;
174-
place-items: center;
175-
}
176-
/*
177-
===============
1783
Reviews
1794
===============
1805
*/
@@ -218,6 +43,8 @@ main {
21843
margin-bottom: 1.5rem;
21944
}
22045
#person-img {
46+
width: 100%;
47+
display: block;
22148
height: 100%;
22249
object-fit: cover;
22350
border-radius: 50%;

0 commit comments

Comments
 (0)