Skip to content

Commit 08e83d3

Browse files
committed
Update documentation.
1 parent 3ae4e8a commit 08e83d3

File tree

4 files changed

+176
-99
lines changed

4 files changed

+176
-99
lines changed

src/documentation/examples.scss

Lines changed: 38 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,13 @@
2828
.vueperslides__bullets--outside .vueperslides__bullet {
2929
border-color: $secondary;
3030
box-shadow: none;
31-
}
3231

33-
.vueperslides__bullets--outside .vueperslides__bullet--active {
34-
background-color: $secondary;
32+
&--active {background-color: $secondary;}
3533
}
3634

37-
/* Examples */
38-
/*===================================*/
35+
// ============ EXAMPLES =============
36+
// Simplest ever.
37+
// ===================================
3938
.ex--simplest-ever .vueperslide {
4039
background: linear-gradient(-45deg, #EE7752, #E73C7E, #23A6D5, #23D5AB);
4140
background-size: 400% 400%;
@@ -47,7 +46,7 @@
4746
}
4847
}
4948

50-
//---------------------//
49+
// ===================================
5150
.ex--arrows-and-bullets-1 {
5251
width: 600px;
5352
max-width: 100%;
@@ -76,7 +75,8 @@
7675
}
7776
}
7877

79-
//---------------------//
78+
// Images and fading.
79+
// ===================================
8080
.ex--images-and-fading {
8181
.vueperslide__content-wrapper--outside-top {
8282
transition: 0.3s ease-in-out;
@@ -91,13 +91,14 @@
9191
}
9292
}
9393

94-
//---------------------//
94+
// Complex slide content.
95+
// ===================================
9596
.ex--complex-slide-content {
9697
.vueperslide__content-wrapper {width: 80%;}
9798
}
98-
//---------------------//
9999

100-
//---------------------//
100+
// Events.
101+
// ===================================
101102
.events-box p {margin-bottom: 0;}
102103

103104
.ex--events .vueperslide--active:before {
@@ -114,7 +115,8 @@
114115
box-shadow: 0 0 9px rgba(0, 0, 0, 0.2);
115116
}
116117

117-
//---------------------//
118+
// Center mode.
119+
// ===================================
118120
.ex--center-mode {
119121
width: 600px;
120122
max-width: 100%;
@@ -123,18 +125,21 @@
123125
.vueperslides__arrows--outside {color: $secondary;}
124126
}
125127

126-
//---------------------//
128+
// Updating content.
129+
// ===================================
127130
.ex--updating-content .vueperslide__content-wrapper--outside-top *,
128131
.ex--updating-content .vueperslide__content-wrapper--outside-bottom * {
129132
color: $secondary !important;
130133
}
131134

132-
//---------------------//
135+
// Dragging distance.
136+
// ===================================
133137
.ex--dragging-distance {
134138
.vueperslide__content-wrapper {width: 80%;}
135139
}
136140

137-
//---------------------//
141+
// Slide image inside.
142+
// ===================================
138143
.ex--slide-image-inside {
139144
.vueperslide__image {
140145
transform: scale(1.5) rotate(-10deg);
@@ -147,36 +152,32 @@
147152
}
148153
}
149154

150-
//---------------------//
151-
.ex--show-multiple-slides {
155+
// Show multiple slides.
156+
// ===================================
157+
.ex--show-multiple-slides-and-gap {
152158
width: 80%;
153159
margin: auto;
154160

155-
.vueperslide:before {
156-
content: '';
157-
position: absolute;
158-
top: 2em;
159-
left: 2em;
160-
right: 2em;
161-
bottom: 1em;
162-
background-color: $secondary;
163-
transition: 0.3s ease-in-out;
164-
z-index: -1;
165-
}
161+
.vueperslide {background-color: $secondary;}
162+
163+
&:not(.vueperslides--slide-multiple) {
164+
.vueperslide {
165+
transform: scale(0.85);
166+
transition: 0.3s ease-in-out;
167+
}
166168

167-
&:not(.slide-multiple) .vueperslide--active:before {
168-
transform: scale(1.15);
169-
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
169+
.vueperslide--active {
170+
transform: scale(1);
171+
box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
172+
z-index: 1;
173+
}
170174
}
171175

172176
&.ex2 {width: auto;}
173177
}
174178

175-
@media screen and (max-width: 600px) {
176-
.ex--show-multiple-slides .vueperslide:before {left: 0.5em;right: 0.5em;}
177-
}
178-
179-
//---------------------//
179+
// 3d rotation.
180+
// ===================================
180181
.ex--3d-rotation {
181182
width: 300px;
182183
margin: auto;
@@ -185,7 +186,8 @@
185186
.vueperslides__arrow--next {right: -6.2em;}
186187
}
187188

188-
//---------------------//
189+
// Synced instances.
190+
// ===================================
189191
.ex--synced-instances-2 {
190192
color: #fff;
191193

0 commit comments

Comments
 (0)