barbican-reset 1.8.4 → 1.8.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.
@@ -1,12 +1,9 @@
1
1
 
2
2
  $c-brand-generic: hsl(21, 100%, 41%);
3
3
 
4
- $c-brand-generic-tint-98: tint($c-brand-generic, 98%);
4
+ $c-brand-generic-tint-98: tint($c-brand-generic, 98%); // faint
5
+ $c-brand-generic-tint-82-dsat-25: desaturate(tint($c-brand-generic, 82%), 25%); // light or shade
5
6
  $c-brand-generic-tint-70: tint($c-brand-generic, 70%);
6
7
  $c-brand-generic-tint-40: tint($c-brand-generic, 40%);
7
-
8
- $c-brand-generic-faint: hsl(21, 60%, 99%);
9
- $c-brand-generic-light: hsl(21, 100%, 95%);
10
- $c-brand-generic-shade: hsl(21, 50%, 90%);
11
- $c-brand-generic-dark: hsl(21, 100%, 38%);
12
- $c-brand-generic-x-dark: hsl(21, 100%, 15%);
8
+ $c-brand-generic-shade-7: shade($c-brand-generic, 7%); // dark
9
+ $c-brand-generic-shade-64: shade($c-brand-generic, 64%); // x-dark
@@ -0,0 +1,16 @@
1
+
2
+ const gulp = require('gulp');
3
+ const sass = require('gulp-sass')(require('sass'));
4
+ const tilde = require('node-sass-tilde-importer');
5
+
6
+ gulp.task('build:css', done => {
7
+ gulp.src('scss/styles.scss')
8
+ .pipe(sass({ importer : tilde }).on('error', sass.logError))
9
+ .pipe(gulp.dest('static'));
10
+ done();
11
+ });
12
+
13
+ gulp.task('watch', done => {
14
+ gulp.watch('scss/**/*.scss', gulp.series(['build:css']));
15
+ done();
16
+ });
@@ -0,0 +1,13 @@
1
+ const express = require('express')
2
+ const app = express()
3
+ const port = 3000
4
+
5
+ // To run server: node index
6
+
7
+ app.set('view engine', 'pug')
8
+
9
+ app.use(express.static(__dirname + '/static'));
10
+
11
+ app.get('/', (req, res) => res.render('index', { title: 'Hey', message: 'Hello there' }))
12
+
13
+ app.listen(port, () => console.log(`Example app listening on port ${port}`))
@@ -0,0 +1,11 @@
1
+
2
+ > li {
3
+ background-color: $c-brand-generic;
4
+
5
+ &.tint-98 { background-color: $c-brand-generic-tint-98; }
6
+ &.tint-82-dsat-25 { background-color: $c-brand-generic-tint-82-dsat-25; }
7
+ &.tint-70 { background-color: $c-brand-generic-tint-70; }
8
+ &.tint-40 { background-color: $c-brand-generic-tint-40; }
9
+ &.shade-7 { background-color: $c-brand-generic-shade-7; }
10
+ &.shade-64 { background-color: $c-brand-generic-shade-64; }
11
+ }
@@ -0,0 +1,30 @@
1
+ @import "../../node_modules/bootstrap/scss/functions";
2
+ @import "../../node_modules/bootstrap/scss/variables";
3
+ @import "../../node_modules/bootstrap/scss/mixins";
4
+ @import "../../helpers/index";
5
+
6
+ @import "../../scss/fonts";
7
+ @import "../../scss/br-container";
8
+
9
+ body {
10
+ line-height: $line-height-md;
11
+ font-family: $font-family;
12
+ color: $c-grey-night;
13
+ }
14
+
15
+ .br-color--palette {
16
+ list-style: none;
17
+ display: flex;
18
+ gap: 0.125rem;
19
+ padding: 0;
20
+ margin: 0;
21
+
22
+ &.generic { @import "scss/colors/generic"; }
23
+ }
24
+
25
+ .br-color--sample {
26
+ background: grey;
27
+ height: 6.25rem;
28
+ width: 6.25rem;
29
+ }
30
+
@@ -0,0 +1,106 @@
1
+ @font-face {
2
+ font-family: "FuturaLTPro";
3
+ src: url("../fonts/FuturaLTPro-Book.woff") format("woff"), url("../fonts/FuturaLTPro-Book.woff2") format("woff2");
4
+ font-style: normal;
5
+ }
6
+ @font-face {
7
+ font-family: "FuturaLTPro";
8
+ src: url("../fonts/FuturaLTPro-BookOblique.woff") format("woff"), url("../fonts/FuturaLTPro-BookOblique.woff2") format("woff2");
9
+ font-style: italic;
10
+ }
11
+ @font-face {
12
+ font-family: "FuturaLTPro";
13
+ src: url("../fonts/FuturaLTPro-Bold.woff") format("woff"), url("../fonts/FuturaLTPro-Bold.woff2") format("woff2");
14
+ font-style: normal;
15
+ font-weight: bold;
16
+ }
17
+ @font-face {
18
+ font-family: "FuturaLTPro";
19
+ src: url("../fonts/FuturaLTPro-BoldOblique.woff") format("woff"), url("../fonts/FuturaLTPro-BoldOblique.woff2") format("woff2");
20
+ font-style: italic;
21
+ font-weight: bold;
22
+ }
23
+ .br-container--outer {
24
+ padding-right: 5%;
25
+ padding-left: 5%;
26
+ }
27
+ .br-container--outer.splash {
28
+ padding-right: 10%;
29
+ padding-left: 10%;
30
+ }
31
+ .br-container--outer.masthead {
32
+ box-shadow: 0 0.375rem 0.375rem rgba(0, 0, 0, 0.1);
33
+ background-color: white;
34
+ }
35
+
36
+ .br-container--inner {
37
+ max-width: 75rem;
38
+ margin: 0 auto;
39
+ }
40
+ .br-container--inner:not(.footer) {
41
+ padding-bottom: 1.5rem;
42
+ padding-top: 1.5rem;
43
+ }
44
+ @media (min-width: 32.5em) {
45
+ .br-container--inner:not(.footer) {
46
+ padding-bottom: 2.5rem;
47
+ padding-top: 2.5rem;
48
+ }
49
+ }
50
+ .br-container--inner.header {
51
+ padding-bottom: 1.875rem;
52
+ padding-top: 1.875rem;
53
+ }
54
+ .br-container--inner.thin {
55
+ max-width: 50rem;
56
+ }
57
+ @media (min-width: 32.5em) {
58
+ .br-container--inner.masthead {
59
+ padding-bottom: 3rem;
60
+ padding-top: 3rem;
61
+ }
62
+ }
63
+ .br-container--inner.masthead h1 {
64
+ margin: 0;
65
+ }
66
+
67
+ body {
68
+ line-height: 1.4;
69
+ font-family: FuturaLTPro, "Helvetica", "Arial", sans-serif;
70
+ color: #353535;
71
+ }
72
+
73
+ .br-color--palette {
74
+ list-style: none;
75
+ display: flex;
76
+ gap: 0.125rem;
77
+ padding: 0;
78
+ margin: 0;
79
+ }
80
+ .br-color--palette.generic > li {
81
+ background-color: hsl(21deg, 100%, 41%);
82
+ }
83
+ .br-color--palette.generic > li.tint-98 {
84
+ background-color: #fefbfa;
85
+ }
86
+ .br-color--palette.generic > li.tint-82-dsat-25 {
87
+ background-color: #f0e0d8;
88
+ }
89
+ .br-color--palette.generic > li.tint-70 {
90
+ background-color: #f1c8b3;
91
+ }
92
+ .br-color--palette.generic > li.tint-40 {
93
+ background-color: #e39266;
94
+ }
95
+ .br-color--palette.generic > li.shade-7 {
96
+ background-color: #c24400;
97
+ }
98
+ .br-color--palette.generic > li.shade-64 {
99
+ background-color: #4b1a00;
100
+ }
101
+
102
+ .br-color--sample {
103
+ background: grey;
104
+ height: 6.25rem;
105
+ width: 6.25rem;
106
+ }
@@ -0,0 +1,16 @@
1
+ extends layout
2
+ block content
3
+ h1 Color Palettes
4
+ h2 Brand
5
+ h3 Generic
6
+ ul.br-color--palette.generic
7
+ li.br-color--sample
8
+ li.br-color--sample.tint-98
9
+ li.br-color--sample.tint-82-dsat-25
10
+ li.br-color--sample.tint-70
11
+ li.br-color--sample.tint-40
12
+ li.br-color--sample.shade-7
13
+ li.br-color--sample.shade-64
14
+
15
+ //- include mixins/test
16
+ //- +test()
@@ -0,0 +1,8 @@
1
+ html
2
+ head
3
+ title Pattern Library | Barbican Reset
4
+ link(rel="stylesheet" href="/styles.css")
5
+ body
6
+ .br-container--outer
7
+ .br-container--inner
8
+ block content
@@ -0,0 +1,2 @@
1
+ mixin test()
2
+ div test worked
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "barbican-reset",
3
- "version": "1.8.4",
3
+ "version": "1.8.5",
4
4
  "description": "A collection of useful scss imports and js scripts, that provide consistent styling and functionality across barbican projects.",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -13,21 +13,23 @@
13
13
  "url": "https://bitbucket.org/barbicandev/barbican-reset/"
14
14
  },
15
15
  "files": [
16
- "fonts/*.{woff,woff2}",
17
- "focus-visible.min.js",
18
16
  "animations/**/*",
19
17
  "components/**/*",
18
+ "dist/**/*",
19
+ "fonts/*.{woff,woff2}",
20
20
  "helpers/**/*",
21
21
  "icons/**/*",
22
- "dist/**/*",
22
+ "library/**/*",
23
+ "logos/*",
23
24
  "scss/**/*",
24
- "logos/*"
25
+ "focus-visible.min.js"
25
26
  ],
26
27
  "author": "Paul Heading",
27
28
  "license": "MIT",
28
29
  "dependencies": {
29
30
  "bootstrap": "^5.1.3",
30
31
  "bootstrap-vue": "^2.21.2",
32
+ "express": "^4.18.1",
31
33
  "focus-visible": "^5.2.0",
32
34
  "gsap": "^3.7.1",
33
35
  "gulp": "^4.0.2",
@@ -38,6 +40,7 @@
38
40
  "gulp-uglify": "^3.0.2",
39
41
  "node-sass-tilde-importer": "^1.0.2",
40
42
  "placeholder-loading": "^0.4.0",
43
+ "pug": "^3.0.2",
41
44
  "sass": "^1.41.0",
42
45
  "vue-moment": "^4.1.0",
43
46
  "vue-slick-carousel": "^1.0.6"
@@ -0,0 +1,49 @@
1
+ .br-container--outer {
2
+ padding-right: 5%;
3
+ padding-left: 5%;
4
+
5
+ &.splash {
6
+ padding-right: 10%;
7
+ padding-left: 10%;
8
+ }
9
+
10
+ &.masthead {
11
+ box-shadow: 0 0.375rem 0.375rem rgba(black, 0.1);
12
+ background-color: white;
13
+ }
14
+ }
15
+
16
+ .br-container--inner {
17
+ max-width: $layout-width-lg;
18
+ margin: 0 auto;
19
+
20
+ &:not(.footer) {
21
+ padding-bottom: 1.5rem;
22
+ padding-top: 1.5rem;
23
+
24
+ @include media-breakpoint-up(sm) {
25
+ padding-bottom: 2.5rem;
26
+ padding-top: 2.5rem;
27
+ }
28
+ }
29
+
30
+ &.header {
31
+ padding-bottom: 1.875rem;
32
+ padding-top: 1.875rem;
33
+ }
34
+
35
+ &.thin {
36
+ max-width: $layout-width-sm;
37
+ }
38
+
39
+ &.masthead {
40
+ @include media-breakpoint-up(sm) {
41
+ padding-bottom: 3rem;
42
+ padding-top: 3rem;
43
+ }
44
+
45
+ h1 {
46
+ margin: 0;
47
+ }
48
+ }
49
+ }
package/scss/index.scss CHANGED
@@ -15,6 +15,7 @@
15
15
  @import "promo";
16
16
 
17
17
  @import "br-alert";
18
+ @import "br-container";
18
19
  @import "br-form-row";
19
20
  @import "br-loader";
20
21
  @import "br-wrap";