-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathportfolio-styling.css
More file actions
189 lines (151 loc) · 2.77 KB
/
portfolio-styling.css
File metadata and controls
189 lines (151 loc) · 2.77 KB
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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
/* Basic stuff for reset, site styles and text sizing */
* {
box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6, p, a {
margin: 0;
padding: 0;
text-decoration: none;
font-weight: normal;
}
html {
font-size: 15px;
font-family: "Courier New";
}
h1 {
white-space: nowrap;
display: none;
}
h2 {
font-size: 2.4rem;
width: 100%;
text-align: center;
}
h3 {
font-size: 1.4rem;
width: 100%;
margin: 5% 0 5% 0;
text-align: center;
}
p {
font-size: 1rem;
}
a {
padding: 2px;
white-space: nowrap;
font-weight: 500;
}
/* Set default backgrounds and text colours */
body, header, footer {
background-color: rgb(0, 0, 0);
}
h3, p, a {
color: rgb(180, 180, 180);
}
figcaption, a.cheat-sheet-link {
text-decoration: none;
text-align: center;
color: rgb(102, 102, 102);
}
/* Styling for all elements (no custom classes) */
section {
display: flex;
flex-flow: row wrap;
justify-content: center;
}
nav {
padding: 10px;
border-bottom: 1px solid rgb(180, 180, 180);
}
article {
min-width: 280px;
max-width: 400px;
margin: 10px;
border: 1px solid black;
border-radius: 25px;
background-color: rgb(51, 51, 51);
display: flex;
flex-flow: column nowrap;
justify-content: flex-start;
height: 100%;
}
figure {
max-width: 80%;
margin: 0 auto;
}
iframe {
width: 100%;
height: 400px;
}
/* Styling for custom classes ============================== */
h2.section-title {
visibility: hidden;
margin: 20px 0 20px 0;
}
h3.cheat-sheet-title {
font-size: 15px;
}
h3.about-title, h3.project-title, {
margin: 2% 0 2% 0;
}
p.about-info, p.project-info {
padding: 10px 8% 8% 8%;
text-align: center;
}
a.cheat-sheet-link {
font-size: 15px;
}
a.portfolio-nav-link {
font-size: 1.4rem ;
}
section.about-section, article.about-content {
justify-content: center;
}
article.cheat-sheet {
max-width: 240px;
}
figcaption.cheat-sheet-caption {
margin: 5% 0 5% 0;
}
header.portfolio-site-header {
display: flex;
flex-flow: row wrap;
justify-content: flex-start;
align-items: baseline;
position: sticky; /* keep element where it is without removing from document flow */
top: 0; /* set a distance from the top to stick to - 0 means always stay at the top */
}
footer.contact-footer {
width: 100%;
margin: 0 auto;
padding: 5px 0 10px 0;
display: flex;
justify-content: space-evenly;
align-items: center;
border-radius: 100px;
}
nav.portfolio-site-nav {
display: flex;
flex-flow: row wrap;
justify-content: space-evenly;
flex-grow: 2;
}
img.about-image, img.project-image {
width: 100%;
max-width: 300px;
margin: 0 auto;
border-radius: 25px;
}
img.logo {
width: 50px;
height: 50px;
}
/* Responsiveness for custom classes ============================== */
@media screen and (min-width: 600px){
html {
font-size: 20px;
}
article.about-content {
max-width: 500px;
}
}