-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
98 lines (84 loc) · 1.47 KB
/
Copy pathstyle.css
File metadata and controls
98 lines (84 loc) · 1.47 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
/*
Theme Name: HDCarousel
Author: Harmonic Design
Author URI: https://harmonicdesign.ca
*/
html {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
*,
*:before,
*:after {
-webkit-box-sizing: inherit;
-moz-box-sizing: inherit;
box-sizing: inherit;
}
* {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
html,
body {
margin: 0;
padding: 0;
font-size: 20px;
line-height: 1.6;
color: #4a4a4a;
font-family: sans-serif;
background: #faefee;
}
img {
max-width: 100%;
height: auto;
}
main {
padding: 4rem 0;
}
section {
width: 800px;
margin: 0 auto;
}
/* Carousel CSS Starts */
.hdcarousel_wrapper {
display: grid;
grid-template-rows: 1fr max-content;
grid-gap: 0.4em;
position: relative;
line-height: 1;
}
.hdcarousel {
position: relative;
overflow-x: clip;
}
.hdcarousel_item {
position: absolute;
padding: 2rem;
border-radius: 12px;
background: rgba(255, 255, 255, 0.1);
top: 0;
transition: all ease-in-out 800ms;
box-shadow: 0px 0px 6px #d5cbca, 0px 0px 6px #ffffff;
}
.hdcarousel_item_active {
background-color: #fff;
top: -1rem;
}
.hdcarousel_nav {
width: max-content;
margin: 0 auto;
}
.hdcarousel_nav_item {
display: inline-block;
padding: 0.4em;
box-shadow: 0px 0px 6px #d5cbca, 0px 0px 6px #ffffff;
background: rgba(255, 255, 255, 0.1);
cursor: pointer;
margin: 0 0.2em;
border-radius: 8px;
transition: all ease-in-out 300ms;
}
.hdcarousel_nav_item:hover {
background-color: #fff;
}