-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathabout.css
174 lines (148 loc) · 3.06 KB
/
about.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
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
/* Trying something new here on this page... */
@import url('https://fonts.googleapis.com/css?family=Montserrat:400,500,600,700');
#navabout {
margin: 10px 375px 0px 415px; /* All margins are different */
}
nav ul { /* Navigation Bar */
position: relative;
list-style-type: none;
padding: 5px 0px 5px 0px;
}
nav ul li {
display: inline-block;
padding: 5px 25px 5px 20px;
}
a:link, a:visited {
text-decoration: none;
}
#navabout ul li a:link, #navabout ul li a:visited {
color: #954b4b;
border-bottom: black;
font-weight: bold;
text-shadow: 1px 1px 3px #e2c2c2;
text-transform: uppercase
}
li.selected, li:hover {
background-color: #c8b99c;
}
body {
margin: 0;
padding: 0;
font-family: 'Montserrat', sans-serif; /* Another Web font */
}
header {
margin: 0 auto;
width: 70%;
}
a {
transition: all .5s;
text-decoration: none;
color: #fff;
}
img {
width: 100%;
transition: all .5s;
}
section {
padding: 10px 0;
margin-top: 50px;
text-align: center;
}
.container1 {
max-width: 1400px;
width: 100%;
margin: 0 auto;
}
main {
display: grid; /* New grid display! */
grid-template-columns: 1, 1fr;
margin: 30px 15px 0px 15px;
}
#menuheader {
margin: 1%;
font-size: 50px;
text-align: center;
text-shadow: 0px 0px 3px #FF0000;;
}
#boxheader {
margin: 4%;
font-size: 20px;
color: white;
text-align: center;
text-shadow: 0px 0px 3px #FF0000;;
}
.singleabout { /* All NEW */
position: relative;
overflow: hidden;
max-height: 580px;
margin-left: 300px;
margin-right: 300px;
height: 100%;
box-sizing: border-box; /* Box properties... */
box-shadow: 0 2px 10px #ccc;
transition: all .5s;
}
.singleabout:hover { /* Makes box responsive */
box-shadow: 0 2px 13px #ccc;
transition: all .5s; /* Transition when hovering */
}
.singleabout:hover img { /* Again, more responsive! */
transform: scale(1.1);
transition: all .4s;
}
.aboutContent {
position: absolute;
left: 0;
bottom: -60px;
width: 100%;
color: #fff;
padding: 10px 5px;
background: linear-gradient(red, yellow); /* NEW, linear gradient */
transition: all .5s;
}
.singleabout:hover .aboutContent {
bottom: 0;
transition: all .5s;
}
.aboutContent h3 {
font-size: 20px;
font-weight: 500;
margin: 0;
}
.aboutContent h3 span {
display: block; /* New display style */
font-size: 60%;
margin-top: 5px;
font-weight: 600;
color: white;
}
.aboutContent a {
font-size: 14px;
font-weight: 500;
}
.aboutContent .btn {
display: inline-block; /* Inline block display */
padding: 5px 10px;
border: 1px solid #fff;
border-radius: 3px;
font-weight: 400;
}
.aboutContent .btn:hover {
background: rgba(243, 243, 21,1.0); /* Use of rgba [including 1.0] */
transition: all .5s;
text-decoration: none;
}
.aboutContent a:hover {
text-decoration: underline;
} /* A lot of properties surround .aboutContent */
#box {
padding: 0px;
background: linear-gradient(red,yellow); /* Never taught linear gradient */
border: 1px solid black;
opacity: 0.8;
filter: alpha(opacity=60); /* Filter */
}
#box p {
margin: 4%;
font-weight: bold;
}