urfu-ui-kit-vanilla 1.1.23 → 1.2.0

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/src/main.css +411 -19
package/package.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "description": "UrFU UI-Kit for Vanilla Web",
4
4
  "license": "UNLICENSED",
5
5
  "private": false,
6
- "version": "1.1.23",
6
+ "version": "1.2.0",
7
7
  "type": "module",
8
8
  "scripts": {
9
9
  "start": "vite",
package/src/main.css CHANGED
@@ -5,21 +5,21 @@
5
5
  font-style: normal;
6
6
  font-weight: 400;
7
7
  font-display: swap;
8
- src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-.ttf) format('truetype');
8
+ src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCtr6Ew-.ttf) format('truetype');
9
9
  }
10
10
  @font-face {
11
11
  font-family: 'Montserrat';
12
12
  font-style: normal;
13
13
  font-weight: 600;
14
14
  font-display: swap;
15
- src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf) format('truetype');
15
+ src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCu170w-.ttf) format('truetype');
16
16
  }
17
17
  @font-face {
18
18
  font-family: 'Montserrat';
19
19
  font-style: normal;
20
20
  font-weight: 700;
21
21
  font-display: swap;
22
- src: url(https://fonts.gstatic.com/s/montserrat/v26/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf) format('truetype');
22
+ src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUHjIg1_i6t8kCHKm4532VJOt5-QNFgpCuM70w-.ttf) format('truetype');
23
23
  }
24
24
  * {
25
25
  box-sizing: border-box;
@@ -1730,18 +1730,58 @@ button {
1730
1730
  .u-switch input {
1731
1731
  display: none;
1732
1732
  }
1733
- .u-switch input:checked + div::after {
1734
- left: 60%;
1733
+ .u-switch input:checked + .u-switch__point::after {
1734
+ left: calc(100% - 23.2px);
1735
1735
  }
1736
- .u-switch input:disabled + div {
1736
+ .u-switch input:disabled + .u-switch__point {
1737
1737
  cursor: not-allowed;
1738
- background-color: #D3D3D3;
1738
+ border-color: #D3D3D3;
1739
+ background-color: #F9F9F9;
1740
+ }
1741
+ .u-switch input:disabled + .u-switch__point::after {
1742
+ background-color: #A7A7A7;
1743
+ }
1744
+ .u-switch input:disabled:hover + .u-switch__point {
1745
+ cursor: not-allowed;
1746
+ border-color: #D3D3D3;
1747
+ background-color: #F9F9F9;
1748
+ }
1749
+ .u-switch input:disabled:hover + .u-switch__point::after {
1750
+ background-color: #A7A7A7;
1751
+ }
1752
+ .u-switch input:hover + .u-switch__point {
1753
+ border-color: #2452B3;
1754
+ }
1755
+ .u-switch input:hover + .u-switch__point::after {
1756
+ background-color: #2452B3;
1739
1757
  }
1740
1758
  .u-switch input:checked + .u-switch__point {
1741
1759
  background-color: #1E4391;
1760
+ border-color: #1E4391;
1742
1761
  }
1743
- .u-switch input:checked + .u-switch__point:hover {
1744
- background-color: #0F2B5E;
1762
+ .u-switch input:checked + .u-switch__point::after {
1763
+ background-color: #FFFFFF;
1764
+ }
1765
+ .u-switch input:checked:disabled + .u-switch__point {
1766
+ background-color: #D3D3D3;
1767
+ border-color: #D3D3D3;
1768
+ }
1769
+ .u-switch input:checked:disabled + .u-switch__point::after {
1770
+ background-color: #FFFFFF;
1771
+ }
1772
+ .u-switch input:checked:disabled:hover + .u-switch__point {
1773
+ background-color: #D3D3D3;
1774
+ border-color: #D3D3D3;
1775
+ }
1776
+ .u-switch input:checked:disabled:hover + .u-switch__point::after {
1777
+ background-color: #FFFFFF;
1778
+ }
1779
+ .u-switch input:checked:hover + .u-switch__point {
1780
+ background-color: #2452B3;
1781
+ border-color: #2452B3;
1782
+ }
1783
+ .u-switch input:checked:hover + .u-switch__point::after {
1784
+ background-color: #FFFFFF;
1745
1785
  }
1746
1786
  .u-switch__point {
1747
1787
  cursor: pointer;
@@ -1750,19 +1790,20 @@ button {
1750
1790
  position: relative;
1751
1791
  border-radius: 16px;
1752
1792
  transition: all 0.2s ease-in-out;
1753
- background-color: #D3D3D3;
1793
+ background-color: #FFFFFF;
1794
+ border: 1.4px solid #1E4391;
1754
1795
  }
1755
1796
  .u-switch__point::after {
1756
1797
  content: "";
1757
1798
  display: block;
1758
1799
  position: absolute;
1759
- left: 4px;
1760
- top: 4px;
1761
1800
  width: 18px;
1762
1801
  height: 18px;
1763
1802
  border-radius: 50%;
1764
- background-color: #FFFFFF;
1765
1803
  transition: all 0.2s ease-in-out;
1804
+ background-color: #1E4391;
1805
+ margin: 2.6px;
1806
+ left: 0px;
1766
1807
  }
1767
1808
  .u-switch-gradient {
1768
1809
  cursor: pointer;
@@ -1773,10 +1814,10 @@ button {
1773
1814
  .u-switch-gradient input {
1774
1815
  display: none;
1775
1816
  }
1776
- .u-switch-gradient input:checked + div::after {
1777
- left: 60%;
1817
+ .u-switch-gradient input:checked + .u-switch-gradient__point::after {
1818
+ left: calc(100% - 26px);
1778
1819
  }
1779
- .u-switch-gradient input:disabled + div {
1820
+ .u-switch-gradient input:disabled + .u-switch-gradient__point {
1780
1821
  cursor: not-allowed;
1781
1822
  background-image: linear-gradient(0, #D3D3D3 100%, #D3D3D3 100%, #D3D3D3 100%);
1782
1823
  }
@@ -1785,6 +1826,10 @@ button {
1785
1826
  animation-name: from;
1786
1827
  animation-duration: 0.2s;
1787
1828
  }
1829
+ .u-switch-gradient input:checked:disabled + .u-switch-gradient__point {
1830
+ cursor: not-allowed;
1831
+ background-image: linear-gradient(0, #D3D3D3 100%, #D3D3D3 100%, #D3D3D3 100%);
1832
+ }
1788
1833
  .u-switch-gradient__point {
1789
1834
  cursor: pointer;
1790
1835
  width: 54px;
@@ -1800,13 +1845,38 @@ button {
1800
1845
  content: "";
1801
1846
  display: block;
1802
1847
  position: absolute;
1803
- left: 4px;
1804
- top: 4px;
1805
1848
  width: 18px;
1806
1849
  height: 18px;
1807
1850
  border-radius: 50%;
1808
- background-color: #FFFFFF;
1809
1851
  transition: all 0.2s ease-in-out;
1852
+ margin: 4px;
1853
+ left: 0px;
1854
+ background-color: #FFFFFF;
1855
+ }
1856
+ .u-switch-small .u-switch__point,
1857
+ .u-switch-small .u-switch-gradient__point {
1858
+ width: 42px;
1859
+ height: 20px;
1860
+ }
1861
+ .u-switch-small .u-switch__point::after,
1862
+ .u-switch-small .u-switch-gradient__point::after {
1863
+ width: 14px;
1864
+ height: 14px;
1865
+ }
1866
+ .u-switch-small .u-switch__point {
1867
+ border: 1px solid #1E4391;
1868
+ }
1869
+ .u-switch-small .u-switch__point::after {
1870
+ margin: 2px;
1871
+ }
1872
+ .u-switch-small .u-switch-gradient__point::after {
1873
+ margin: 3px;
1874
+ }
1875
+ .u-switch-small input:checked + .u-switch__point::after {
1876
+ left: calc(100% - 18px);
1877
+ }
1878
+ .u-switch-small input:checked + .u-switch-gradient__point::after {
1879
+ left: calc(100% - 20px);
1810
1880
  }
1811
1881
  @keyframes to {
1812
1882
  0% {
@@ -3832,6 +3902,328 @@ button {
3832
3902
  .u-fw-600 {
3833
3903
  font-weight: 600;
3834
3904
  }
3905
+ .up4 {
3906
+ padding: 4px;
3907
+ }
3908
+ .up8 {
3909
+ padding: 8px;
3910
+ }
3911
+ .up12 {
3912
+ padding: 12px;
3913
+ }
3914
+ .up16 {
3915
+ padding: 16px;
3916
+ }
3917
+ .up24 {
3918
+ padding: 24px;
3919
+ }
3920
+ .up32 {
3921
+ padding: 32px;
3922
+ }
3923
+ .up64 {
3924
+ padding: 64px;
3925
+ }
3926
+ .upl4 {
3927
+ padding-left: 4px;
3928
+ }
3929
+ .upl8 {
3930
+ padding-left: 8px;
3931
+ }
3932
+ .upl12 {
3933
+ padding-left: 12px;
3934
+ }
3935
+ .upl16 {
3936
+ padding-left: 16px;
3937
+ }
3938
+ .upl24 {
3939
+ padding-left: 24px;
3940
+ }
3941
+ .upl32 {
3942
+ padding-left: 32px;
3943
+ }
3944
+ .upl64 {
3945
+ padding-left: 64px;
3946
+ }
3947
+ .upr4 {
3948
+ padding-right: 4px;
3949
+ }
3950
+ .upr8 {
3951
+ padding-right: 8px;
3952
+ }
3953
+ .upr12 {
3954
+ padding-right: 12px;
3955
+ }
3956
+ .upr16 {
3957
+ padding-right: 16px;
3958
+ }
3959
+ .upr24 {
3960
+ padding-right: 24px;
3961
+ }
3962
+ .upr32 {
3963
+ padding-right: 32px;
3964
+ }
3965
+ .upr64 {
3966
+ padding-right: 64px;
3967
+ }
3968
+ .upb4 {
3969
+ padding-bottom: 4px;
3970
+ }
3971
+ .upb8 {
3972
+ padding-bottom: 8px;
3973
+ }
3974
+ .upb12 {
3975
+ padding-bottom: 12px;
3976
+ }
3977
+ .upb16 {
3978
+ padding-bottom: 16px;
3979
+ }
3980
+ .upb24 {
3981
+ padding-bottom: 24px;
3982
+ }
3983
+ .upb32 {
3984
+ padding-bottom: 32px;
3985
+ }
3986
+ .upb64 {
3987
+ padding-bottom: 64px;
3988
+ }
3989
+ .upt4 {
3990
+ padding-top: 4px;
3991
+ }
3992
+ .upt8 {
3993
+ padding-top: 8px;
3994
+ }
3995
+ .upt12 {
3996
+ padding-top: 12px;
3997
+ }
3998
+ .upt16 {
3999
+ padding-top: 16px;
4000
+ }
4001
+ .upt24 {
4002
+ padding-top: 24px;
4003
+ }
4004
+ .upt32 {
4005
+ padding-top: 32px;
4006
+ }
4007
+ .upt64 {
4008
+ padding-top: 64px;
4009
+ }
4010
+ .upx4 {
4011
+ padding-left: 4px;
4012
+ padding-right: 4px;
4013
+ }
4014
+ .upx8 {
4015
+ padding-left: 8px;
4016
+ padding-right: 8px;
4017
+ }
4018
+ .upx12 {
4019
+ padding-left: 12px;
4020
+ padding-right: 12px;
4021
+ }
4022
+ .upx16 {
4023
+ padding-left: 16px;
4024
+ padding-right: 16px;
4025
+ }
4026
+ .upx24 {
4027
+ padding-left: 24px;
4028
+ padding-right: 24px;
4029
+ }
4030
+ .upx32 {
4031
+ padding-left: 32px;
4032
+ padding-right: 32px;
4033
+ }
4034
+ .upx64 {
4035
+ padding-left: 64px;
4036
+ padding-right: 64px;
4037
+ }
4038
+ .upy4 {
4039
+ padding-top: 4px;
4040
+ padding-bottom: 4px;
4041
+ }
4042
+ .upy8 {
4043
+ padding-top: 8px;
4044
+ padding-bottom: 8px;
4045
+ }
4046
+ .upy12 {
4047
+ padding-top: 12px;
4048
+ padding-bottom: 12px;
4049
+ }
4050
+ .upy16 {
4051
+ padding-top: 16px;
4052
+ padding-bottom: 16px;
4053
+ }
4054
+ .upy24 {
4055
+ padding-top: 24px;
4056
+ padding-bottom: 24px;
4057
+ }
4058
+ .upy32 {
4059
+ padding-top: 32px;
4060
+ padding-bottom: 32px;
4061
+ }
4062
+ .upy64 {
4063
+ padding-top: 64px;
4064
+ padding-bottom: 64px;
4065
+ }
4066
+ .um4 {
4067
+ margin: 4px;
4068
+ }
4069
+ .um8 {
4070
+ margin: 8px;
4071
+ }
4072
+ .um12 {
4073
+ margin: 12px;
4074
+ }
4075
+ .um16 {
4076
+ margin: 16px;
4077
+ }
4078
+ .um24 {
4079
+ margin: 24px;
4080
+ }
4081
+ .um32 {
4082
+ margin: 32px;
4083
+ }
4084
+ .um64 {
4085
+ margin: 64px;
4086
+ }
4087
+ .uml4 {
4088
+ margin-left: 4px;
4089
+ }
4090
+ .uml8 {
4091
+ margin-left: 8px;
4092
+ }
4093
+ .uml12 {
4094
+ margin-left: 12px;
4095
+ }
4096
+ .uml16 {
4097
+ margin-left: 16px;
4098
+ }
4099
+ .uml24 {
4100
+ margin-left: 24px;
4101
+ }
4102
+ .uml32 {
4103
+ margin-left: 32px;
4104
+ }
4105
+ .uml64 {
4106
+ margin-left: 64px;
4107
+ }
4108
+ .umr4 {
4109
+ margin-right: 4px;
4110
+ }
4111
+ .umr8 {
4112
+ margin-right: 8px;
4113
+ }
4114
+ .umr12 {
4115
+ margin-right: 12px;
4116
+ }
4117
+ .umr16 {
4118
+ margin-right: 16px;
4119
+ }
4120
+ .umr24 {
4121
+ margin-right: 24px;
4122
+ }
4123
+ .umr32 {
4124
+ margin-right: 32px;
4125
+ }
4126
+ .umr64 {
4127
+ margin-right: 64px;
4128
+ }
4129
+ .umb4 {
4130
+ margin-bottom: 4px;
4131
+ }
4132
+ .umb8 {
4133
+ margin-bottom: 8px;
4134
+ }
4135
+ .umb12 {
4136
+ margin-bottom: 12px;
4137
+ }
4138
+ .umb16 {
4139
+ margin-bottom: 16px;
4140
+ }
4141
+ .umb24 {
4142
+ margin-bottom: 24px;
4143
+ }
4144
+ .umb32 {
4145
+ margin-bottom: 32px;
4146
+ }
4147
+ .umb64 {
4148
+ margin-bottom: 64px;
4149
+ }
4150
+ .umt4 {
4151
+ margin-top: 4px;
4152
+ }
4153
+ .umt8 {
4154
+ margin-top: 8px;
4155
+ }
4156
+ .umt12 {
4157
+ margin-top: 12px;
4158
+ }
4159
+ .umt16 {
4160
+ margin-top: 16px;
4161
+ }
4162
+ .umt24 {
4163
+ margin-top: 24px;
4164
+ }
4165
+ .umt32 {
4166
+ margin-top: 32px;
4167
+ }
4168
+ .umt64 {
4169
+ margin-top: 64px;
4170
+ }
4171
+ .umx4 {
4172
+ margin-left: 4px;
4173
+ margin-right: 4px;
4174
+ }
4175
+ .umx8 {
4176
+ margin-left: 8px;
4177
+ margin-right: 8px;
4178
+ }
4179
+ .umx12 {
4180
+ margin-left: 12px;
4181
+ margin-right: 12px;
4182
+ }
4183
+ .umx16 {
4184
+ margin-left: 16px;
4185
+ margin-right: 16px;
4186
+ }
4187
+ .umx24 {
4188
+ margin-left: 24px;
4189
+ margin-right: 24px;
4190
+ }
4191
+ .umx32 {
4192
+ margin-left: 32px;
4193
+ margin-right: 32px;
4194
+ }
4195
+ .umx64 {
4196
+ margin-left: 64px;
4197
+ margin-right: 64px;
4198
+ }
4199
+ .umy4 {
4200
+ margin-top: 4px;
4201
+ margin-bottom: 4px;
4202
+ }
4203
+ .umy8 {
4204
+ margin-top: 8px;
4205
+ margin-bottom: 8px;
4206
+ }
4207
+ .umy12 {
4208
+ margin-top: 12px;
4209
+ margin-bottom: 12px;
4210
+ }
4211
+ .umy16 {
4212
+ margin-top: 16px;
4213
+ margin-bottom: 16px;
4214
+ }
4215
+ .umy24 {
4216
+ margin-top: 24px;
4217
+ margin-bottom: 24px;
4218
+ }
4219
+ .umy32 {
4220
+ margin-top: 32px;
4221
+ margin-bottom: 32px;
4222
+ }
4223
+ .umy64 {
4224
+ margin-top: 64px;
4225
+ margin-bottom: 64px;
4226
+ }
3835
4227
  h1,
3836
4228
  .h1 {
3837
4229
  font-weight: 600;