epfl-elements 4.8.0 → 4.9.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/atoms/switch/switch-inline.twig +5 -0
- package/dist/components/atoms/switch/switch-states.twig +3 -0
- package/dist/components/atoms/switch/switch.twig +4 -0
- package/dist/components/atoms/switch/switch.yml +10 -0
- package/dist/css/elements.css +54 -10
- package/dist/css/elements.min.css +1 -1
- package/dist/css/elements.min.css.map +1 -1
- package/dist/js/reader.js +5449 -5554
- package/dist/js/reader.min.js +1 -1
- package/dist/js/reader.min.js.LICENSE.txt +16 -0
- package/dist/js/reader.min.js.map +1 -1
- package/dist/package.json +6 -6
- package/package.json +6 -6
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
<div class="custom-controls-inline">
|
|
2
|
+
{% include '@atoms/switch/switch.twig' with { id: '22', label: 'Cellular data', state: 'checked' } %}
|
|
3
|
+
{% include '@atoms/switch/switch.twig' with { id: '23', label: 'Airplane mode' } %}
|
|
4
|
+
{% include '@atoms/switch/switch.twig' with { id: '24', label: 'Turn off notifications'} %}
|
|
5
|
+
</div>
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
title: Switch
|
|
2
|
+
name: switch
|
|
3
|
+
variants:
|
|
4
|
+
- name: states
|
|
5
|
+
title: Switch sample
|
|
6
|
+
notes: Switches also support the disabled attribute.
|
|
7
|
+
- name: inline
|
|
8
|
+
title: Inline switch
|
|
9
|
+
notes: |
|
|
10
|
+
A switch has the markup of a custom [checkbox](#/atoms/checkbox) but uses the `.custom-switch` class to render a toggle switch.
|
package/dist/css/elements.css
CHANGED
|
@@ -12289,6 +12289,17 @@ button.tag.tag-plain:focus .remove {
|
|
|
12289
12289
|
margin-right: 1rem;
|
|
12290
12290
|
}
|
|
12291
12291
|
|
|
12292
|
+
.custom-control-input:focus ~ .custom-control-label:before {
|
|
12293
|
+
-webkit-box-shadow: none;
|
|
12294
|
+
box-shadow: none;
|
|
12295
|
+
outline: 2px solid #707070;
|
|
12296
|
+
outline-offset: 1px;
|
|
12297
|
+
}
|
|
12298
|
+
|
|
12299
|
+
.custom-control-input:checked:focus ~ .custom-control-label:before {
|
|
12300
|
+
outline-color: #b51f1f;
|
|
12301
|
+
}
|
|
12302
|
+
|
|
12292
12303
|
.collapse-title {
|
|
12293
12304
|
position: relative;
|
|
12294
12305
|
padding: 0;
|
|
@@ -12745,18 +12756,20 @@ header.collapse-title + .collapse-item:before {
|
|
|
12745
12756
|
.form-control, .selectize-control .selectize-input {
|
|
12746
12757
|
border-color: #8e8e8e;
|
|
12747
12758
|
height: auto;
|
|
12748
|
-
-webkit-transition: color 0.3s, border-color 0.3s,
|
|
12749
|
-
transition: color 0.3s, border-color 0.3s,
|
|
12750
|
-
transition: color 0.3s, border-color 0.3s,
|
|
12751
|
-
transition: color 0.3s, border-color 0.3s,
|
|
12759
|
+
-webkit-transition: color 0.3s, border-color 0.3s, -webkit-box-shadow 0.3s;
|
|
12760
|
+
transition: color 0.3s, border-color 0.3s, -webkit-box-shadow 0.3s;
|
|
12761
|
+
transition: color 0.3s, border-color 0.3s, box-shadow 0.3s;
|
|
12762
|
+
transition: color 0.3s, border-color 0.3s, box-shadow 0.3s, -webkit-box-shadow 0.3s;
|
|
12752
12763
|
}
|
|
12753
12764
|
.form-control:hover, .selectize-control .selectize-input:hover, .form-control.hover, .selectize-control .hover.selectize-input {
|
|
12754
12765
|
border-color: #707070;
|
|
12755
12766
|
}
|
|
12756
|
-
.form-control:focus, .selectize-control .selectize-input:focus, .form-control.focus, .selectize-control .focus.selectize-input {
|
|
12767
|
+
.form-control:focus, .selectize-control .selectize-input:focus, .form-control.focus, .selectize-control .focus.selectize-input, .form-control:focus-visible, .selectize-control .selectize-input:focus-visible {
|
|
12757
12768
|
border-color: #212121 !important;
|
|
12758
|
-
-webkit-box-shadow:
|
|
12759
|
-
box-shadow:
|
|
12769
|
+
-webkit-box-shadow: none !important;
|
|
12770
|
+
box-shadow: none !important;
|
|
12771
|
+
outline: 2px solid #707070;
|
|
12772
|
+
outline-offset: 2px;
|
|
12760
12773
|
}
|
|
12761
12774
|
.form-control.is-invalid, .selectize-control .is-invalid.selectize-input {
|
|
12762
12775
|
border-color: #ff0000 !important;
|
|
@@ -13705,6 +13718,38 @@ a.social-icon:hover, a.social-icon:focus {
|
|
|
13705
13718
|
}
|
|
13706
13719
|
}
|
|
13707
13720
|
|
|
13721
|
+
.custom-switch {
|
|
13722
|
+
padding-left: 2.25rem;
|
|
13723
|
+
}
|
|
13724
|
+
.custom-switch .custom-control-label:after {
|
|
13725
|
+
top: calc(0.25rem + 1px);
|
|
13726
|
+
left: calc(-2.25rem + 2px);
|
|
13727
|
+
}
|
|
13728
|
+
@media (min-width: 576px) {
|
|
13729
|
+
.custom-switch .custom-control-label:after {
|
|
13730
|
+
top: calc(0.25rem + 2px);
|
|
13731
|
+
}
|
|
13732
|
+
}
|
|
13733
|
+
@media (min-width: 992px) {
|
|
13734
|
+
.custom-switch .custom-control-label:after {
|
|
13735
|
+
top: calc(0.25rem + 3px);
|
|
13736
|
+
}
|
|
13737
|
+
}
|
|
13738
|
+
.custom-switch .custom-control-label:before {
|
|
13739
|
+
top: 3px;
|
|
13740
|
+
left: -2.25rem;
|
|
13741
|
+
}
|
|
13742
|
+
@media (min-width: 576px) {
|
|
13743
|
+
.custom-switch .custom-control-label:before {
|
|
13744
|
+
top: 4px;
|
|
13745
|
+
}
|
|
13746
|
+
}
|
|
13747
|
+
@media (min-width: 992px) {
|
|
13748
|
+
.custom-switch .custom-control-label:before {
|
|
13749
|
+
top: 5px;
|
|
13750
|
+
}
|
|
13751
|
+
}
|
|
13752
|
+
|
|
13708
13753
|
.upload {
|
|
13709
13754
|
padding: 1rem 0.85rem;
|
|
13710
13755
|
border: 1px solid #c1c1c1;
|
|
@@ -18480,7 +18525,7 @@ a.nav-arrow:hover .icon-container {
|
|
|
18480
18525
|
border-top: 1px solid #e6e6e6;
|
|
18481
18526
|
}
|
|
18482
18527
|
.footer-light-socials .social-icon-negative .icon {
|
|
18483
|
-
font-size: 1.
|
|
18528
|
+
font-size: 1.375rem;
|
|
18484
18529
|
}
|
|
18485
18530
|
|
|
18486
18531
|
.bg-dark .footer-light-socials,
|
|
@@ -19955,8 +20000,7 @@ a.cc-link {
|
|
|
19955
20000
|
}
|
|
19956
20001
|
.table-like .line .cep .label {
|
|
19957
20002
|
clip: auto;
|
|
19958
|
-
|
|
19959
|
-
clip-path: none;
|
|
20003
|
+
clip-path: none;
|
|
19960
20004
|
position: static;
|
|
19961
20005
|
width: auto;
|
|
19962
20006
|
height: auto;
|