forked from pgburt/colleen-pink-webpage
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.css
94 lines (68 loc) · 1.8 KB
/
main.css
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
/*
https://css-tricks.com/css-grid-replace-flexbox/
https://css-tricks.com/understanding-web-fonts-getting/
https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Grid_Layout
Named HTML Colors
https://developer.mozilla.org/en-US/docs/Web/CSS/named-color
*/
/*
VIEW UNITS
https://css-tricks.com/fun-viewport-units/
vw is like em, in that it is relative to parent container.
% is like rem, in that it is absolute.
*/
/*
FONTS
Go from heavy to light weights, from headings to body content.
Divide font-size by 2, from headings to body content.
Body content line-height should be between 1.2x and 1.5.
1.2x for short blocks of text.
1.5x for longer form writing.
For body text aim for between 40 and 70 characters per line.
*/
@import url('https://fonts.googleapis.com/css?family=Kaushan+Script&display=swap');
/* Mobile first layout */
:root {
font-size: 18px;
font-family: 'Kaushan Script', serif;
color: #000;
}
/* Adding opacity to element with #colors affects entire element. Going to have to use hsla to get opacity on just the colors*/
body {
background-color: #bf00ff;
opacity: 0.6;
}
.wrapper {
display: flex;
}
.fancy-text {
text-align: center;
width: 100%;
height: 100%;
margin-top: 34vh;
}
.fancy-text > h1 {
font-size: 3rem;
margin: 4px;
}
.subh-text {
font-size: 1rem;
margin: 4px;
}
/* Laptop screen sizes and above, progressively enhanced */
/* We'll try to add liner-gradient later using multiple colors we'll also just start with one.*/
@media (min-width: 1200px) {
body {
background-color: #bf00ff;
opacity: 0.6;
}
.fancy-text>h1 {
font-size: 6rem;
margin: 4px;
}
.subh-text {
font-size: 2rem;
margin: 4px;
}
}
/* */