bullframe.css 4.1.2 → 4.2.1

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.
Files changed (51) hide show
  1. package/.nvmrc +1 -0
  2. package/CHANGELOG.md +41 -32
  3. package/LICENSE +1 -1
  4. package/README.md +22 -21
  5. package/dist/css/bullframe-classless-dark-prefers.css +14 -15
  6. package/dist/css/bullframe-classless-dark-prefers.min.css +2 -2
  7. package/dist/css/bullframe-classless-dark-prefers.min.css.map +1 -1
  8. package/dist/css/bullframe-classless-dark.css +14 -15
  9. package/dist/css/bullframe-classless-dark.min.css +2 -2
  10. package/dist/css/bullframe-classless-dark.min.css.map +1 -1
  11. package/dist/css/bullframe-classless-system-default.css +14 -15
  12. package/dist/css/bullframe-classless-system-default.min.css +2 -2
  13. package/dist/css/bullframe-classless-system-default.min.css.map +1 -1
  14. package/dist/css/bullframe-classless.css +3 -4
  15. package/dist/css/bullframe-classless.min.css +2 -2
  16. package/dist/css/bullframe-classless.min.css.map +1 -1
  17. package/dist/css/bullframe-dark-prefers.css +20 -21
  18. package/dist/css/bullframe-dark-prefers.min.css +2 -2
  19. package/dist/css/bullframe-dark-prefers.min.css.map +1 -1
  20. package/dist/css/bullframe-dark.css +20 -21
  21. package/dist/css/bullframe-dark.min.css +2 -2
  22. package/dist/css/bullframe-dark.min.css.map +1 -1
  23. package/dist/css/bullframe-system-default.css +20 -21
  24. package/dist/css/bullframe-system-default.min.css +2 -2
  25. package/dist/css/bullframe-system-default.min.css.map +1 -1
  26. package/dist/css/bullframe-utilities.css +3 -3
  27. package/dist/css/bullframe-utilities.min.css +1 -1
  28. package/dist/css/bullframe-utilities.min.css.map +1 -1
  29. package/dist/css/bullframe.css +5 -6
  30. package/dist/css/bullframe.min.css +1 -1
  31. package/dist/css/bullframe.min.css.map +1 -1
  32. package/{index.html → docs/test-page/index.html} +146 -17
  33. package/gulpfile.js +31 -57
  34. package/netlify.toml +3 -0
  35. package/package.json +1 -1
  36. package/src/scss/bullframe-utilities.scss +1 -1
  37. package/docs/test/css/style.css +0 -130
  38. /package/docs/{images-readme → assets/images/branding}/logo-full.png +0 -0
  39. /package/docs/{test → test-page/assets}/icons/android-chrome-192x192.png +0 -0
  40. /package/docs/{test → test-page/assets}/icons/android-chrome-384x384.png +0 -0
  41. /package/docs/{test → test-page/assets}/icons/apple-touch-icon.png +0 -0
  42. /package/docs/{test → test-page/assets}/icons/favicon-16x16.png +0 -0
  43. /package/docs/{test → test-page/assets}/icons/favicon-32x32.png +0 -0
  44. /package/docs/{test → test-page/assets}/icons/favicon.ico +0 -0
  45. /package/docs/{test → test-page/assets}/icons/mstile-150x150.png +0 -0
  46. /package/docs/{test → test-page/assets}/icons/safari-pinned-tab.svg +0 -0
  47. /package/docs/{test → test-page/assets}/images/logo.png +0 -0
  48. /package/docs/{test → test-page/assets}/images/placeholder-img-130x140.jpg +0 -0
  49. /package/docs/{test → test-page/assets}/images/placeholder-img-16x16.jpg +0 -0
  50. /package/docs/{test → test-page/assets}/images/placeholder-img-800x400.jpg +0 -0
  51. /package/docs/{test → test-page/assets}/images/video-poster.png +0 -0
@@ -8,21 +8,150 @@
8
8
 
9
9
  <title>Test page — bullframe.css Sass (SCSS) framework</title>
10
10
  <meta name="description"
11
- content="A quick look at a wide range of HTML elements, divided into several sections and rendered into unusual combinations, for testing purposes only." />
11
+ content="Explore bullframe.css, a robust and fluid Sass (SCSS) framework for cross-browser compatibility. View a comprehensive range of HTML elements in dynamic combinations, designed for thorough testing and responsive design." />
12
12
 
13
13
  <!-- https://realfavicongenerator.net/ -->
14
- <link rel="apple-touch-icon" sizes="180x180" href="./docs/test/icons/apple-touch-icon.png?v=PYqzMzgx6v" />
15
- <link rel="icon" type="image/png" sizes="32x32" href="./docs/test/icons/favicon-32x32.png?v=PYqzMzgx6v" />
16
- <link rel="icon" type="image/png" sizes="16x16" href="./docs/test/icons/favicon-16x16.png?v=PYqzMzgx6v" />
17
- <link rel="mask-icon" href="./docs/test/icons/safari-pinned-tab.svg?v=PYqzMzgx6v" color="#f95c1f" />
18
- <link rel="shortcut icon" href="./docs/test/icons/favicon.ico?v=PYqzMzgx6v" />
14
+ <link rel="apple-touch-icon" sizes="180x180" href="assets/icons/apple-touch-icon.png?v=PYqzMzgx6v" />
15
+ <link rel="icon" type="image/png" sizes="32x32" href="assets/icons/favicon-32x32.png?v=PYqzMzgx6v" />
16
+ <link rel="icon" type="image/png" sizes="16x16" href="assets/icons/favicon-16x16.png?v=PYqzMzgx6v" />
17
+ <link rel="mask-icon" href="assets/icons/safari-pinned-tab.svg?v=PYqzMzgx6v" color="#f95c1f" />
18
+ <link rel="shortcut icon" href="assets/icons/favicon.ico?v=PYqzMzgx6v" />
19
19
  <meta name="msapplication-TileColor" content="#da532c" />
20
20
  <meta name="theme-color" content="#f95c1f" />
21
21
 
22
- <link rel="stylesheet" href="./dist/css/bullframe-system-default.min.css?v4.1.1" />
23
-
24
- <!-- this is just for a nicer demo -->
25
- <link rel="stylesheet" href="./docs/test/css/style.css" />
22
+ <link rel="stylesheet" href="./css/bullframe-system-default.min.css?v4.2.1" />
23
+
24
+ <!-- custom styles -->
25
+ <style>
26
+ .test .bf-row {
27
+ margin-bottom: 20px;
28
+ margin-bottom: 2rem;
29
+ }
30
+
31
+ .test [class^='bf-col'] {
32
+ margin-bottom: 10px;
33
+ margin-bottom: 1rem;
34
+ }
35
+
36
+ @media (max-width: 575px) {
37
+ .test header {
38
+ margin-bottom: 1rem;
39
+ }
40
+ }
41
+
42
+ .test header h1 {
43
+ margin-top: 10px;
44
+ margin-top: 1rem;
45
+ margin-bottom: 0;
46
+ }
47
+
48
+ .test header h1 span {
49
+ color: #f95c1f;
50
+ }
51
+
52
+ @media (min-width: 600px) {
53
+ .test header h1 {
54
+ font-size: 55px;
55
+ font-size: 5.5rem;
56
+ }
57
+ }
58
+
59
+ @media (min-width: 1000px) {
60
+ .test header h1 {
61
+ font-size: 70px;
62
+ font-size: 7rem;
63
+ }
64
+ }
65
+
66
+ .test .description {
67
+ max-width: 800px;
68
+ max-width: 80rem;
69
+ margin-left: auto;
70
+ margin-right: auto;
71
+ }
72
+
73
+ .test header a {
74
+ margin-right: 10px;
75
+ margin-right: 1rem;
76
+ }
77
+
78
+ @media (min-width: 600px) {
79
+ .test .h2--section {
80
+ font-size: 40px;
81
+ font-size: 4rem;
82
+ }
83
+ }
84
+
85
+ .test .h2--section {
86
+ padding-top: 20px;
87
+ padding-bottom: 2rem;
88
+ text-transform: uppercase;
89
+ }
90
+
91
+ .test legend {
92
+ padding-bottom: 10px;
93
+ padding-bottom: 1rem;
94
+ }
95
+
96
+ .test button,
97
+ .test .bf-btn,
98
+ .test .input-image,
99
+ .test input,
100
+ .test select,
101
+ .test textarea {
102
+ margin-bottom: 20px;
103
+ margin-bottom: 2rem;
104
+ }
105
+
106
+ .test [type='image'],
107
+ .test [type='checkbox'],
108
+ .test [type='radio'] {
109
+ margin-bottom: 0;
110
+ }
111
+
112
+ .test .grid .col-wrapper {
113
+ background-color: #888;
114
+ height: 60px;
115
+ height: 6rem;
116
+ line-height: 60px;
117
+ line-height: 6rem;
118
+ overflow-y: hidden;
119
+ color: #fff;
120
+ font-size: 80%;
121
+ text-align: center;
122
+ -webkit-border-radius: 3px;
123
+ border-radius: 3px;
124
+ font-weight: 700;
125
+ }
126
+
127
+ .test .grid .bf-row:nth-child(odd) .col-wrapper {
128
+ background-color: #ccc;
129
+ color: #000;
130
+ }
131
+
132
+ @media (max-width: 767px) {
133
+ .test .grid .bf-row {
134
+ margin-bottom: 0;
135
+ }
136
+
137
+ .test .grid [class*='bf-col-'] {
138
+ margin-bottom: 20px;
139
+ margin-bottom: 2rem;
140
+ }
141
+ }
142
+
143
+ .test .back-to-top {
144
+ text-align: center;
145
+ display: block;
146
+ margin: 60px 0 120px 0;
147
+ margin: 6rem 0 12rem 0;
148
+ }
149
+
150
+ .test .back-to-top a i {
151
+ vertical-align: middle;
152
+ font-style: normal;
153
+ }
154
+ </style>
26
155
  </head>
27
156
 
28
157
  <body class="bf-responsive-typography bf-reduced-motion">
@@ -35,9 +164,9 @@
35
164
  role="button">Download</a>
36
165
  <a class="bf-btn" href="https://github.com/marcop135/bullframe.css" role="button">GitHub</a>
37
166
  <p class="description">
38
- This an is a quick look at a wide range of HTML elements, divided into
167
+ This is a quick look at a wide range of HTML elements, divided into
39
168
  several sections and rendered into unusual combinations, for testing
40
- purpose only.
169
+ purposes only.
41
170
  </p>
42
171
 
43
172
  <hr />
@@ -95,7 +224,7 @@
95
224
  The <em>em element</em> example<br />
96
225
  The <em>i element</em> example<br />
97
226
  The img element
98
- <img src="../docs/test/images/placeholder-img-16x16.jpg" alt="just a placeholder" loading="lazy" />
227
+ <img src="../images/placeholder-img-16x16.jpg" alt="just a placeholder" loading="lazy" />
99
228
  example<br />
100
229
  The <ins>ins element</ins> example<br />
101
230
  The <kbd>kbd element</kbd> example<br />
@@ -323,7 +452,7 @@ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
323
452
  <h3>Linked figure with an image and a caption</h3>
324
453
  <figure>
325
454
  <a href="#">
326
- <img src="../docs/test/images/placeholder-img-800x40.jpg" alt="just a placeholder" loading="lazy" />
455
+ <img src="../images/placeholder-img-800x40.jpg" alt="just a placeholder" loading="lazy" />
327
456
  </a>
328
457
  <figcaption>The image above is 800x400 pixels</figcaption>
329
458
  </figure>
@@ -339,7 +468,7 @@ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
339
468
  <div class="bf-col-6">
340
469
  <div class="bf-m-b-3">
341
470
  <h3>HTML5 video with controls</h3>
342
- <video poster="./docs/test/images/video-poster.png" controls width="450">
471
+ <video poster="./images/video-poster.png" controls width="450">
343
472
  <source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm"
344
473
  type="video/webm" />
345
474
  <source src="https://interactive-examples.mdn.mozilla.net/media/cc0-videos/flower.webm"
@@ -616,7 +745,7 @@ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
616
745
  <h3>Clickable inputs</h3>
617
746
  <fieldset class="bf-m-b-3">
618
747
  <div class="input-image">
619
- <input alt="Image (input)" src="../docs/test/images/placeholder-img-130x14.jpg" type="image" /><br />
748
+ <input alt="Image (input)" src="../images/placeholder-img-130x14.jpg" type="image" /><br />
620
749
  <code>input type="image" (130x40px)</code>
621
750
  </div>
622
751
  <div>
@@ -639,7 +768,7 @@ Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor
639
768
  <fieldset disabled>
640
769
  <h3>Clickable inputs (disabled)</h3>
641
770
  <div class="input-image">
642
- <input alt="Image (input)" src="../docs/test/images/placeholder-img-130x14.jpg" type="image" /><br />
771
+ <input alt="Image (input)" src="../images/placeholder-img-130x14.jpg" type="image" /><br />
643
772
  <code>input type="image" (130x40px)</code>
644
773
  </div>
645
774
  <div>
package/gulpfile.js CHANGED
@@ -1,18 +1,12 @@
1
- // Gulp-starter repository
2
- // File processing boilerplate for HTML, Sass, JS, PNG, JPEG, GIF and SVG files with Gulp.js
3
- // https://github.com/marcop135/gulp-starter
4
1
  'use strict';
5
2
 
6
3
  // Initialize modules
7
- // Import specific gulp API functions lets us write them below as series()
8
- // instead of gulp.series()
9
4
  const { src, dest, watch, series, parallel } = require('gulp');
10
5
 
11
6
  // Upgrade gulp-sass to v5
12
- // https://github.com/dlmanning/gulp-sass/tree/master#migrating-to-version-5
13
7
  const sass = require('gulp-sass')(require('sass'));
14
8
 
15
- // Import all the Gulp-related packages we want to use
9
+ // Import all the Gulp-related packages
16
10
  const postcss = require('gulp-postcss');
17
11
  const autoprefixer = require('autoprefixer');
18
12
  const cssnano = require('cssnano');
@@ -22,7 +16,7 @@ const browserSync = require('browser-sync');
22
16
 
23
17
  const server = browserSync.create();
24
18
 
25
- // setup the BrowserSync server
19
+ // Setup the BrowserSync server
26
20
  function reload(done) {
27
21
  server.reload();
28
22
  done();
@@ -31,8 +25,8 @@ function reload(done) {
31
25
  function serve(done) {
32
26
  server.init({
33
27
  server: {
34
- baseDir: './',
35
- index: './index.html',
28
+ baseDir: './dist/',
29
+ index: '../docs/test-page/index.html',
36
30
  },
37
31
  });
38
32
  done();
@@ -40,61 +34,41 @@ function serve(done) {
40
34
 
41
35
  // File paths to watch
42
36
  const files = {
43
- htmlPath: './*.html',
44
37
  scssPath: 'src/scss/**/*.scss',
45
38
  };
46
39
 
47
40
  // Sass task
48
41
  function scssTask() {
49
- return (
50
- src(files.scssPath, {
51
- sourcemaps: true,
52
- })
53
- // compile SCSS to CSS
54
- .pipe(sass.sync({ outputStyle: 'expanded' }))
55
-
56
- // replace Node-sass auto-built charset with a useful comment
57
- // https://stackoverflow.com/a/51886455/4027098
58
- .pipe(
59
- replace(
60
- '@charset "UTF-8";',
61
- '/*! bullframe.css v4.1.2 | MIT License | https://github.com/marcop135/bullframe.css */'
62
- )
42
+ return src(files.scssPath, { sourcemaps: true })
43
+ .pipe(
44
+ sass.sync({ outputStyle: 'expanded' }).on('error', sass.logError)
45
+ ) // Compile SCSS to CSS
46
+ .pipe(
47
+ replace(
48
+ '@charset "UTF-8";',
49
+ '/*! bullframe.css v4.2.1 | MIT License | https://github.com/marcop135/bullframe.css */'
63
50
  )
64
-
65
- // PostCSS plugins
66
- .pipe(postcss([autoprefixer()]))
67
-
68
- // write pre-minifies styles
69
- .pipe(dest('dist/css'))
70
-
71
- // PostCSS plugins
72
- .pipe(postcss([cssnano()]))
73
-
74
- // rename files
75
- .pipe(
76
- rename({
77
- suffix: '.min',
78
- })
79
- )
80
-
81
- // put final CSS in dist folder
82
- .pipe(
83
- dest('dist/css', {
84
- sourcemaps: '.',
85
- })
86
- )
87
- );
51
+ ) // Replace Node-sass auto-built charset with a useful comment
52
+ .pipe(postcss([autoprefixer()])) // Apply PostCSS plugins
53
+ .pipe(dest('dist/css')) // Write pre-minified styles
54
+ .pipe(postcss([cssnano()])) // Minify CSS
55
+ .pipe(
56
+ rename({
57
+ suffix: '.min',
58
+ })
59
+ ) // Rename files
60
+ .pipe(dest('dist/css', { sourcemaps: '.' })); // Output final CSS
88
61
  }
89
62
 
90
- // watch task: watch SCSS, JS, image and HTML files for changes
91
- // If any change, run scss, js and image tasks simultaneously
92
- // then reload via browsersync
63
+
64
+ // Watch task: watch SCSS, JS, image, and HTML files for changes
93
65
  function watchTask() {
94
- watch([files.htmlPath, files.scssPath], series(parallel(scssTask), reload));
66
+ watch([files.scssPath], series(parallel(scssTask), reload));
95
67
  }
96
68
 
97
- // Export the default Gulp task so it can be run
98
- // Runs the scss, js, image and cache busting tasks simultaneously
99
- // start local server and watch tasks
100
- exports.default = series(parallel(scssTask), serve, watchTask);
69
+ // Export the default Gulp task
70
+ exports.default = series(
71
+ parallel(scssTask),
72
+ serve,
73
+ watchTask
74
+ );
package/netlify.toml ADDED
@@ -0,0 +1,3 @@
1
+ [build]
2
+ base = "/"
3
+ publish = "dist/"
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bullframe.css",
3
- "version": "4.1.2",
3
+ "version": "4.2.1",
4
4
  "description": "Solid, fluid, cross-browser Sass (SCSS) framework.",
5
5
  "jsdelivr": "dist/css/bullframe.css",
6
6
  "unpkg": "dist/css/bullframe.css",
@@ -1,4 +1,4 @@
1
- /*! bullframe.css v4.1.2 | MIT License | https://github.com/marcop135/bullframe.css */
1
+ /*! bullframe.css v4.2.1 | MIT License | https://github.com/marcop135/bullframe.css */
2
2
  /* custom build: bullframe-utilities */
3
3
 
4
4
  // colors, spacing and breakpoint variables
@@ -1,130 +0,0 @@
1
- /* just for a nicer demo */
2
-
3
- .test .bf-row {
4
- margin-bottom: 20px;
5
- margin-bottom: 2rem;
6
- }
7
-
8
- .test [class^="bf-col"] {
9
- margin-bottom: 10px;
10
- margin-bottom: 1rem;
11
- }
12
-
13
- @media (max-width: 575px) {
14
- .test header {
15
- margin-bottom: 1rem;
16
- }
17
- }
18
-
19
- .test header h1 {
20
- margin-top: 10px;
21
- margin-top: 1rem;
22
- margin-bottom: 0;
23
- }
24
-
25
- .test header h1 span {
26
- color: #f95c1f
27
- }
28
-
29
- @media (min-width: 600px) {
30
- .test header h1 {
31
- font-size: 55px;
32
- font-size: 5.5rem;
33
- }
34
- }
35
-
36
- @media (min-width: 1000px) {
37
- .test header h1 {
38
- font-size: 70px;
39
- font-size: 7rem;
40
- }
41
- }
42
-
43
- .test .description {
44
- max-width: 800px;
45
- max-width: 80rem;
46
- margin-left: auto;
47
- margin-right: auto;
48
- }
49
-
50
- .test header a {
51
- margin-right: 10px;
52
- margin-right: 1rem;
53
- }
54
-
55
- @media (min-width: 600px) {
56
- .test .h2--section {
57
- font-size: 40px;
58
- font-size: 4rem;
59
- }
60
- }
61
-
62
- .test .h2--section {
63
- padding-top: 20px;
64
- padding-bottom: 2rem;
65
- text-transform: uppercase;
66
- }
67
-
68
- .test legend {
69
- padding-bottom: 10px;
70
- padding-bottom: 1rem;
71
- }
72
-
73
- .test button,
74
- .test .bf-btn,
75
- .test .input-image,
76
- .test input,
77
- .test select,
78
- .test textarea {
79
- margin-bottom: 20px;
80
- margin-bottom: 2rem;
81
- }
82
-
83
- .test [type="image"],
84
- .test [type="checkbox"],
85
- .test [type="radio"] {
86
- margin-bottom: 0;
87
- }
88
-
89
- .test .grid .col-wrapper {
90
- background-color: #888;
91
- height: 60px;
92
- height: 6rem;
93
- line-height: 60px;
94
- line-height: 6rem;
95
- overflow-y: hidden;
96
- color: #fff;
97
- font-size: 80%;
98
- text-align: center;
99
- -webkit-border-radius: 3px;
100
- border-radius: 3px;
101
- font-weight: 700;
102
- }
103
-
104
- .test .grid .bf-row:nth-child(odd) .col-wrapper {
105
- background-color: #ccc;
106
- color: #000;
107
- }
108
-
109
- @media (max-width: 767px) {
110
- .test .grid .bf-row {
111
- margin-bottom: 0;
112
- }
113
-
114
- .test .grid [class*="bf-col-"] {
115
- margin-bottom: 20px;
116
- margin-bottom: 2rem;
117
- }
118
- }
119
-
120
- .test .back-to-top {
121
- text-align: center;
122
- display: block;
123
- margin: 60px 0 120px 0;
124
- margin: 6rem 0 12rem 0;
125
- }
126
-
127
- .test .back-to-top a i {
128
- vertical-align: middle;
129
- font-style: normal;
130
- }
File without changes