Skip to content

Commit 1f1725a

Browse files
committed
better slider style
1 parent 2371e2e commit 1f1725a

2 files changed

Lines changed: 63 additions & 0 deletions

File tree

assets/scss/main.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,4 @@
44
@import "features.scss";
55
@import "dark.scss";
66
@import "print.scss";
7+
@import "slider.scss";

assets/scss/slider.scss

Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
html body {
2+
.ideal-image-slider {
3+
border-radius: 0.5rem;
4+
}
5+
6+
.iis-slide {
7+
border-radius: 0.5rem;
8+
}
9+
10+
.iis-bullet-nav {
11+
top: 1rem;
12+
right: 1rem;
13+
z-index: 15;
14+
opacity: 1;
15+
width: auto;
16+
height: auto;
17+
bottom: auto;
18+
transition: all 0.1s;
19+
}
20+
21+
.iis-bullet-nav a {
22+
display: inline-block;
23+
width: 1.2rem;
24+
height: 1.2rem;
25+
border: none;
26+
text-indent: 9999px;
27+
margin-left: 0.5rem;
28+
border-radius: 1000px;
29+
cursor: pointer;
30+
transition: all 0.1s;
31+
background: var(--foreground);
32+
}
33+
34+
.iis-bullet-nav a:hover,
35+
.iis-bullet-nav a.iis-bullet-active {
36+
background: var(--background);
37+
}
38+
39+
.iis-bullet-nav a.iis-bullet-active {
40+
transform: scale(1.4);
41+
}
42+
43+
.iis-caption {
44+
left: 0;
45+
bottom: 0;
46+
right: 0;
47+
margin: 0.25rem;
48+
border-radius: 0.35rem;
49+
font: inherit;
50+
background: var(--background);
51+
color: var(--foreground);
52+
padding: 0.25rem 0.75rem;
53+
}
54+
.iis-has-bullet-nav .iis-caption {
55+
max-width: none;
56+
}
57+
.iis-caption .iis-caption-content {
58+
font-size: inherit;
59+
line-height: inherit;
60+
color: inherit;
61+
}
62+
}

0 commit comments

Comments
 (0)