Skip to content
This repository was archived by the owner on Feb 24, 2023. It is now read-only.

Commit fde7ebf

Browse files
author
Łukasz Florczak
committed
Some default demo styles
1 parent a62e0af commit fde7ebf

File tree

1 file changed

+122
-0
lines changed

1 file changed

+122
-0
lines changed

demo/scss/main.scss

Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,128 @@ h1, h2, h3 {
3636
font-weight: 300;
3737
}
3838

39+
.agile {
40+
position: relative;
41+
42+
&, * {
43+
&:focus,
44+
&:active {
45+
outline: none;
46+
}
47+
}
48+
49+
&__list {
50+
display: block;
51+
margin: 0;
52+
overflow: hidden;
53+
padding: 0;
54+
position: relative;
55+
width: 100%;
56+
}
57+
58+
&__track {
59+
align-items: center;
60+
display: flex;
61+
justify-content: flex-start;
62+
63+
.agile--disabled & {
64+
display: block;
65+
max-width: 100%;
66+
}
67+
}
68+
69+
&__slide {
70+
display: block;
71+
72+
.agile--fade & {
73+
opacity: 0;
74+
position: relative;
75+
z-index: 0;
76+
77+
&--active {
78+
opacity: 1;
79+
z-index: 2;
80+
}
81+
82+
&--expiring {
83+
opacity: 1;
84+
transition-duration: 0s;
85+
z-index: 1;
86+
}
87+
}
88+
}
89+
90+
&__arrow {
91+
border: none;
92+
bottom: -11px;
93+
margin: 0;
94+
padding: 0;
95+
position: absolute;
96+
transition-duration: .3s;
97+
98+
&[disabled] {
99+
cursor: default;
100+
opacity: .4;
101+
}
102+
103+
&:hover {
104+
svg {
105+
fill: #333;
106+
}
107+
}
108+
109+
&--prev {
110+
left: 0;
111+
}
112+
113+
&--next {
114+
right: 0;
115+
}
116+
117+
svg {
118+
fill: #888;
119+
height: 24px;
120+
transition-duration: .3s;
121+
}
122+
}
123+
124+
&__dots {
125+
align-items: center;
126+
display: flex;
127+
justify-content: center;
128+
list-style: none;
129+
margin: 20px 0;
130+
padding: 0;
131+
text-align: center;
132+
white-space: nowrap;
133+
}
134+
135+
&__dot {
136+
margin: 0 10px;
137+
138+
button {
139+
background-color: #eee;
140+
border: none;
141+
border-radius: 50%;
142+
cursor: pointer;
143+
display: block;
144+
height: 10px;
145+
font-size: 0;
146+
line-height: 0;
147+
margin: 0;
148+
transition-duration: .3s;
149+
width: 10px;
150+
}
151+
152+
&--current,
153+
&:hover {
154+
button {
155+
background-color: #888;
156+
}
157+
}
158+
}
159+
}
160+
39161
.hidden-md {
40162
@include md {
41163
display: none;

0 commit comments

Comments
 (0)