PluginProbe ʕ •ᴥ•ʔ
پارسی دیت – Parsi Date / 6.2
پارسی دیت – Parsi Date v6.2
6.2.1 6.2 6.1 5.1.6 5.1.7 5.1.8 5.1.8.2 6.0 trunk 1.0 1.1 1.2 1.3 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 2.0.0-alpha 2.1 2.1.1 2.1.2 2.1.3 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.3.0.1 2.3.0.2 2.3.1 2.3.2 2.3.3 2.3.4 3.0.1 3.0.2 3.0.3 4.0.0 4.0.1 4.0.2 5.1.0 5.1.1 5.1.2 5.1.3 5.1.4 5.1.5
wp-parsidate / assets / scss / components / _checkbox.scss
wp-parsidate / assets / scss / components Last commit date
_addons.scss 1 month ago _badges.scss 1 month ago _button.scss 1 month ago _checkbox.scss 1 month ago _color_palette.scss 1 month ago _data_table_ui.scss 1 month ago _faqs.scss 1 month ago _fly_icons.scss 1 month ago _form.scss 1 month ago _global.scss 1 month ago _gradient_color_picker.scss 1 month ago _input.scss 1 month ago _list_links.scss 1 month ago _loading.scss 1 month ago _modal.scss 1 month ago _notice.scss 1 month ago _radio.scss 1 month ago _range.scss 1 month ago _repeatable.scss 1 month ago _select.scss 1 month ago _textarea.scss 1 month ago _toggle.scss 1 month ago _wp.scss 1 month ago
_checkbox.scss
82 lines
1 @use 'sass:color';
2 @use "../utilities/variables";
3
4 @mixin wppd-checkbox {
5 .wppd-checkbox-wrap {
6 position: relative;
7 cursor: pointer;
8 -webkit-user-select: none;
9 -moz-user-select: none;
10 -ms-user-select: none;
11 user-select: none;
12 display: flex;
13 gap: 7px;
14
15 input {
16 position: absolute;
17 opacity: 0;
18 cursor: pointer;
19 height: 0;
20 width: 0;
21
22 &:checked {
23 &:before {
24 content: none;
25 margin: 0;
26 }
27 }
28 }
29
30 .wppd-checkmark {
31 display: block;
32 height: 18px;
33 width: 18px;
34 background-color: variables.$background_input;
35 box-shadow: 0 0 0 1px color.scale(variables.$background_input, $lightness: -3%);
36 border-radius: 4px;
37
38 &:after {
39 content: "";
40 position: absolute;
41 display: none;
42 left: 7px;
43 top: 4px;
44 width: 3px;
45 height: 7px;
46 border: solid white;
47 border-width: 0 1.5px 1.5px 0;
48 -webkit-transform: rotate(45deg);
49 -ms-transform: rotate(45deg);
50 transform: rotate(45deg);
51 }
52 }
53
54 &:hover input:not(:checked) ~ .wppd-checkmark {
55 background-color: color.scale(variables.$background_input, $lightness: -2%);
56 }
57
58 input:checked ~ .wppd-checkmark {
59 background-color: variables.$primary;
60 }
61
62 input:checked ~ .wppd-checkmark:after {
63 display: block;
64 }
65
66 input:focus + .wppd-checkmark {
67 box-shadow: 0 0 0 2px variables.$primary;
68 }
69
70 input[disabled]] + .wppd-checkmark {
71 opacity: 0.7;
72 }
73
74 /*input[disabled] + .wppd-checkmark {
75 background-color: variables.$gray_light_two;
76 }
77
78 input[disabled]:checked + .wppd-checkmark {
79 background-color: variables.$gray_light;
80 }*/
81 }
82 }