forked from fahimahammed/learn-postgresql
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcustom.css
More file actions
54 lines (49 loc) · 981 Bytes
/
custom.css
File metadata and controls
54 lines (49 loc) · 981 Bytes
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
/* Example styling for branding */
body::before {
content: "Learn PostgreSQL";
display: block;
text-align: center;
font-size: 1.2rem;
font-weight: bold;
padding: 10px;
background-color: #3f51b5;
color: white;
}
a[href$=".pdf"] {
color: #ff5722;
font-weight: bold;
}
/* Back-to-Top Button */
.back-to-top {
position: fixed;
right: 20px;
bottom: 24px;
width: 50px;
height: 50px;
border-radius: 20%;
border: none;
background: #3f51b5;
color: #fff;
font-size: 22px;
cursor: pointer;
opacity: 0;
transform: translateY(10px);
transition: opacity 0.3s ease, transform 0.3s ease, background 0.3s ease;
z-index: 9999;
display: none; /* hidden by default */
align-items: center;
justify-content: center;
}
.back-to-top:hover,
.back-to-top:focus {
background: #303f9f;
outline: none;
}
.back-to-top:active {
transform: translateY(1px);
}
@media (prefers-reduced-motion: reduce) {
.back-to-top {
transition: none;
}
}