barbican-reset 1.8.2 → 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.
@@ -0,0 +1,7 @@
1
+ @function tint($color, $percentage) {
2
+ @return mix(white, $color, $percentage);
3
+ }
4
+
5
+ @function shade($color, $percentage) {
6
+ @return mix(black, $color, $percentage);
7
+ }
@@ -1,3 +1,4 @@
1
1
  // paths more explicit for gulp-sass
2
+ @import "functions/index";
2
3
  @import "variables/index";
3
4
  @import "mixins/index";
@@ -279,10 +279,10 @@
279
279
 
280
280
  @include focus {
281
281
  &.member {
282
- color: $c-member;
282
+ color: $c-brand-membership;
283
283
  }
284
284
  &.member-plus {
285
- color: $c-member-dark;
285
+ color: $c-brand-membership-dark;
286
286
  }
287
287
  }
288
288
  }
@@ -1,5 +1,6 @@
1
1
 
2
- $c-brand-art-x-lite: hsl(329, 100%, 99%); // 2% opacity
3
- $c-brand-art-lite: hsl(329, 81%, 83%); // 30% opacity
4
- $c-brand-art-medium: hsl(329, 82%, 67%); // 60% opacity
5
- $c-brand-art: hsl(329, 100%, 45%);
2
+ $c-brand-art: hsl(329, 100%, 45%);
3
+
4
+ $c-brand-art-tint-98: tint($c-brand-art, 98%);
5
+ $c-brand-art-tint-70: tint($c-brand-art, 70%);
6
+ $c-brand-art-tint-40: tint($c-brand-art, 40%);
@@ -1,6 +1,8 @@
1
1
 
2
- $c-brand-cinema-x-lite: hsl(126, 31%, 99%); // 2% opacity
3
- $c-brand-cinema-lite: hsl(126, 31%, 80%); // 30% opacity
4
- $c-brand-cinema-medium: hsl(126, 31%, 60%); // 60% opacity
5
2
  $c-brand-cinema: hsl(126, 62%, 33%);
3
+
4
+ $c-brand-cinema-tint-98: tint($c-brand-cinema, 98%);
5
+ $c-brand-cinema-tint-70: tint($c-brand-cinema, 70%);
6
+ $c-brand-cinema-tint-40: tint($c-brand-cinema, 40%);
7
+
6
8
  $c-brand-cinema-dark: darken($c-brand-cinema, 7%);
@@ -1,7 +1,9 @@
1
1
 
2
- $c-brand-classical-x-lite: hsl(38, 33%, 99%); // 2% opacity
3
- $c-brand-classical-lite: hsl(38, 33%, 81%); // 30% opacity
4
- $c-brand-classical-medium: hsl(38, 33%, 63%); // 60% opacity
5
- $c-brand-classical-light: hsl(38, 53%, 95%);
6
2
  $c-brand-classical: hsl(38, 53%, 38%);
3
+
4
+ $c-brand-classical-tint-98: tint($c-brand-classical, 98%);
5
+ $c-brand-classical-tint-70: tint($c-brand-classical, 70%);
6
+ $c-brand-classical-tint-40: tint($c-brand-classical, 40%);
7
+
8
+ $c-brand-classical-light: hsl(38, 53%, 95%);
7
9
  $c-brand-classical-dark: hsl(38, 53%, 30%);
@@ -1,5 +1,6 @@
1
1
 
2
- $c-brand-contemporary-x-lite: hsl(254, 14%, 99%); // 2% opacity
3
- $c-brand-contemporary-lite: hsl(254, 22%, 80%); // 30% opacity
4
- $c-brand-contemporary-medium: hsl(254, 22%, 60%); // 60% opacity
5
- $c-brand-contemporary: hsl(254, 44%, 33%);
2
+ $c-brand-contemporary: hsl(254, 44%, 33%);
3
+
4
+ $c-brand-contemporary-tint-98: tint($c-brand-contemporary, 98%);
5
+ $c-brand-contemporary-tint-70: tint($c-brand-contemporary, 70%);
6
+ $c-brand-contemporary-tint-40: tint($c-brand-contemporary, 40%);
@@ -1,10 +1,9 @@
1
1
 
2
- $c-brand-generic-x-lite: hsl(21, 67%, 99%); // 2% opacity
3
- $c-brand-generic-faint: hsl(21, 60%, 99%);
4
- $c-brand-generic-light: hsl(21, 100%, 95%);
5
- $c-brand-generic-shade: hsl(21, 50%, 90%);
6
- $c-brand-generic-lite: hsl(21, 69%, 82%); // 30% opacity
7
- $c-brand-generic-medium: hsl(21, 69%, 65%); // 60% opacity
8
2
  $c-brand-generic: hsl(21, 100%, 41%);
9
- $c-brand-generic-dark: hsl(21, 100%, 38%);
10
- $c-brand-generic-x-dark: hsl(21, 100%, 15%);
3
+
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
6
+ $c-brand-generic-tint-70: tint($c-brand-generic, 70%);
7
+ $c-brand-generic-tint-40: tint($c-brand-generic, 40%);
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
@@ -1,8 +1,10 @@
1
1
 
2
- $c-brand-membership-x-lite: hsl(217, 60%, 99%); // 2% opacity
3
- $c-brand-membership-lite: hsl(217, 72%, 86%); // 30% opacity
4
- $c-brand-membership-medium: hsl(217, 72%, 72%); // 60% opacity
5
2
  $c-brand-membership: hsl(217, 72%, 53%);
3
+
4
+ $c-brand-membership-tint-98: tint($c-brand-membership, 98%);
5
+ $c-brand-membership-tint-70: tint($c-brand-membership, 70%);
6
+ $c-brand-membership-tint-40: tint($c-brand-membership, 40%);
7
+
6
8
  $c-brand-membership-dark: hsl(223, 87%, 21%);
7
9
 
8
10
  // ------------------------------
@@ -1,5 +1,6 @@
1
1
 
2
2
  $c-brand-programme: $c-grey-night;
3
- $c-brand-programme-medium: hsl(0, 0%, 40%);
4
- $c-brand-programme-lite: hsl(0, 0%, 70%);
5
- $c-brand-programme-x-lite: hsl(0, 0%, 98%);
3
+
4
+ $c-brand-programme-tint-98: tint($c-brand-programme, 98%);
5
+ $c-brand-programme-tint-70: tint($c-brand-programme, 70%);
6
+ $c-brand-programme-tint-40: tint($c-brand-programme, 40%);
@@ -1,5 +1,6 @@
1
1
 
2
2
  $c-brand-talks: hsl(214, 30%, 49%);
3
- $c-brand-talks-medium: hsl(214, 30%, 69%); // 60% opacity
4
- $c-brand-talks-lite: hsl(214, 30%, 85%); // 30% opacity
5
- $c-brand-talks-x-lite: hsl(214, 30%, 99%); // 2% opacity
3
+
4
+ $c-brand-talks-tint-98: tint($c-brand-talks, 98%);
5
+ $c-brand-talks-tint-70: tint($c-brand-talks, 70%);
6
+ $c-brand-talks-tint-40: tint($c-brand-talks, 40%);
@@ -1,5 +1,6 @@
1
1
 
2
2
  $c-brand-theatre: hsl(192, 99%, 31%);
3
- $c-brand-theatre-medium: hsl(192, 44%, 59%); // 60% opacity
4
- $c-brand-theatre-lite: hsl(192, 44%, 79%); // 30% opacity
5
- $c-brand-theatre-x-lite: hsl(192, 44%, 99%); // 2% opacity
3
+
4
+ $c-brand-theatre-tint-98: tint($c-brand-theatre, 98%);
5
+ $c-brand-theatre-tint-70: tint($c-brand-theatre, 70%);
6
+ $c-brand-theatre-tint-40: tint($c-brand-theatre, 40%);
@@ -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.2",
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
+ }
@@ -25,12 +25,12 @@ $angle: 120deg;
25
25
  }
26
26
 
27
27
  &.member {
28
- background-color: $c-member;
28
+ background-color: $c-brand-membership;
29
29
  }
30
30
 
31
31
  &.member-plus {
32
- background-color: $c-member-dark;
33
- background-image: linear-gradient($angle, $c-member-dark 20%, $c-member 100%);
32
+ background-color: $c-brand-membership-dark;
33
+ background-image: linear-gradient($angle, $c-brand-membership-dark 20%, $c-brand-membership 100%);
34
34
  }
35
35
 
36
36
  &.patron, &.premier-patron {
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";