nk_jtb 0.0.2 → 0.0.5
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/.editorconfig +34 -31
- package/{js/app.js → examples/masonry.html} +0 -0
- package/package.json +27 -34
- package/readme.md +13 -17
- package/scss/_nk.scss +33 -0
- package/scss/_nk_components.scss +32 -0
- package/scss/components/_box.scss +57 -128
- package/scss/components/_list.scss +18 -0
- package/scss/components/_table.scss +125 -0
- package/scss/dev.scss +6 -0
- package/scss/jtb.scss +87 -0
- package/scss/mixins/_makeMagicUtilities.scss +25 -0
- package/{assets → src}/images/favicon.ico +0 -0
- package/{assets/images/nk → src/images}/hero-lg.jpg +0 -0
- package/{assets/images/nk → src/images}/hero-md.jpg +0 -0
- package/{assets/images/nk → src/images}/hero-sm.jpg +0 -0
- package/{assets/images/nk → src/images}/hero-xl.jpg +0 -0
- package/{assets → src}/images/logo-alt.svg +0 -0
- package/src/images/logo.png +0 -0
- package/{assets → src}/images/logo.svg +25 -25
- package/{assets → src}/images/naykel-400.png +0 -0
- package/{assets/images/naykel-600-alt.png → src/images/naykel-600.png} +0 -0
- package/src/images/painting.jpg +0 -0
- package/src/index.html +257 -0
- package/src/scss/_nk.scss +104 -0
- package/src/scss/base/_base.scss +373 -0
- package/src/scss/base/_content_gap.scss +17 -0
- package/src/scss/base/_root.scss +8 -0
- package/src/scss/base/_vars_all.scss +5 -0
- package/src/scss/base/_vars_base.scss +92 -0
- package/src/scss/base/_vars_class_names.scss +7 -0
- package/src/scss/base/_vars_colors.scss +38 -0
- package/src/scss/base/_vars_components.scss +80 -0
- package/src/scss/base/_vars_utility_maps.scss +53 -0
- package/{scss → src/scss}/components/_accordion.scss +38 -57
- package/src/scss/components/_box.scss +26 -0
- package/src/scss/components/_button.scss +60 -0
- package/src/scss/components/_dropdown.scss +45 -0
- package/src/scss/components/_hero.scss +34 -0
- package/src/scss/components/_icon.scss +33 -0
- package/src/scss/components/_menu.scss +32 -0
- package/src/scss/components/_navbar.scss +36 -0
- package/src/scss/components/_other.scss +44 -0
- package/src/scss/components/_sidebar.scss +12 -0
- package/{scss → src/scss}/forms/_control.scss +18 -26
- package/src/scss/forms/_file.scss +21 -0
- package/src/scss/forms/_form.scss +115 -0
- package/src/scss/forms/_index.scss +2 -0
- package/src/scss/functions/_helpers.scss +42 -0
- package/src/scss/functions/_setTextColor.scss +12 -0
- package/src/scss/jtb.scss +45 -0
- package/{scss/layout/_grid.scss → src/scss/layout/_grid_old.scss} +88 -95
- package/src/scss/mixins/_colorSchemeSimple.scss +12 -0
- package/{scss/functions/_createColorShades.scss → src/scss/mixins/_colorShades.scss} +4 -8
- package/src/scss/mixins/_createState.scss +17 -0
- package/src/scss/mixins/_makeColorSchemeAdvanced.scss +58 -0
- package/src/scss/mixins/_makeCssPropertyMixins.scss +28 -0
- package/src/scss/mixins/_makeResponsivePositionUtilities.scss +59 -0
- package/src/scss/mixins/_media.scss +98 -0
- package/src/scss/mixins/_positionUtilityClasses.scss +56 -0
- package/src/scss/utilities/_border.scss +111 -0
- package/{scss/utilities/_visibility.scss → src/scss/utilities/_display.scss} +127 -161
- package/src/scss/utilities/_flex.scss +155 -0
- package/src/scss/utilities/_general.scss +141 -0
- package/src/scss/utilities/_grid.scss +194 -0
- package/src/scss/utilities/_position.scss +79 -0
- package/src/scss/utilities/_sizes.scss +126 -0
- package/src/scss/utilities/_spacing.scss +170 -0
- package/src/scss/utilities/_state.scss +30 -0
- package/src/scss/utilities/_text.scss +160 -0
- package/src/scss/utilities/_themes.scss +95 -0
- package/src/svg/naykel-ui-SVG-sprite.svg +1 -0
- package/assets/images/logo-28.svg +0 -25
- package/assets/images/naykel-600.png +0 -0
- package/assets/images/nk/banner1920-001.jpg +0 -0
- package/assets/images/samples/sample001-0600-(16x9).jpg +0 -0
- package/assets/images/samples/sample002-0600-(16x9).jpg +0 -0
- package/assets/images/samples/sample003-0600-(16x9).jpg +0 -0
- package/assets/svg/content/back.svg +0 -1
- package/assets/svg/content/cart.svg +0 -1
- package/assets/svg/content/chevron-down.svg +0 -1
- package/assets/svg/content/close.svg +0 -1
- package/assets/svg/content/dashboard.svg +0 -1
- package/assets/svg/content/document-add.svg +0 -1
- package/assets/svg/content/document-preview.svg +0 -1
- package/assets/svg/content/download.svg +0 -1
- package/assets/svg/content/enter.svg +0 -1
- package/assets/svg/content/exit.svg +0 -1
- package/assets/svg/content/forward.svg +0 -1
- package/assets/svg/content/menu-open.svg +0 -1
- package/assets/svg/content/menu.svg +0 -1
- package/assets/svg/content/save.svg +0 -1
- package/assets/svg/content/search.svg +0 -1
- package/assets/svg/content/trash-outline.svg +0 -1
- package/assets/svg/content/trash.svg +0 -1
- package/assets/svg/content/upload.svg +0 -1
- package/assets/svg/content/user-circle-outline.svg +0 -1
- package/assets/svg/content/user-circle.svg +0 -1
- package/assets/svg/extra/building.svg +0 -1
- package/assets/svg/extra/certificate.svg +0 -3
- package/assets/svg/extra/id-badge.svg +0 -1
- package/assets/svg/nk_icon-defs.svg +0 -1
- package/assets/svg/notifications/info.svg +0 -1
- package/assets/svg/notifications/question-outline.svg +0 -13
- package/assets/svg/notifications/question.svg +0 -12
- package/assets/svg/notifications/warning-triangle.svg +0 -13
- package/assets/svg/notifications/warning.svg +0 -10
- package/assets/svg/shapes/check.svg +0 -1
- package/assets/svg/shapes/heart-o.svg +0 -1
- package/assets/svg/shapes/heart.svg +0 -1
- package/assets/svg/shapes/minus.svg +0 -1
- package/assets/svg/shapes/plus.svg +0 -1
- package/assets/svg/shapes/star-half-empty.svg +0 -1
- package/assets/svg/shapes/star-half.svg +0 -1
- package/assets/svg/shapes/star-o.svg +0 -1
- package/assets/svg/shapes/star.svg +0 -1
- package/dev.html +0 -75
- package/dist/bundle.js +0 -498
- package/dist/css/nk_jtb.css +0 -2464
- package/dist/index.html +0 -102
- package/index.html +0 -45
- package/postcss.config.js +0 -5
- package/scss/_custom.scss +0 -0
- package/scss/_custom_vars.scss +0 -20
- package/scss/_main.scss +0 -75
- package/scss/base/_base.scss +0 -396
- package/scss/base/_base_ext.scss +0 -13
- package/scss/base/_functions.scss +0 -51
- package/scss/base/_vars_base.scss +0 -97
- package/scss/base/_vars_colors.scss +0 -103
- package/scss/components/_button.scss +0 -160
- package/scss/components/_icon.scss +0 -47
- package/scss/components/_nav.scss +0 -64
- package/scss/components/_navbar.scss +0 -73
- package/scss/extra/_code.scss +0 -98
- package/scss/forms/_file.scss +0 -55
- package/scss/forms/_form.scss +0 -134
- package/scss/forms/all.scss +0 -9
- package/scss/layout/_container.scss +0 -39
- package/scss/layout/_hero.scss +0 -76
- package/scss/mixins/_media.scss +0 -91
- package/scss/mixins/_sizes.scss +0 -8
- package/scss/mixins/_state.scss +0 -15
- package/scss/nk_jtb.scss +0 -82
- package/scss/utilities/_border.scss +0 -91
- package/scss/utilities/_color.scss +0 -29
- package/scss/utilities/_dropdown.scss +0 -26
- package/scss/utilities/_flex.scss +0 -128
- package/scss/utilities/_other.scss +0 -37
- package/scss/utilities/_position.scss +0 -104
- package/scss/utilities/_sizes.scss +0 -64
- package/scss/utilities/_spacing.scss +0 -168
- package/scss/utilities/_text.scss +0 -125
- package/webpack.config.js +0 -43
package/.editorconfig
CHANGED
|
@@ -1,31 +1,34 @@
|
|
|
1
|
-
root = true
|
|
2
|
-
|
|
3
|
-
[*]
|
|
4
|
-
charset = utf-8
|
|
5
|
-
end_of_line = lf
|
|
6
|
-
insert_final_newline = true
|
|
7
|
-
indent_style = space
|
|
8
|
-
indent_size = 4
|
|
9
|
-
trim_trailing_whitespace = true
|
|
10
|
-
|
|
11
|
-
[*.php]
|
|
12
|
-
indent_size = 4
|
|
13
|
-
|
|
14
|
-
[*.vue]
|
|
15
|
-
indent_size = 2
|
|
16
|
-
|
|
17
|
-
[*.json]
|
|
18
|
-
indent_size = 4
|
|
19
|
-
|
|
20
|
-
[*.blade.php]
|
|
21
|
-
indent_size = 4
|
|
22
|
-
|
|
23
|
-
[*.scss
|
|
24
|
-
indent_size = 4
|
|
25
|
-
|
|
26
|
-
[*.
|
|
27
|
-
indent_size = 4
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
root = true
|
|
2
|
+
|
|
3
|
+
[*]
|
|
4
|
+
charset = utf-8
|
|
5
|
+
end_of_line = lf
|
|
6
|
+
insert_final_newline = true
|
|
7
|
+
indent_style = space
|
|
8
|
+
indent_size = 4
|
|
9
|
+
trim_trailing_whitespace = true
|
|
10
|
+
|
|
11
|
+
# [*.php]
|
|
12
|
+
# indent_size = 4
|
|
13
|
+
|
|
14
|
+
# [*.vue]
|
|
15
|
+
# indent_size = 2
|
|
16
|
+
|
|
17
|
+
# [*.json]
|
|
18
|
+
# indent_size = 4
|
|
19
|
+
|
|
20
|
+
# [*.blade.php]
|
|
21
|
+
# indent_size = 4
|
|
22
|
+
|
|
23
|
+
# [*.scss]
|
|
24
|
+
# indent_size = 4
|
|
25
|
+
|
|
26
|
+
# [*.html]
|
|
27
|
+
# indent_size = 4
|
|
28
|
+
|
|
29
|
+
# [*.md]
|
|
30
|
+
# indent_size = 4
|
|
31
|
+
# trim_trailing_whitespace = false
|
|
32
|
+
|
|
33
|
+
# [*.yml]
|
|
34
|
+
# indent_size = 2
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,34 +1,27 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "nk_jtb",
|
|
3
|
-
"description": "Yet another utility based framework
|
|
4
|
-
"version": "0.0.
|
|
5
|
-
"
|
|
6
|
-
|
|
7
|
-
"
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
"sass-loader": "^7.3.1",
|
|
29
|
-
"style-loader": "^0.23.1",
|
|
30
|
-
"webpack": "^4.46.0",
|
|
31
|
-
"webpack-cli": "^3.3.12",
|
|
32
|
-
"webpack-dev-server": "^3.11.2"
|
|
33
|
-
}
|
|
34
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "nk_jtb",
|
|
3
|
+
"description": "Yet another utility based framework.",
|
|
4
|
+
"version": "0.0.5",
|
|
5
|
+
"repository": {
|
|
6
|
+
"type": "git",
|
|
7
|
+
"url": "https://github.com/naykel76/nk_jtb.git"
|
|
8
|
+
},
|
|
9
|
+
"scripts": {
|
|
10
|
+
"watch": "sass --watch --no-source-map src/scss/jtb.scss:dist/css/jtb.css",
|
|
11
|
+
"border": "sass --watch --no-source-map src/scss/utilities/_border.scss:dist/css/border.css",
|
|
12
|
+
"flex": "sass --watch --no-source-map src/scss/utilities/_flex.scss:dist/css/flex.css",
|
|
13
|
+
"grid": "sass --watch --no-source-map src/scss/utilities/_grid.scss:dist/css/grid.css",
|
|
14
|
+
"spacing": "sass --watch --no-source-map src/scss/utilities/_spacing.scss:dist/css/spacing.css",
|
|
15
|
+
"themes": "sass --watch --no-source-map src/scss/utilities/_themes.scss:dist/css/themes.css",
|
|
16
|
+
"dev": "parcel ./src/index.html --open",
|
|
17
|
+
"build": "parcel build index.html"
|
|
18
|
+
},
|
|
19
|
+
"keywords": [],
|
|
20
|
+
"author": "",
|
|
21
|
+
"license": "ISC",
|
|
22
|
+
"devDependencies": {
|
|
23
|
+
"@parcel/transformer-sass": "^2.5.0",
|
|
24
|
+
"parcel": "^2.5.0",
|
|
25
|
+
"sass": "^1.51.0"
|
|
26
|
+
}
|
|
27
|
+
}
|
package/readme.md
CHANGED
|
@@ -1,17 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
| `npm run serve` | Run dev-server for live-view and compile css |
|
|
15
|
-
| `npm run watch` | |
|
|
16
|
-
| `npm run build` | |
|
|
17
|
-
| `npm run build-sass` | Builds separate css and css map for easy reference in development |
|
|
1
|
+
<p align="center"><a href="https://naykel.com.au" target="_blank"><img src="https://avatars0.githubusercontent.com/u/32632005?s=460&u=d1df6f6e0bf29668f8a4845271e9be8c9b96ed83&v=4" width="120"></a></p>
|
|
2
|
+
|
|
3
|
+
# NAYKEL JTB
|
|
4
|
+
|
|
5
|
+
Yet another utility based framework based on flex-box and grid.
|
|
6
|
+
|
|
7
|
+
> Because without reinventing the wheel we wouldn’t have fast cars.
|
|
8
|
+
> -- Nathan Watts
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
package/scss/_nk.scss
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
// NK Documentation Styles
|
|
5
|
+
// --------------------------------------------------------------------------
|
|
6
|
+
|
|
7
|
+
.icon-box {
|
|
8
|
+
border: 1px solid #ccc;
|
|
9
|
+
padding: 0.5rem 0;
|
|
10
|
+
|
|
11
|
+
svg {
|
|
12
|
+
height: 72px !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.icon {
|
|
16
|
+
width: 150px; // icon container width
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
.icon-title {
|
|
20
|
+
display: block;
|
|
21
|
+
text-align: center;
|
|
22
|
+
font-size: 0.875rem;
|
|
23
|
+
margin-top: -0.5rem;
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
// contact form
|
|
28
|
+
// ------------------------------------
|
|
29
|
+
|
|
30
|
+
// fix google captch
|
|
31
|
+
.g-recaptcha {
|
|
32
|
+
max-width: 200px;
|
|
33
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
@use "./base/vars_all" as *;
|
|
2
|
+
@use "./mixins/media" as *;
|
|
3
|
+
|
|
4
|
+
.fancy-icon-button {
|
|
5
|
+
text-align: center;
|
|
6
|
+
position: relative;
|
|
7
|
+
display: inline-block;
|
|
8
|
+
|
|
9
|
+
.#{$icon-class} {
|
|
10
|
+
height: 24px;
|
|
11
|
+
width: 24px;
|
|
12
|
+
padding: 0;
|
|
13
|
+
// add margin to push the qty badge away
|
|
14
|
+
// margin: 0.5rem 0.5rem 0;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
.badge {
|
|
18
|
+
position: absolute;
|
|
19
|
+
top: 0px;
|
|
20
|
+
right: 0px;
|
|
21
|
+
height: 20px;
|
|
22
|
+
min-width: 20px;
|
|
23
|
+
border-radius: 50%;
|
|
24
|
+
display: flex;
|
|
25
|
+
justify-content: center;
|
|
26
|
+
align-items: center;
|
|
27
|
+
font-size: 12px;
|
|
28
|
+
background-color: hsl(354, 70%, 54%);
|
|
29
|
+
border: 1px solid hsl(354, 70%, 44%);
|
|
30
|
+
color: rgb(255, 255, 255);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
@@ -1,128 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
//
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
color:
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
.bx-footer {
|
|
59
|
-
margin-left: -$bx-padding; // 1
|
|
60
|
-
margin-right: -$bx-padding; // 1
|
|
61
|
-
padding: 0.75rem $bx-padding;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
// .bx-content {
|
|
65
|
-
// padding: $bx-padding;
|
|
66
|
-
|
|
67
|
-
// // remove margin and radius from the box content when there is no footer
|
|
68
|
-
// // &:first-of-type {
|
|
69
|
-
// // margin-top: -$bx-padding;
|
|
70
|
-
// // border-radius: $bx-border-radius $bx-border-radius 0 0;
|
|
71
|
-
// // }
|
|
72
|
-
// // &:last-of-type {
|
|
73
|
-
// // margin-bottom: -$bx-padding;
|
|
74
|
-
// // border-radius: 0 0 $bx-border-radius $bx-border-radius;
|
|
75
|
-
// // }
|
|
76
|
-
// }
|
|
77
|
-
|
|
78
|
-
.bx-header {
|
|
79
|
-
margin-top: -$bx-padding !important;
|
|
80
|
-
background: $bx-header-bg;
|
|
81
|
-
border-bottom: 1px solid rgba(0, 0, 0, 0.125);
|
|
82
|
-
border-radius: $bx-border-radius $bx-border-radius 0 0;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
.bx-footer {
|
|
86
|
-
margin-bottom: -$bx-padding !important;
|
|
87
|
-
border-top: 1px solid rgba(0, 0, 0, 0.125);
|
|
88
|
-
border-radius: 0 0 $bx-border-radius $bx-border-radius;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
// // .bx-shadow {
|
|
92
|
-
// // box-shadow: 0 1px 2px rgba(10, 10, 10, 0.1);
|
|
93
|
-
// // }
|
|
94
|
-
|
|
95
|
-
// // // special box with large padding and shaddow
|
|
96
|
-
// // .bx-shaddow {
|
|
97
|
-
// // // @include box-shadow();
|
|
98
|
-
// // padding: $gutter-sm;
|
|
99
|
-
// // border: 1px solid #ddd;
|
|
100
|
-
|
|
101
|
-
// // @include mobile {
|
|
102
|
-
// // padding: $gutter;
|
|
103
|
-
// // }
|
|
104
|
-
|
|
105
|
-
// // @include from-desktop {
|
|
106
|
-
// // padding: $gutter-lg;
|
|
107
|
-
// // }
|
|
108
|
-
// // }
|
|
109
|
-
|
|
110
|
-
@each $key, $map in $boxes-map {
|
|
111
|
-
.bx-#{$key} {
|
|
112
|
-
@extend .bx;
|
|
113
|
-
background: map-get($map, bg);
|
|
114
|
-
color: map-get($map, color);
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
// .bx-#{$key} {
|
|
118
|
-
// // border: 1px solid rgba(0, 0, 0, 0.15);
|
|
119
|
-
// background-color: $value;
|
|
120
|
-
// // color: $fontcolor;
|
|
121
|
-
// // transition: background-color 0.3s;
|
|
122
|
-
|
|
123
|
-
// // &.hover:hover{
|
|
124
|
-
// // background-color: darken($bgcolor, 10);
|
|
125
|
-
// // }
|
|
126
|
-
// }
|
|
127
|
-
}
|
|
128
|
-
|
|
1
|
+
@use "../base/vars_colors" as *;
|
|
2
|
+
@use "../functions/setTextColor" as *;
|
|
3
|
+
@use "../base/vars_base" as *;
|
|
4
|
+
|
|
5
|
+
// --------------------------------------------------------------------------
|
|
6
|
+
// Variables
|
|
7
|
+
// --------------------------------------------------------------------------
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
12
|
+
//
|
|
13
|
+
// base background and font color can be specified because the
|
|
14
|
+
// theme function has been included to specifically override them.
|
|
15
|
+
//
|
|
16
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
21
|
+
//
|
|
22
|
+
// this is a bit fickle and needs to be improved, it works in most
|
|
23
|
+
// cases but i am sure a curve ball will jump up at some stage!
|
|
24
|
+
//
|
|
25
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
26
|
+
|
|
27
|
+
// 1. remove side margins to align content to the outer bx. This allows
|
|
28
|
+
// different bg colours can be applied to individual sections
|
|
29
|
+
.bx-header,
|
|
30
|
+
.bx-footer {
|
|
31
|
+
margin-left: -$bx-padding; // 1
|
|
32
|
+
margin-right: -$bx-padding; // 1
|
|
33
|
+
padding: 0.75rem $bx-padding;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
// it is best not to specify default colors here to allow themes to work
|
|
37
|
+
.bx-header {
|
|
38
|
+
margin-top: -$bx-padding !important;
|
|
39
|
+
border-bottom: 1px solid;
|
|
40
|
+
border-color: inherit;
|
|
41
|
+
border-radius: $bx-border-radius $bx-border-radius 0 0;
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
.bx-footer {
|
|
45
|
+
margin-bottom: -$bx-padding !important;
|
|
46
|
+
border-top: 1px solid;
|
|
47
|
+
border-color: inherit;
|
|
48
|
+
border-radius: 0 0 $bx-border-radius $bx-border-radius;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
:is(.bx-header + .bx-content) {
|
|
52
|
+
padding: $bx-padding;
|
|
53
|
+
margin-bottom: -$bx-padding;
|
|
54
|
+
margin-left: -$bx-padding;
|
|
55
|
+
margin-right: -$bx-padding;
|
|
56
|
+
}
|
|
57
|
+
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
@use "../base/vars_all" as *;
|
|
2
|
+
@use "../vars_class_names" as *;
|
|
3
|
+
|
|
4
|
+
.#{$list-class} {
|
|
5
|
+
list-style: none;
|
|
6
|
+
margin: 0; // remove indent
|
|
7
|
+
|
|
8
|
+
a {
|
|
9
|
+
color: $list-link-color;
|
|
10
|
+
&:where(:hover) {
|
|
11
|
+
// $list-hover-color;
|
|
12
|
+
color: $list-link-hover-color;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
}
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
@use "../base/vars_base" as *;
|
|
2
|
+
@use "../vars_class_names" as *;
|
|
3
|
+
|
|
4
|
+
$table-color: $base-color !default;
|
|
5
|
+
$table-background-color: white !default;
|
|
6
|
+
|
|
7
|
+
// $table-cell-border: 1px solid $border !default;
|
|
8
|
+
// $table-cell-border-width: 0 0 1px !default;
|
|
9
|
+
// $table-cell-padding: 0.5em 0.75em !default;
|
|
10
|
+
// $table-cell-heading-color: $text-strong !default;
|
|
11
|
+
|
|
12
|
+
// $table-head-cell-border-width: 0 0 2px !default;
|
|
13
|
+
// $table-head-cell-color: $text-strong !default;
|
|
14
|
+
// $table-foot-cell-border-width: 2px 0 0 !default;
|
|
15
|
+
// $table-foot-cell-color: $text-strong !default;
|
|
16
|
+
|
|
17
|
+
// $table-head-background-color: transparent !default;
|
|
18
|
+
// $table-body-background-color: transparent !default;
|
|
19
|
+
// $table-foot-background-color: transparent !default;
|
|
20
|
+
|
|
21
|
+
// $table-row-hover-background-color: $scheme-main-bis !default;
|
|
22
|
+
|
|
23
|
+
// $table-row-active-background-color: $primary !default;
|
|
24
|
+
// $table-row-active-color: $primary-invert !default;
|
|
25
|
+
|
|
26
|
+
// $table-striped-row-even-background-color: $scheme-main-bis !default;
|
|
27
|
+
// $table-striped-row-even-hover-background-color: $scheme-main-ter !default;
|
|
28
|
+
|
|
29
|
+
.#{$table-class} {
|
|
30
|
+
background-color: $table-background-color;
|
|
31
|
+
color: $table-color;
|
|
32
|
+
// td,
|
|
33
|
+
// th
|
|
34
|
+
// border: $table-cell-border
|
|
35
|
+
// border-width: $table-cell-border-width
|
|
36
|
+
// padding: $table-cell-padding
|
|
37
|
+
// vertical-align: top
|
|
38
|
+
// // Colors
|
|
39
|
+
// @each $name, $pair in $table-colors
|
|
40
|
+
// $color: nth($pair, 1)
|
|
41
|
+
// $color-invert: nth($pair, 2)
|
|
42
|
+
// &.is-#{$name}
|
|
43
|
+
// background-color: $color
|
|
44
|
+
// border-color: $color
|
|
45
|
+
// color: $color-invert
|
|
46
|
+
// // Modifiers
|
|
47
|
+
// &.is-narrow
|
|
48
|
+
// white-space: nowrap
|
|
49
|
+
// width: 1%
|
|
50
|
+
// &.is-selected
|
|
51
|
+
// background-color: $table-row-active-background-color
|
|
52
|
+
// color: $table-row-active-color
|
|
53
|
+
// a,
|
|
54
|
+
// strong
|
|
55
|
+
// color: currentColor
|
|
56
|
+
// &.is-vcentered
|
|
57
|
+
// vertical-align: middle
|
|
58
|
+
// th
|
|
59
|
+
// color: $table-cell-heading-color
|
|
60
|
+
// &:not([align])
|
|
61
|
+
// text-align: inherit
|
|
62
|
+
// tr
|
|
63
|
+
// &.is-selected
|
|
64
|
+
// background-color: $table-row-active-background-color
|
|
65
|
+
// color: $table-row-active-color
|
|
66
|
+
// a,
|
|
67
|
+
// strong
|
|
68
|
+
// color: currentColor
|
|
69
|
+
// td,
|
|
70
|
+
// th
|
|
71
|
+
// border-color: $table-row-active-color
|
|
72
|
+
// color: currentColor
|
|
73
|
+
// thead
|
|
74
|
+
// background-color: $table-head-background-color
|
|
75
|
+
// td,
|
|
76
|
+
// th
|
|
77
|
+
// border-width: $table-head-cell-border-width
|
|
78
|
+
// color: $table-head-cell-color
|
|
79
|
+
// tfoot
|
|
80
|
+
// background-color: $table-foot-background-color
|
|
81
|
+
// td,
|
|
82
|
+
// th
|
|
83
|
+
// border-width: $table-foot-cell-border-width
|
|
84
|
+
// color: $table-foot-cell-color
|
|
85
|
+
// tbody
|
|
86
|
+
// background-color: $table-body-background-color
|
|
87
|
+
// tr
|
|
88
|
+
// &:last-child
|
|
89
|
+
// td,
|
|
90
|
+
// th
|
|
91
|
+
// border-bottom-width: 0
|
|
92
|
+
// // Modifiers
|
|
93
|
+
// &.is-bordered
|
|
94
|
+
// td,
|
|
95
|
+
// th
|
|
96
|
+
// border-width: 1px
|
|
97
|
+
// tr
|
|
98
|
+
// &:last-child
|
|
99
|
+
// td,
|
|
100
|
+
// th
|
|
101
|
+
// border-bottom-width: 1px
|
|
102
|
+
// &.is-fullwidth
|
|
103
|
+
// width: 100%
|
|
104
|
+
// &.is-hoverable
|
|
105
|
+
// tbody
|
|
106
|
+
// tr:not(.is-selected)
|
|
107
|
+
// &:hover
|
|
108
|
+
// background-color: $table-row-hover-background-color
|
|
109
|
+
// &.is-striped
|
|
110
|
+
// tbody
|
|
111
|
+
// tr:not(.is-selected)
|
|
112
|
+
// &:hover
|
|
113
|
+
// background-color: $table-row-hover-background-color
|
|
114
|
+
// &:nth-child(even)
|
|
115
|
+
// background-color: $table-striped-row-even-hover-background-color
|
|
116
|
+
// &.is-narrow
|
|
117
|
+
// td,
|
|
118
|
+
// th
|
|
119
|
+
// padding: 0.25em 0.5em
|
|
120
|
+
// &.is-striped
|
|
121
|
+
// tbody
|
|
122
|
+
// tr:not(.is-selected)
|
|
123
|
+
// &:nth-child(even)
|
|
124
|
+
// background-color: $table-striped-row-even-background-color
|
|
125
|
+
}
|
package/scss/dev.scss
ADDED
package/scss/jtb.scss
ADDED
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
2
|
+
//
|
|
3
|
+
// Rather than loading Scss stylesheets through _index.scss bring
|
|
4
|
+
// each file in separately for more finite control.
|
|
5
|
+
//
|
|
6
|
+
// ---------------- BEFORE YOU DO ANYTHING CRAZY ----------------
|
|
7
|
+
|
|
8
|
+
@use "./base/base";
|
|
9
|
+
@use "./base/content_gap";
|
|
10
|
+
|
|
11
|
+
@use "components";
|
|
12
|
+
@use "forms";
|
|
13
|
+
@use "layout";
|
|
14
|
+
@use "nk";
|
|
15
|
+
@use "nk_components";
|
|
16
|
+
|
|
17
|
+
@forward "./utilities/display";
|
|
18
|
+
@forward "./utilities/flex";
|
|
19
|
+
@forward "./utilities/general";
|
|
20
|
+
@forward "./utilities/grid";
|
|
21
|
+
@forward "./utilities/position";
|
|
22
|
+
@forward "./utilities/sizes";
|
|
23
|
+
@forward "./utilities/spacing";
|
|
24
|
+
@forward "./utilities/state";
|
|
25
|
+
@forward "./utilities/text";
|
|
26
|
+
@forward "./utilities/themes";
|
|
27
|
+
@forward "./utilities/visibility";
|
|
28
|
+
|
|
29
|
+
// Upgraded to new utility system
|
|
30
|
+
@forward "./utilities/border";
|
|
31
|
+
|
|
32
|
+
// .x {
|
|
33
|
+
// background: repeating-linear-gradient(45deg, hsl(232, 41%, 56%), hsl(232, 41%, 56%) 10px, hsl(231, 37%, 44%) 10px, hsl(231, 37%, 44%) 20px);
|
|
34
|
+
// }
|
|
35
|
+
|
|
36
|
+
// next-bg
|
|
37
|
+
// .mates +
|
|
38
|
+
// .after +
|
|
39
|
+
// .special + .bx {
|
|
40
|
+
// // background-color: red;
|
|
41
|
+
// background: repeating-linear-gradient(45deg, #606dbc, #606dbc 10px, #465298 10px, #465298 20px);
|
|
42
|
+
// }
|
|
43
|
+
|
|
44
|
+
// .mate + .mate{
|
|
45
|
+
|
|
46
|
+
// }
|
|
47
|
+
// special class for development visuals
|
|
48
|
+
// .dev-boxes {
|
|
49
|
+
// div {
|
|
50
|
+
// min-height: 175px;
|
|
51
|
+
// background: var(--red);
|
|
52
|
+
|
|
53
|
+
// &:nth-of-type(2) {
|
|
54
|
+
// background: var(--green);
|
|
55
|
+
// }
|
|
56
|
+
// &:nth-of-type(3) {
|
|
57
|
+
// background: var(--blue);
|
|
58
|
+
// }
|
|
59
|
+
// &:nth-of-type(4) {
|
|
60
|
+
// background: var(--yellow);
|
|
61
|
+
// }
|
|
62
|
+
// &:nth-of-type(5) {
|
|
63
|
+
// background: var(--purple);
|
|
64
|
+
// }
|
|
65
|
+
// &:nth-of-type(6) {
|
|
66
|
+
// background: var(--cyan);
|
|
67
|
+
// }
|
|
68
|
+
// &:nth-of-type(7) {
|
|
69
|
+
// background: var(--pink);
|
|
70
|
+
// }
|
|
71
|
+
// &:nth-of-type(8) {
|
|
72
|
+
// background: var(--orange);
|
|
73
|
+
// }
|
|
74
|
+
// &:nth-of-type(9) {
|
|
75
|
+
// background: var(--dark);
|
|
76
|
+
// }
|
|
77
|
+
// &:nth-of-type(10) {
|
|
78
|
+
// background: var(--turquoise);
|
|
79
|
+
// }
|
|
80
|
+
// &:nth-of-type(11) {
|
|
81
|
+
// background: var(--darkblue);
|
|
82
|
+
// }
|
|
83
|
+
// &:nth-of-type(12) {
|
|
84
|
+
// background: var(--muted);
|
|
85
|
+
// }
|
|
86
|
+
// }
|
|
87
|
+
// }
|