-
Notifications
You must be signed in to change notification settings - Fork 2
/
style.css
126 lines (103 loc) · 3.01 KB
/
style.css
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
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap');
html{
/* It prevents padding from adding extra width or extra height to add to the page. and fix horizontol scroll bar */
box-sizing: border-box;
}
body{
margin: 0;
min-height: 100vh;
background-color: #fbfbfb;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='88' height='24' viewBox='0 0 88 24'%3E%3Cg fill-rule='evenodd'%3E%3Cg id='autumn' fill='%23000000' fill-opacity='0.09'%3E%3Cpath d='M10 0l30 15 2 1V2.18A10 10 0 0 0 41.76 0H39.7a8 8 0 0 1 .3 2.18v10.58L14.47 0H10zm31.76 24a10 10 0 0 0-5.29-6.76L4 1 2 0v13.82a10 10 0 0 0 5.53 8.94L10 24h4.47l-6.05-3.02A8 8 0 0 1 4 13.82V3.24l31.58 15.78A8 8 0 0 1 39.7 24h2.06zM78 24l2.47-1.24A10 10 0 0 0 86 13.82V0l-2 1-32.47 16.24A10 10 0 0 0 46.24 24h2.06a8 8 0 0 1 4.12-4.98L84 3.24v10.58a8 8 0 0 1-4.42 7.16L73.53 24H78zm0-24L48 15l-2 1V2.18A10 10 0 0 1 46.24 0h2.06a8 8 0 0 0-.3 2.18v10.58L73.53 0H78z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
color: #000;
font-family: 'Montserrat', sans-serif;
font-weight: 700;
text-align: center;
display: flex;
/* align vertically and horizontally */
align-items: center;
justify-content: center;
}
.quote-container{
width: auto;
/* we want text of the code to be in multiple lines */
max-width: 900px;
padding: 20px 30px;
border-radius: 10px;
background-color: rgba(255,255,255,0.4);
box-shadow: 0 10px 10px 10px rgba(0,0,0,0.2);
}
.quote-text{
font-size: 2.5rem;
}
.long-quote{
font-size: 2rem;
}
.fa-quote-left{
font-size: 4rem;
}
.quote-author{
margin-top: 15px;
font-size: 2rem;
font-weight: 400;
font-style: italic;
}
button{
cursor: pointer;
font-size: 1.2rem;
height: 2.5rem;
border : none;
border-radius: 10px;
color: #fff;
background: #333;
outline: none;
padding: 0.5rem 1.8rem;
box-shadow: 0 0.3rem rgba(182, 148, 148, 0.65);
}
.button-container{
margin-top: 15px;
display: flex;
/* moving both our buttons to left and right */
justify-content: space-between;
}
button:hover{
filter: brightness(110%);
}
button:active{
/* vertically we are moving the button */
transform: translate(0 ,0.3rem);
box-shadow: 0 0.1rem rgba(255,255,255,0.65);
}
.twitter-button:hover{
color: #38a1f3;
}
.fa-twitter{
font-size: 1.5rem;
}
fieldset{
margin-top: 20px;
}
/* loader */
.loader {
border: 16px solid #f3f3f3; /* Light grey */
border-top: 16px solid #333; /* Blue */
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
/* Meadia Query : mobile */
@media screen and (max-width:1000px){
.quote-container{
margin: auto 10px;
}
button{
font-size: 0.7rem;
}
.quote-text{
font-size: 2.5rem;
}
}