@ulu/frontend 0.1.0-beta.110 → 0.1.0-beta.112
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/CHANGELOG.md +15 -0
- package/dist/ulu-frontend.min.css +1 -1
- package/docs-dev/changelog/index.html +39 -0
- package/docs-dev/demos/progress-bar/index.html +14 -8
- package/docs-dev/javascript/events/index.html +1405 -475
- package/docs-dev/javascript/settings/index.html +380 -4
- package/docs-dev/javascript/ui-breakpoints/index.html +540 -0
- package/docs-dev/javascript/ui-collapsible/index.html +1251 -471
- package/docs-dev/javascript/ui-details-group/index.html +540 -0
- package/docs-dev/javascript/ui-dialog/index.html +1251 -471
- package/docs-dev/javascript/ui-flipcard/index.html +2704 -332
- package/docs-dev/javascript/ui-grid/index.html +2533 -341
- package/docs-dev/javascript/ui-modal-builder/index.html +2492 -330
- package/docs-dev/javascript/ui-overflow-scroller/index.html +2533 -341
- package/docs-dev/javascript/ui-overflow-scroller-pager/index.html +380 -4
- package/docs-dev/javascript/ui-page/index.html +380 -4
- package/docs-dev/javascript/ui-popover/index.html +380 -4
- package/docs-dev/javascript/ui-print/index.html +380 -4
- package/docs-dev/javascript/ui-print-details/index.html +380 -4
- package/docs-dev/javascript/ui-programmatic-modal/index.html +380 -4
- package/docs-dev/javascript/ui-proxy-click/index.html +380 -4
- package/docs-dev/javascript/ui-resizer/index.html +380 -4
- package/docs-dev/javascript/ui-scroll-slider/index.html +380 -4
- package/docs-dev/javascript/ui-scrollpoint/index.html +380 -4
- package/docs-dev/javascript/ui-slider/index.html +380 -4
- package/docs-dev/javascript/ui-tabs/index.html +380 -4
- package/docs-dev/javascript/ui-theme-toggle/index.html +380 -4
- package/docs-dev/javascript/ui-tooltip/index.html +380 -4
- package/docs-dev/javascript/utils-class-logger/index.html +380 -4
- package/docs-dev/javascript/utils-css/index.html +380 -4
- package/docs-dev/javascript/utils-dom/index.html +380 -4
- package/docs-dev/javascript/utils-file-save/index.html +380 -4
- package/docs-dev/javascript/utils-floating-ui/index.html +380 -4
- package/docs-dev/javascript/utils-id/index.html +380 -4
- package/docs-dev/javascript/utils-pause-youtube-video/index.html +380 -4
- package/docs-dev/javascript/utils-system/index.html +380 -4
- package/docs-dev/sass/base/elements/index.html +380 -4
- package/docs-dev/sass/base/normalize/index.html +380 -4
- package/docs-dev/sass/components/accordion/index.html +1 -1
- package/docs-dev/sass/components/card/index.html +2 -2
- package/docs-dev/sass/helpers/color/index.html +380 -4
- package/docs-dev/sass/helpers/display/index.html +380 -4
- package/docs-dev/sass/helpers/index/index.html +380 -4
- package/docs-dev/sass/helpers/typography/index.html +380 -4
- package/docs-dev/sass/helpers/units/index.html +380 -4
- package/docs-dev/sass/helpers/utilities/index.html +380 -4
- package/package.json +1 -1
- package/scss/components/_accordion.scss +13 -1
- package/scss/components/_card.scss +11 -13
- package/scss/components/_progress-bar.scss +13 -7
|
@@ -956,13 +956,106 @@
|
|
|
956
956
|
</li>
|
|
957
957
|
|
|
958
958
|
|
|
959
|
+
<li class="nav-tree__item ">
|
|
960
|
+
<details class="nav-tree__collapsible">
|
|
961
|
+
<summary class="nav-tree__toggle">
|
|
962
|
+
|
|
963
|
+
<span class="nav-tree__toggle-content">
|
|
964
|
+
|
|
965
|
+
|
|
966
|
+
<span class="nav-tree__text">
|
|
967
|
+
Core
|
|
968
|
+
</span>
|
|
969
|
+
|
|
970
|
+
</span>
|
|
971
|
+
<span class="nav-tree__toggle-icon fas fa-chevron-down" aria-hidden="true"></span>
|
|
972
|
+
|
|
973
|
+
</summary>
|
|
974
|
+
|
|
975
|
+
<ul class="nav-tree" data-menu-depth="3">
|
|
976
|
+
|
|
959
977
|
<li class="nav-tree__item ">
|
|
960
978
|
|
|
961
|
-
<a class="nav-tree__link
|
|
979
|
+
<a class="nav-tree__link nav-tree__link--index " href="/frontend/sass/core/">
|
|
962
980
|
|
|
963
981
|
|
|
964
982
|
<span class="nav-tree__text">
|
|
965
|
-
|
|
983
|
+
Introduction
|
|
984
|
+
</span>
|
|
985
|
+
|
|
986
|
+
</a>
|
|
987
|
+
|
|
988
|
+
|
|
989
|
+
</li>
|
|
990
|
+
|
|
991
|
+
|
|
992
|
+
<li class="nav-tree__item ">
|
|
993
|
+
|
|
994
|
+
<a class="nav-tree__link " href="/frontend/sass/core/breakpoint/">
|
|
995
|
+
|
|
996
|
+
|
|
997
|
+
<span class="nav-tree__text">
|
|
998
|
+
Breakpoint
|
|
999
|
+
</span>
|
|
1000
|
+
|
|
1001
|
+
</a>
|
|
1002
|
+
|
|
1003
|
+
|
|
1004
|
+
</li>
|
|
1005
|
+
|
|
1006
|
+
|
|
1007
|
+
<li class="nav-tree__item ">
|
|
1008
|
+
|
|
1009
|
+
<a class="nav-tree__link " href="/frontend/sass/core/button/">
|
|
1010
|
+
|
|
1011
|
+
|
|
1012
|
+
<span class="nav-tree__text">
|
|
1013
|
+
Button
|
|
1014
|
+
</span>
|
|
1015
|
+
|
|
1016
|
+
</a>
|
|
1017
|
+
|
|
1018
|
+
|
|
1019
|
+
</li>
|
|
1020
|
+
|
|
1021
|
+
|
|
1022
|
+
<li class="nav-tree__item ">
|
|
1023
|
+
|
|
1024
|
+
<a class="nav-tree__link " href="/frontend/sass/core/color/">
|
|
1025
|
+
|
|
1026
|
+
|
|
1027
|
+
<span class="nav-tree__text">
|
|
1028
|
+
Color
|
|
1029
|
+
</span>
|
|
1030
|
+
|
|
1031
|
+
</a>
|
|
1032
|
+
|
|
1033
|
+
|
|
1034
|
+
</li>
|
|
1035
|
+
|
|
1036
|
+
|
|
1037
|
+
<li class="nav-tree__item ">
|
|
1038
|
+
|
|
1039
|
+
<a class="nav-tree__link " href="/frontend/sass/core/cssvar/">
|
|
1040
|
+
|
|
1041
|
+
|
|
1042
|
+
<span class="nav-tree__text">
|
|
1043
|
+
Cssvar
|
|
1044
|
+
</span>
|
|
1045
|
+
|
|
1046
|
+
</a>
|
|
1047
|
+
|
|
1048
|
+
|
|
1049
|
+
</li>
|
|
1050
|
+
|
|
1051
|
+
|
|
1052
|
+
<li class="nav-tree__item ">
|
|
1053
|
+
|
|
1054
|
+
<a class="nav-tree__link " href="/frontend/sass/core/element/">
|
|
1055
|
+
|
|
1056
|
+
|
|
1057
|
+
<span class="nav-tree__text">
|
|
1058
|
+
Element
|
|
966
1059
|
</span>
|
|
967
1060
|
|
|
968
1061
|
</a>
|
|
@@ -971,6 +1064,101 @@
|
|
|
971
1064
|
</li>
|
|
972
1065
|
|
|
973
1066
|
|
|
1067
|
+
<li class="nav-tree__item ">
|
|
1068
|
+
|
|
1069
|
+
<a class="nav-tree__link " href="/frontend/sass/core/layout/">
|
|
1070
|
+
|
|
1071
|
+
|
|
1072
|
+
<span class="nav-tree__text">
|
|
1073
|
+
Layout
|
|
1074
|
+
</span>
|
|
1075
|
+
|
|
1076
|
+
</a>
|
|
1077
|
+
|
|
1078
|
+
|
|
1079
|
+
</li>
|
|
1080
|
+
|
|
1081
|
+
|
|
1082
|
+
<li class="nav-tree__item ">
|
|
1083
|
+
|
|
1084
|
+
<a class="nav-tree__link " href="/frontend/sass/core/path/">
|
|
1085
|
+
|
|
1086
|
+
|
|
1087
|
+
<span class="nav-tree__text">
|
|
1088
|
+
Path
|
|
1089
|
+
</span>
|
|
1090
|
+
|
|
1091
|
+
</a>
|
|
1092
|
+
|
|
1093
|
+
|
|
1094
|
+
</li>
|
|
1095
|
+
|
|
1096
|
+
|
|
1097
|
+
<li class="nav-tree__item ">
|
|
1098
|
+
|
|
1099
|
+
<a class="nav-tree__link " href="/frontend/sass/core/selector/">
|
|
1100
|
+
|
|
1101
|
+
|
|
1102
|
+
<span class="nav-tree__text">
|
|
1103
|
+
Selector
|
|
1104
|
+
</span>
|
|
1105
|
+
|
|
1106
|
+
</a>
|
|
1107
|
+
|
|
1108
|
+
|
|
1109
|
+
</li>
|
|
1110
|
+
|
|
1111
|
+
|
|
1112
|
+
<li class="nav-tree__item ">
|
|
1113
|
+
|
|
1114
|
+
<a class="nav-tree__link " href="/frontend/sass/core/typography/">
|
|
1115
|
+
|
|
1116
|
+
|
|
1117
|
+
<span class="nav-tree__text">
|
|
1118
|
+
Typography
|
|
1119
|
+
</span>
|
|
1120
|
+
|
|
1121
|
+
</a>
|
|
1122
|
+
|
|
1123
|
+
|
|
1124
|
+
</li>
|
|
1125
|
+
|
|
1126
|
+
|
|
1127
|
+
<li class="nav-tree__item ">
|
|
1128
|
+
|
|
1129
|
+
<a class="nav-tree__link " href="/frontend/sass/core/units/">
|
|
1130
|
+
|
|
1131
|
+
|
|
1132
|
+
<span class="nav-tree__text">
|
|
1133
|
+
Units
|
|
1134
|
+
</span>
|
|
1135
|
+
|
|
1136
|
+
</a>
|
|
1137
|
+
|
|
1138
|
+
|
|
1139
|
+
</li>
|
|
1140
|
+
|
|
1141
|
+
|
|
1142
|
+
<li class="nav-tree__item ">
|
|
1143
|
+
|
|
1144
|
+
<a class="nav-tree__link " href="/frontend/sass/core/utils/">
|
|
1145
|
+
|
|
1146
|
+
|
|
1147
|
+
<span class="nav-tree__text">
|
|
1148
|
+
Utils
|
|
1149
|
+
</span>
|
|
1150
|
+
|
|
1151
|
+
</a>
|
|
1152
|
+
|
|
1153
|
+
|
|
1154
|
+
</li>
|
|
1155
|
+
|
|
1156
|
+
</ul>
|
|
1157
|
+
|
|
1158
|
+
</details>
|
|
1159
|
+
</li>
|
|
1160
|
+
|
|
1161
|
+
|
|
974
1162
|
<li class="nav-tree__item ">
|
|
975
1163
|
<details class="nav-tree__collapsible">
|
|
976
1164
|
<summary class="nav-tree__toggle">
|
|
@@ -3614,13 +3802,106 @@
|
|
|
3614
3802
|
</li>
|
|
3615
3803
|
|
|
3616
3804
|
|
|
3805
|
+
<li class="nav-tree__item ">
|
|
3806
|
+
<details class="nav-tree__collapsible">
|
|
3807
|
+
<summary class="nav-tree__toggle">
|
|
3808
|
+
|
|
3809
|
+
<span class="nav-tree__toggle-content">
|
|
3810
|
+
|
|
3811
|
+
|
|
3812
|
+
<span class="nav-tree__text">
|
|
3813
|
+
Core
|
|
3814
|
+
</span>
|
|
3815
|
+
|
|
3816
|
+
</span>
|
|
3817
|
+
<span class="nav-tree__toggle-icon fas fa-chevron-down" aria-hidden="true"></span>
|
|
3818
|
+
|
|
3819
|
+
</summary>
|
|
3820
|
+
|
|
3821
|
+
<ul class="nav-tree" data-menu-depth="3">
|
|
3822
|
+
|
|
3617
3823
|
<li class="nav-tree__item ">
|
|
3618
3824
|
|
|
3619
|
-
<a class="nav-tree__link
|
|
3825
|
+
<a class="nav-tree__link nav-tree__link--index " href="/frontend/sass/core/">
|
|
3620
3826
|
|
|
3621
3827
|
|
|
3622
3828
|
<span class="nav-tree__text">
|
|
3623
|
-
|
|
3829
|
+
Introduction
|
|
3830
|
+
</span>
|
|
3831
|
+
|
|
3832
|
+
</a>
|
|
3833
|
+
|
|
3834
|
+
|
|
3835
|
+
</li>
|
|
3836
|
+
|
|
3837
|
+
|
|
3838
|
+
<li class="nav-tree__item ">
|
|
3839
|
+
|
|
3840
|
+
<a class="nav-tree__link " href="/frontend/sass/core/breakpoint/">
|
|
3841
|
+
|
|
3842
|
+
|
|
3843
|
+
<span class="nav-tree__text">
|
|
3844
|
+
Breakpoint
|
|
3845
|
+
</span>
|
|
3846
|
+
|
|
3847
|
+
</a>
|
|
3848
|
+
|
|
3849
|
+
|
|
3850
|
+
</li>
|
|
3851
|
+
|
|
3852
|
+
|
|
3853
|
+
<li class="nav-tree__item ">
|
|
3854
|
+
|
|
3855
|
+
<a class="nav-tree__link " href="/frontend/sass/core/button/">
|
|
3856
|
+
|
|
3857
|
+
|
|
3858
|
+
<span class="nav-tree__text">
|
|
3859
|
+
Button
|
|
3860
|
+
</span>
|
|
3861
|
+
|
|
3862
|
+
</a>
|
|
3863
|
+
|
|
3864
|
+
|
|
3865
|
+
</li>
|
|
3866
|
+
|
|
3867
|
+
|
|
3868
|
+
<li class="nav-tree__item ">
|
|
3869
|
+
|
|
3870
|
+
<a class="nav-tree__link " href="/frontend/sass/core/color/">
|
|
3871
|
+
|
|
3872
|
+
|
|
3873
|
+
<span class="nav-tree__text">
|
|
3874
|
+
Color
|
|
3875
|
+
</span>
|
|
3876
|
+
|
|
3877
|
+
</a>
|
|
3878
|
+
|
|
3879
|
+
|
|
3880
|
+
</li>
|
|
3881
|
+
|
|
3882
|
+
|
|
3883
|
+
<li class="nav-tree__item ">
|
|
3884
|
+
|
|
3885
|
+
<a class="nav-tree__link " href="/frontend/sass/core/cssvar/">
|
|
3886
|
+
|
|
3887
|
+
|
|
3888
|
+
<span class="nav-tree__text">
|
|
3889
|
+
Cssvar
|
|
3890
|
+
</span>
|
|
3891
|
+
|
|
3892
|
+
</a>
|
|
3893
|
+
|
|
3894
|
+
|
|
3895
|
+
</li>
|
|
3896
|
+
|
|
3897
|
+
|
|
3898
|
+
<li class="nav-tree__item ">
|
|
3899
|
+
|
|
3900
|
+
<a class="nav-tree__link " href="/frontend/sass/core/element/">
|
|
3901
|
+
|
|
3902
|
+
|
|
3903
|
+
<span class="nav-tree__text">
|
|
3904
|
+
Element
|
|
3624
3905
|
</span>
|
|
3625
3906
|
|
|
3626
3907
|
</a>
|
|
@@ -3629,6 +3910,101 @@
|
|
|
3629
3910
|
</li>
|
|
3630
3911
|
|
|
3631
3912
|
|
|
3913
|
+
<li class="nav-tree__item ">
|
|
3914
|
+
|
|
3915
|
+
<a class="nav-tree__link " href="/frontend/sass/core/layout/">
|
|
3916
|
+
|
|
3917
|
+
|
|
3918
|
+
<span class="nav-tree__text">
|
|
3919
|
+
Layout
|
|
3920
|
+
</span>
|
|
3921
|
+
|
|
3922
|
+
</a>
|
|
3923
|
+
|
|
3924
|
+
|
|
3925
|
+
</li>
|
|
3926
|
+
|
|
3927
|
+
|
|
3928
|
+
<li class="nav-tree__item ">
|
|
3929
|
+
|
|
3930
|
+
<a class="nav-tree__link " href="/frontend/sass/core/path/">
|
|
3931
|
+
|
|
3932
|
+
|
|
3933
|
+
<span class="nav-tree__text">
|
|
3934
|
+
Path
|
|
3935
|
+
</span>
|
|
3936
|
+
|
|
3937
|
+
</a>
|
|
3938
|
+
|
|
3939
|
+
|
|
3940
|
+
</li>
|
|
3941
|
+
|
|
3942
|
+
|
|
3943
|
+
<li class="nav-tree__item ">
|
|
3944
|
+
|
|
3945
|
+
<a class="nav-tree__link " href="/frontend/sass/core/selector/">
|
|
3946
|
+
|
|
3947
|
+
|
|
3948
|
+
<span class="nav-tree__text">
|
|
3949
|
+
Selector
|
|
3950
|
+
</span>
|
|
3951
|
+
|
|
3952
|
+
</a>
|
|
3953
|
+
|
|
3954
|
+
|
|
3955
|
+
</li>
|
|
3956
|
+
|
|
3957
|
+
|
|
3958
|
+
<li class="nav-tree__item ">
|
|
3959
|
+
|
|
3960
|
+
<a class="nav-tree__link " href="/frontend/sass/core/typography/">
|
|
3961
|
+
|
|
3962
|
+
|
|
3963
|
+
<span class="nav-tree__text">
|
|
3964
|
+
Typography
|
|
3965
|
+
</span>
|
|
3966
|
+
|
|
3967
|
+
</a>
|
|
3968
|
+
|
|
3969
|
+
|
|
3970
|
+
</li>
|
|
3971
|
+
|
|
3972
|
+
|
|
3973
|
+
<li class="nav-tree__item ">
|
|
3974
|
+
|
|
3975
|
+
<a class="nav-tree__link " href="/frontend/sass/core/units/">
|
|
3976
|
+
|
|
3977
|
+
|
|
3978
|
+
<span class="nav-tree__text">
|
|
3979
|
+
Units
|
|
3980
|
+
</span>
|
|
3981
|
+
|
|
3982
|
+
</a>
|
|
3983
|
+
|
|
3984
|
+
|
|
3985
|
+
</li>
|
|
3986
|
+
|
|
3987
|
+
|
|
3988
|
+
<li class="nav-tree__item ">
|
|
3989
|
+
|
|
3990
|
+
<a class="nav-tree__link " href="/frontend/sass/core/utils/">
|
|
3991
|
+
|
|
3992
|
+
|
|
3993
|
+
<span class="nav-tree__text">
|
|
3994
|
+
Utils
|
|
3995
|
+
</span>
|
|
3996
|
+
|
|
3997
|
+
</a>
|
|
3998
|
+
|
|
3999
|
+
|
|
4000
|
+
</li>
|
|
4001
|
+
|
|
4002
|
+
</ul>
|
|
4003
|
+
|
|
4004
|
+
</details>
|
|
4005
|
+
</li>
|
|
4006
|
+
|
|
4007
|
+
|
|
3632
4008
|
<li class="nav-tree__item ">
|
|
3633
4009
|
<details class="nav-tree__collapsible">
|
|
3634
4010
|
<summary class="nav-tree__toggle">
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ulu/frontend",
|
|
3
|
-
"version": "0.1.0-beta.
|
|
3
|
+
"version": "0.1.0-beta.112",
|
|
4
4
|
"description": "A versatile SCSS and JavaScript component library offering configurable, accessible components and flexible integration into any project, with SCSS modules suitable for modern JS frameworks.",
|
|
5
5
|
"browser": "js/index.js",
|
|
6
6
|
"main": "index.js",
|
|
@@ -124,6 +124,7 @@ $config: (
|
|
|
124
124
|
|
|
125
125
|
// When not one of our custom classed details components
|
|
126
126
|
#{ $prefix } {
|
|
127
|
+
position: relative; // For pushing to the top when in accordion groups
|
|
127
128
|
padding: 0;
|
|
128
129
|
margin: get("margin");
|
|
129
130
|
border: $border;
|
|
@@ -161,15 +162,26 @@ $config: (
|
|
|
161
162
|
> #{ $prefix }__summary {
|
|
162
163
|
border-bottom-left-radius: 0;
|
|
163
164
|
border-bottom-right-radius: 0;
|
|
165
|
+
|
|
164
166
|
@if (get("summary-border-enabled")) {
|
|
165
|
-
|
|
167
|
+
&::after {
|
|
168
|
+
content: "";
|
|
169
|
+
position: absolute;
|
|
170
|
+
top: 100%;
|
|
171
|
+
left: 0;
|
|
172
|
+
right: 0;
|
|
173
|
+
height: get("summary-border-width");
|
|
174
|
+
background-color: color.get(get("summary-border-color"));
|
|
175
|
+
}
|
|
166
176
|
}
|
|
167
177
|
}
|
|
168
178
|
}
|
|
169
179
|
}
|
|
170
180
|
#{ $prefix }__summary {
|
|
181
|
+
position: relative; // For pseudo border (done this way for animations)
|
|
171
182
|
display: flex;
|
|
172
183
|
list-style: none; // Remove the default arrow (old safari?)
|
|
184
|
+
width: 100%; // For <button>
|
|
173
185
|
background-color: color.get(get("summary-background-color"));
|
|
174
186
|
color: color.get(get("summary-color"));
|
|
175
187
|
line-height: get("summary-line-height");
|
|
@@ -89,9 +89,10 @@ $config: (
|
|
|
89
89
|
"footer-min-height" : 2.5rem,
|
|
90
90
|
"horizontal-breakpoint" : "small",
|
|
91
91
|
"horizontal-image-width" : min(33%, 20rem),
|
|
92
|
-
"horizontal-body-max-width" : 40rem,
|
|
93
92
|
"horizontal-min-height" : 20rem,
|
|
94
93
|
"horizontal-max-width" : 80rem,
|
|
94
|
+
"horizontal-main-max-width" : 40rem,
|
|
95
|
+
"horizontal-aside-width" : 40%,
|
|
95
96
|
"header-margin" : 0.75em,
|
|
96
97
|
"image-ratio" : 56.25%,
|
|
97
98
|
"image-aspect-ratio": list.slash(5, 3),
|
|
@@ -126,7 +127,6 @@ $config: (
|
|
|
126
127
|
"overlay-background-color": rgba(0, 0, 0, 0.6),
|
|
127
128
|
"overlay-shading": true,
|
|
128
129
|
"overlay-body-padding-y": 1rem,
|
|
129
|
-
// new below
|
|
130
130
|
"aside-rule" : false,
|
|
131
131
|
"aside-rule-width" : 1px,
|
|
132
132
|
"aside-background-color" : transparent,
|
|
@@ -520,19 +520,17 @@ $config: (
|
|
|
520
520
|
}
|
|
521
521
|
#{ $prefix }__body {
|
|
522
522
|
flex-direction: row;
|
|
523
|
-
|
|
523
|
+
justify-content: space-between;
|
|
524
|
+
}
|
|
525
|
+
#{ $prefix }__main {
|
|
526
|
+
flex-grow: 1;
|
|
527
|
+
max-width: get("horizontal-main-max-width");
|
|
528
|
+
}
|
|
529
|
+
#{ $prefix }__aside {
|
|
530
|
+
flex: 0 0 get("horizontal-aside-width");
|
|
531
|
+
height: 100%;
|
|
524
532
|
}
|
|
525
|
-
|
|
526
533
|
@if(get("aside-rule")) {
|
|
527
|
-
#{ $prefix }__main {
|
|
528
|
-
flex: 1 1 60%;
|
|
529
|
-
}
|
|
530
|
-
#{ $prefix }__aside {
|
|
531
|
-
flex: 1 1 40%;
|
|
532
|
-
height: 100%;
|
|
533
|
-
// flex-basis: 40%;
|
|
534
|
-
// min-width: 40%;
|
|
535
|
-
}
|
|
536
534
|
#{ $prefix }__aside::after {
|
|
537
535
|
content: "";
|
|
538
536
|
position: absolute;
|
|
@@ -27,6 +27,7 @@ $-fallbacks: (
|
|
|
27
27
|
|
|
28
28
|
/// Module Settings
|
|
29
29
|
/// @type Map
|
|
30
|
+
/// @prop {Dimension} header-gap [0.25em] Margin/gap for the icon/value
|
|
30
31
|
/// @prop {List} margin [(0 0 0.5em 0)] Margin for the progress bar.
|
|
31
32
|
/// @prop {Boolean} line-height [true] Line height for the progress bar. If true, falls back to typography's `line-height-dense`.
|
|
32
33
|
/// @prop {Color} value-color ["type-tertiary"] Color of the value text.
|
|
@@ -37,7 +38,6 @@ $-fallbacks: (
|
|
|
37
38
|
/// @prop {Dimension} bar-height [12px] Height of the progress bar.
|
|
38
39
|
/// @prop {Color} bar-color [rgb(80, 80, 171)] Color of the progress bar.
|
|
39
40
|
/// @prop {Color} bar-color-deficit ["danger"] Color of the deficit portion of the progress bar.
|
|
40
|
-
/// @prop {Dimension} icon-margin [0.25em] Margin for the icon.
|
|
41
41
|
/// @prop {Color} icon-color ["type-tertiary"] Color of the icon.
|
|
42
42
|
/// @prop {Color} icon-color-deficit ["danger"] Color of the icon in a deficit state.
|
|
43
43
|
/// @prop {Color} track-color [#ccc] Color of the progress bar track.
|
|
@@ -50,6 +50,7 @@ $-fallbacks: (
|
|
|
50
50
|
|
|
51
51
|
$config: (
|
|
52
52
|
"margin" : (0 0 0.5em 0),
|
|
53
|
+
"header-gap" : 0.25em,
|
|
53
54
|
"line-height" : true,
|
|
54
55
|
"value-color" : "type-tertiary",
|
|
55
56
|
"value-margin" : 0.5em,
|
|
@@ -59,7 +60,6 @@ $config: (
|
|
|
59
60
|
"bar-height" : 12px,
|
|
60
61
|
"bar-color" : "indicator",
|
|
61
62
|
"bar-color-deficit" : "danger",
|
|
62
|
-
"icon-margin" : 0.25em,
|
|
63
63
|
"icon-color" : "type-tertiary",
|
|
64
64
|
"icon-color-deficit" : "danger",
|
|
65
65
|
"track-color" : "placeholder-background-alt",
|
|
@@ -137,11 +137,19 @@ $styles: (
|
|
|
137
137
|
display: flex;
|
|
138
138
|
align-items: flex-end;
|
|
139
139
|
}
|
|
140
|
+
#{ $prefix }__value {
|
|
141
|
+
font-weight: get("value-font-weight");
|
|
142
|
+
color: color.get(get("value-color"));
|
|
143
|
+
}
|
|
140
144
|
#{ $prefix }__icon {
|
|
141
|
-
margin-left: auto;
|
|
142
|
-
padding-left: get("icon-margin");
|
|
143
145
|
color: color.get(get("icon-color"));
|
|
144
146
|
}
|
|
147
|
+
#{ $prefix }__icon,
|
|
148
|
+
#{ $prefix }__header #{ $prefix }__value {
|
|
149
|
+
margin-left: auto;
|
|
150
|
+
padding-left: get("header-gap");
|
|
151
|
+
}
|
|
152
|
+
|
|
145
153
|
#{ $prefix }__track {
|
|
146
154
|
position: relative; // For indeterminate animation
|
|
147
155
|
margin: get("track-margin");
|
|
@@ -178,10 +186,8 @@ $styles: (
|
|
|
178
186
|
}
|
|
179
187
|
#{ $prefix }__values {
|
|
180
188
|
display: flex;
|
|
181
|
-
font-weight: get("value-font-weight");
|
|
182
|
-
color: color.get(get("value-color"));
|
|
183
189
|
}
|
|
184
|
-
#{ $prefix }__value {
|
|
190
|
+
#{ $prefix }__values #{ $prefix }__value:not(:last-child) {
|
|
185
191
|
margin-right: get("value-margin");
|
|
186
192
|
}
|
|
187
193
|
#{ $prefix }__value--deficit {
|