-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathdemo4a.css
74 lines (62 loc) · 1.66 KB
/
demo4a.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
/* This is how you write a comment in CSS! */
/* Make the navbar links sliiide to their targets, instead of jumping. */
html {
scroll-behavior: smooth;
}
/* Color the background and add some space to the sides of the main column. */
.container-fluid {
background-color: #F8B003;
/* We use !important to override the padding setting that Bootstrap already put for the container-fluid class. */
padding-left: 10% !important;
padding-right: 10% !important;
}
/* Color the main column background white. */
.col {
background-color: white;
}
/* Put a nice frame with smoothened corners and a soft shadow around all images on the page. */
img {
border: 4px solid white;
border-radius: 4px;
box-shadow: 0px 4px 8px rgba(17,17,17,0.2);
}
/* Color the second (photography) section's background light gray for contrast. */
#photography {
background-color: whitesmoke;
}
/* Space out the photos in our gallery a little. */
.thumbnail {
margin: 4%;
}
.col.main {
background-color: white;
box-shadow: 0 0 50px rgba(17,17,17,0.5);
}
.row.section {
padding: 5%;
}
.navbar {
box-shadow: 0px 4px 8px rgba(17,17,17,0.2);
}
/* Bold the navbar's brand and put spacing on its left so it shifts right. */
.navbar-brand {
font-weight: bold;
padding-left: 12%;
}
#home {
padding: 20%;
background-image: url("media/pavement.jpg");
background-size: cover;
background-repeat: no-repeat;
background-position: center;
position: relative;
}
.bigtext {
text-align: center;
position: relative;
top: 50%;
left: 50%;
transform: translate(-50%, 0);
color: white;
text-shadow: 0 2px 8px rgba(17,17,17,0.6);
}