forked from HackYourFuture/JavaScript2
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.css
More file actions
127 lines (107 loc) · 1.7 KB
/
index.css
File metadata and controls
127 lines (107 loc) · 1.7 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
* {
padding: 0;
margin: 0;
box-sizing: border-box;
}
body {
background-color: #FFA500;
color: #FFA500;
font-size: 14px;
font-family: 'Dancing Script', cursive;
}
.container {
background-color: white;
width : 80%;
border-radius: 5px;
position: absolute;
top: 50%;
left: 50%;
-ms-transform: translate(-50%, -50%);
transform: translate(-50%, -50%);
padding: 10px;
box-shadow: inset 0 0 5px grey;
}
.quote {
margin: 20px;
}
#quote {
font-size: 2.2rem;
margin: 40px 40px;
position: relative;
text-align: center;
animation: slide 0.5s ease-out;
}
@keyframes slide {
0% {margin-left: -600px;}
100%{margin-left: 40px;}
}
#quote::before{
content: '"';
font-size: 6rem;
position: absolute;
top: -30px;
left: -20px;
}
#author {
float: right;
font-size: 1.5rem;
font-weight: 100;
margin-right: 30px;
}
#author::before{
content: '-';
margin-right: 5px ;
}
.buttons{
margin: 30px;
}
.clearFix {
clear: both;
}
button {
float: right;
background-color: #FFA500;
border: none;
color: white;
border-radius: 2px;
padding: 10px;
margin: 20px;
font-size: 1.1rem;
font-family: Georgia, 'Times New Roman', Times, serif;
}
button:hover{
transform: scale(1.2,1.2);
cursor: pointer;
}
button:focus {
outline: none;
}
a {
display: inline-block;
font-size: 1.5rem;
margin: 5px;
background-color: #FFA500;
padding: 10px;
color: white;
}
a:hover{
transform: scale(1.2,1.2);
}
@media only screen and (max-width: 430px) {
button {
float: none;
display: block;
margin: 0 auto;
margin-bottom: 20px;
}
#author {
float: none;
}
.buttons{
text-align: center;
}
a {
display: inline-block;
font-size: 1rem;
}
}