-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.css
More file actions
132 lines (121 loc) · 2.37 KB
/
Copy pathmain.css
File metadata and controls
132 lines (121 loc) · 2.37 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
body {
background-color: #E6E6FA;
background-image: url(paisley_3.jpg);
background-repeat: repeat;
font-size: 1em;
font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
padding: 10px;
}
nav {
font-size: 3em;
font-weight: bold;
font-family: hobo-std, sans-serif;
}
nav a {
text-decoration: none;
}
nav a:hover {
color: #800080;
}
h2 {
font-size: 1.5em;
}
p {
font-size: 1em;
}
a {
color: red;
}
a:hover {
color: #800080;
}
img {
max-width: 100%; // for responsive images
height: auto;
border: 2px solid red;
margin: 4px 2px;
padding: 2px;
}
main p img {
border: 2px solid red;
margin: 2px;
padding: 2px;
}
.logo {
border-style: none;
}
footer {
background-image: url(paisley_2.png);
background-repeat: repeat;
border: 1px solid #800080;
padding: 0 14px;
font-size: .8em;
font-family: Verdana, Geneva, sans-serif;
}
.floated {
float: left;
margin-right: 20px;
}
.position {
float: right;
margin-left: 20px;
}
.clear {
clear: both;
}
.margin {
margin-bottom: 6px;
}
ul.music {
list-style-type: none;
}
// This code borrowed from
// https://www.ostraining.com/blog/coding/transition-and-transform-css3/
// for the purpose of creating a hover effect with CSS3 transition and transform properties
// to the first image on the fashion page
.block {
display: block;
height: 507px; // 425px;
margin: 0 auto;
overflow: hidden;
position: relative;
width: 697px; // 640px;
}
.block img {
transition: all 1s ease-in-out 0s;
-moz-transition: all 1s ease-in-out 0s;
-webkit-transition: all 1s ease-in-out 0s;
-o-transition: all 1s ease-in-out 0s;
}
.block .block-caption {
background: rgba(0,0,0,0.6);
bottom: 0;
color: #fff;
display: table;
left: 0;
opacity: 0;
padding: 10px 0;
position: absolute;
transition: all 0.2s ease-in-out 0s;
-moz-transition: all 0.2s ease-in-out 0s;
-webkit-transition: all 0.2s ease-in-out 0s;
-o-transition: all 0.2s ease-in-out 0s;
width: 697px; // 640px;
}
.block:hover .block-caption {
opacity: 1;
}
.block:hover img {
transform: scale(1.5) rotateZ(-5deg);
-moz-transform: scale(1.5) rotateZ(-5deg);
-webkit-transform: scale(1.5) rotateZ(-5deg);
-o-transform: scale(1.5) rotateZ(-5deg);
}
// end transform styles
/*
@media only screen and (max-width: 20em) {
nav {
font-size: 2em;
}
}
*/