-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcf_effects.css
More file actions
92 lines (71 loc) · 1.46 KB
/
Copy pathcf_effects.css
File metadata and controls
92 lines (71 loc) · 1.46 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
@charset "utf-8";
/*
New Perspectives on HTML5 and CSS3, 7th Edition
Tutorial 4
Case Problem 3
Design Styles for the Chupacabra Music Fest
Author: David T
Date: 5/28/19
Filename: cf_effects.css
*/
/* HTML Styles */
html {
background: url(cf_back1.png) fixed no-repeat;
background-position: center center;
background-size: cover;
}
/* Body Styles */
body {
background-color: rgba(255,255,255,0.3);
}
/* Body Header Styles */
body > header {
background-color: rgba(51,51,51,0.5);
}
/* Aside Styles */
section aside {
border-width: 10px;
border-style: double;
border-color: rgba(92,42,8,0.3);
border-radius: 30px;
}
section aside h1 {
border-radius: 30px 30px 0px 0px;
}
section#left, section#right {
perspective: 450px;
}
section#left aside {
transform: rotateY(25deg);
}
section#right aside {
transform: rotateY(-25deg);
}
/* Cube Styles */
div#cube {
position: relative;
margin: 180px auto 150px auto;
width: 400px;
height: 400px;
perspective: 450px;
}
div.cube_face {
position: absolute;
width: 400px;
height: 400px;
}
div#cube_front {
transform: translateZ(-50px);
}
div#cube_left {
transform: translateX(-200px) rotateY(90deg);
}
div#cube_right {
transform: translateX(200px) rotateY(-90deg);
}
div#cube_top {
transform: translateY(-200px) rotateX(-90deg);
}
div#cube_bottom {
transform: translateY(200px) rotateX(90deg);
}