compostrap 1.0.2 → 1.0.3
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/css/compostrap.css +4 -4
- package/dist/css/sidebar-menu.css +4 -4
- package/dist/css/theme.css +5 -22
- package/docs/blog.md +85 -85
- package/docs/layout.md +143 -143
- package/package.json +1 -1
- package/readme.md +198 -198
- package/src/js/datepicker.js +154 -154
- package/src/scss/datagrid.scss +5 -5
- package/src/scss/datepicker/_index.scss +557 -557
- package/src/scss/sidebar/_index.scss +8 -8
- package/src/scss/sidebar-menu/_pills.scss +10 -8
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
//
|
|
2
|
-
// sidebar skeleton
|
|
3
|
-
//
|
|
4
|
-
|
|
5
|
-
@use 'body';
|
|
6
|
-
@use 'wrapper';
|
|
7
|
-
@use 'sidebar';
|
|
8
|
-
@use 'theme';
|
|
1
|
+
//
|
|
2
|
+
// sidebar skeleton
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
@use 'body';
|
|
6
|
+
@use 'wrapper';
|
|
7
|
+
@use 'sidebar';
|
|
8
|
+
@use 'theme';
|
|
@@ -7,14 +7,16 @@
|
|
|
7
7
|
// links are pills inset from the sidebar edges with a small gap between them (pills of 36px on the first level and
|
|
8
8
|
// 32px in submenus, rows of 42px and 38px); their text stays where the base menu has it
|
|
9
9
|
$inset: .5rem;
|
|
10
|
-
$gap: .375rem; //
|
|
10
|
+
$gap: .375rem; // the gap above each link
|
|
11
11
|
$pill-padding-y: .5rem;
|
|
12
12
|
$subpill-padding-y: .375rem;
|
|
13
13
|
$text-start: var.$sm-link-padding-x + var.$sm-icon-width + var.$sm-icon-gap;
|
|
14
14
|
|
|
15
15
|
.list {
|
|
16
|
+
// the gap is only above a link, so no margins collapse: a closing submenu (height 0, still shown) would keep two
|
|
17
|
+
// margins until it is hidden and then jump by one of them at the end of its animation (SidebarMenu.slideDuration)
|
|
16
18
|
.list-link {
|
|
17
|
-
margin: $gap $inset;
|
|
19
|
+
margin: $gap $inset 0;
|
|
18
20
|
padding: $pill-padding-y (var.$sm-link-padding-x - $inset);
|
|
19
21
|
border-radius: var(--sm-pill-border-radius);
|
|
20
22
|
}
|
|
@@ -25,8 +27,12 @@ $text-start: var.$sm-link-padding-x + var.$sm-icon-width + var.$sm-icon-gap;
|
|
|
25
27
|
padding-left: $text-start - $inset;
|
|
26
28
|
}
|
|
27
29
|
|
|
28
|
-
// a
|
|
29
|
-
//
|
|
30
|
+
// the gap between a link and its submenu is the padding of the submenu, which SidebarMenu slides to 0 together
|
|
31
|
+
// with the height
|
|
32
|
+
.list-hidden {
|
|
33
|
+
padding-top: $gap;
|
|
34
|
+
}
|
|
35
|
+
|
|
30
36
|
.list-hidden > li:first-child > .list-link {
|
|
31
37
|
margin-top: 0;
|
|
32
38
|
}
|
|
@@ -36,10 +42,6 @@ $text-start: var.$sm-link-padding-x + var.$sm-icon-width + var.$sm-icon-gap;
|
|
|
36
42
|
margin-top: .25rem;
|
|
37
43
|
}
|
|
38
44
|
|
|
39
|
-
.list-hidden > li:last-child > .list-link {
|
|
40
|
-
margin-bottom: 0;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
45
|
.list-hidden .list-hidden .list-link {
|
|
44
46
|
padding-left: $text-start + var.$sm-sub-indent - $inset;
|
|
45
47
|
}
|