-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
179 lines (137 loc) · 3.53 KB
/
Copy pathstyle.css
File metadata and controls
179 lines (137 loc) · 3.53 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
body, html {
height: 100%;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background-color: dimgrey;
}
.hero-image {
/* - HERO -
This code controls your "hero image." You will need to change hero.jpg to match your asset*/
background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("images/BLAIR-47.jpg");
height: 100%;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
position: relative;
}
/* Places text in the middle of the image */
.hero-text {
text-align: center;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
color: white;
font-size: 250%;
}
.hero-text h2 { /* This section adds the text stylings for your hero block */
display: block;
font-size: 0.67em;
margin-block-start: 2.33em;
margin-block-end: 2.33em;
margin-inline-start: 0px;
margin-inline-end: 0px;
font-weight: bold;
}
/* - PARALLAX -
This code controls that cool parallax image and scrolling effect. Change the image "fuego.jpg" below to match your asset.*/
/*You can always add more parllax assets on your web document, just follow the directions at the bottom of the index.html.*/
.parallax-1 {
background-image: url("fuego.jpg");
/* Set a specific height */
height: 500px;
/* control the parallax scrolling effect */
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
/* This code stops the parallax image and scrolling effect for small screens--at the moment, Iphones just don't it.*/
@media screen and (max-width: 768px) {
.parallax-1 {
background-attachment: inherit;
}
}
/* Preset Image Controls
This section of css. helps organize images to position and center the image to scale nicely on all screens */
.center-image {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
/* -Preset Photo Grid -
The following .css is responsible for your photo grid .row, .column, .column img and @ media all work together to create your responsive image displays. Change the images on index.html. Remember, the images need to be in your project file folder */
.row {
display: flex;
flex-wrap: wrap;
padding: 0 4px;
justify-content: center;
}
/* Create 3 equal columns that sit next to each other */
.column {
flex: 25%;
max-width: 25%;
padding: 0 4px;
}
.column img {
margin-top: 8px;
vertical-align: middle;
width: 100%;
}
/* Responsive layout - makes grid a one column-layout instead of two or three columns */
@media screen and (max-width: 800px) {
.column {
flex: 50%;
max-width: 50%;
}
}
/* - Preset Text Block Controls-
this css. element centers text elements*/
/* This css. section controls the paragraph chunks*/
@media screen and (min-width: 800px) {
.textblock {
margin: auto;
width: 50%;
padding: 100px;
font-size: 125%;
}
}
@media screen and (max-width: 800px) {
.textblock {
margin: auto;
padding: 20px;
}
}
/* Flex box 2 column controls */
* {
box-sizing: border-box;
}
.flex-container {
display: flex;
flex-direction: row;
font-size: 30px;
color: white;
text-align: left;
}
.flex-item-left {
background-color: black;
padding: 10px;
flex: 50%;
}
.flex-item-right {
background-color: black;
padding: 10px;
flex: 50%;
}
.flex-img {
width: 100px;
height: 100px;
}
/* Responsive layout - makes a one column-layout instead of two-column layout */
@media (max-width: 800px) {
.flex-container {
flex-direction: column;
}
}