-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
146 lines (126 loc) · 2.48 KB
/
Copy pathstyles.css
File metadata and controls
146 lines (126 loc) · 2.48 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
@import url('https://fonts.googleapis.com/css?family=Lato');
* {
color: #CCCCCC;
box-sizing: border-box;
margin: 0;
font-family: "Lato", "Helvetica", "Arial", sans-serif;
}
body {
background-image: linear-gradient(to bottom, #090909 0%, #000000 100%);
}
header {
font-size: 1.8em;
text-align: center;
text-transform: uppercase;
}
footer {
text-align: center;
}
main {
display: flex;
flex-direction: row;
flex-flow: row wrap;
justify-content: space-between;
margin: 0 auto;
max-width: 700px;
padding: 1.2em;
}
p {
height: 32px;
width: 320px;
padding-right: 40px;
transition: 1.2s ease;
visibility: hidden;
}
/*
.wideImage img {
content: url("images/pexels-photo-25429.jpg");
}*/
.wideImage,
.boxImage {
margin-bottom: 1em;
overflow: hidden;
}
.boxImage {
justify-content: flex-end;
width: 320px;
}
.wideImage img,
.boxImage img {
border: 1px solid #737373;
/*Fixes scaling, and border issues*/
height: 100%;
width: 100%;
/*Scaling controller*/
max-height: 100%;
max-width: 100%;
transition: 15s ease;
z-index: 0;
}
/*Scale images on hover*/
.wideImage:hover img,
.boxImage:hover img {
transform: scale(1.1);
}
/*Scale text on hover*/
.wideImage:hover .caption,
.boxImage:hover .caption {
background: rgba(34, 34, 34, 0.75);
transform: translate(0, -26px);
}
.wideImage:hover .caption p,
.boxImage:hover .caption p {
visibility: visible;
}
.caption {
font-size: .9em;
text-transform: uppercase;
padding-left: 6px;
position: relative;
bottom: 3em;
transition: 1.2s ease-out;
width: 320px;
z-index: 1;
}
.caption h1 {
color: white;
}
@media screen and (orientation:portrait) {
main {}
.wideImage img {
content: url(images/mountain1.png);
}
main {
flex-direction: column;
flex-flow: row wrap;
width: 740px;
}
.boxImage,
.wideImage {
justify-content: flex-start;
width: 640px;
}
h1 {
font-size: 1.8em;
}
.caption {
bottom: 5em;
width: 642px;
}
.caption h1 {
font-size: 4.3em;
}
.wideImage:hover .caption,
.boxImage:hover .caption {
background: rgba(34, 34, 34, 0.75);
transform: translate(0, -58%);
}
p {
font-size: 2.4em;
height: 82px;
width: 642px;
padding-right: 5px;
transition: 1.2s ease;
visibility: hidden;
}
}