-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathhaunted.css
More file actions
114 lines (108 loc) · 2.19 KB
/
haunted.css
File metadata and controls
114 lines (108 loc) · 2.19 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
body{
margin: 0;
background: url('haunted.jpg') no-repeat center top;
margin-top: 80px;
height:max-content;
width: max-content;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
display: block;
}
/*.bg{
background-image: url('haunted.jpg');
height:100%;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}*/
*{
box-sizing: border-box;
}
.col{
display: flex;
flex-direction: row;
float:left;
width: 25%;
padding-left: 350px;
padding-right: 200px;
padding-bottom: 250px;
}
.row {margin: 0 -5px;}
.row:after {
content: "";
display: table;
clear: both;
}
@media screen and (max-width: 600px){
.column {
height: 100%;
display: flex;
margin-bottom: 20px;
}
}
.flip{
background-color: transparent;
width: 300px;
height: 300px;
perspective: 1000px;
align-items: center;
box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
}
.flip-inner{
position: relative;
width: 300px;
height: 300px;
text-align: center;
transition: transform 0.8s;
transform-style: preserve-3d;
}
.flip:hover .flip-inner{
transform: rotateY(180deg);
}
.flip-front,.flip-back{
position: absolute;
width: 300px;
height: 300px;
-webkit-backface-visibility: hidden;
backface-visibility: hidden;
}
.flip-front{
background-color: transparent;
color: black;
}
.flip-back{
background-image: linear-gradient(75deg,lightgreen,lightpink);
color: darkblue;
transform: rotateY(180deg);
}
.btn{
padding-left: 500px;
padding-right: 300px;
box-sizing: border-box;
align-items: center;
justify-content: center;
}
.btn a,button{
display: inline-block;
color: black;
text-align: center;
padding: 30px;
text-decoration: none;
font-size: 17px;
border-radius: 5px;
background-color: lavender;
font-family:'Courier New', Courier, monospace;
font:bold;
font-style: italic;
font-weight: bolder;
border: none
}
.btn a:hover{
background-color: #ddd;
color: black;
}
.btn button:hover{
background-color: #ddd;
color: black;
}