-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
110 lines (100 loc) · 2.18 KB
/
styles.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
@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@800&display=swap");
:root {
--light-cyan: hsl(193, 38%, 86%);
--neon-green: hsl(150, 100%, 66%);
--grayish-blue: #313a48;
--dark-grayish-blue: #202733;
--white: white;
--body-font: "Manrope", sans-serif;
}
* {
margin: 0;
padding: 0;
}
body {
box-sizing: border-box;
align-items: center;
background-color: var(--dark-grayish-blue);
font-family: var(--body-font);
}
.main-container {
position: relative;
max-width: 55rem;
width: 90%;
min-width: 10rem;
display: grid;
grid-template-columns: 1fr;
gap: 1.28rem;
margin: 0 auto;
margin-top: 5rem;
margin-bottom: 5rem;
background-color: var(--grayish-blue);
border-radius: 10px;
padding: 3.2rem 1.5rem;
text-align: center;
box-sizing: border-box;
}
.hadith-information {
color: var(--neon-green);
text-transform: uppercase;
letter-spacing: 3px;
font-size: 14px;
font-weight: 800;
}
.hadiths {
font-size: 1.75rem;
color: var(--light-cyan);
font-weight: 800;
padding: 0 1rem;
}
.line {
width: 90%;
height: 2rem;
display: flex;
flex-direction: row;
padding-top: 0.6rem;
align-items: center;
margin: 0 auto;
}
.line::before,
.line::after {
content: " ";
background-color: var(--white);
opacity: 0.2;
width: 70%;
height: 1px;
}
.line-image {
background-image: url("images/pattern-divider-mobile.svg");
background-repeat: no-repeat;
background-position: center;
width: 10rem;
height: 2rem;
}
.dice-img {
position: absolute;
cursor: pointer;
background-color: var(--neon-green);
background-image: url("images/icon-dice.svg");
background-position: 50%;
background-repeat: no-repeat;
transform: translateY(30%) translateX(-50%);
left: 50%;
border-radius: 50%;
width: 4rem;
height: 4rem;
transition: all ease-in-out 0.3s;
}
@media (hover: hover) {
.dice-img:hover {
box-shadow: -1px 1px 88px 12px rgba(82, 255, 168, 1);
-webkit-box-shadow: -1px 1px 88px 12px rgba(82, 255, 168, 1);
-moz-box-shadow: -1px 1px 88px 12px rgba(82, 255, 168, 1);
transition: all ease-in-out 0.3s;
}
}
@media screen and (min-width: 900px) {
.main-container {
margin-top: 13.75rem;
}
}