bullframe.css 3.8.0 → 4.0.0
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/.browserslistrc +5 -5
- package/.stylelintrc.json +10 -0
- package/CHANGELOG.md +28 -7
- package/LICENSE +20 -20
- package/README.md +25 -171
- package/dist/css/bullframe-classless-dark-prefers.css +357 -434
- package/dist/css/bullframe-classless-dark-prefers.min.css +2 -3
- package/dist/css/bullframe-classless-dark-prefers.min.css.map +1 -1
- package/dist/css/bullframe-classless-dark.css +328 -421
- package/dist/css/bullframe-classless-dark.min.css +2 -3
- package/dist/css/bullframe-classless-dark.min.css.map +1 -1
- package/dist/css/bullframe-classless.css +237 -302
- package/dist/css/bullframe-classless.min.css +2 -2
- package/dist/css/bullframe-classless.min.css.map +1 -1
- package/dist/css/bullframe-dark-prefers.css +468 -642
- package/dist/css/bullframe-dark-prefers.min.css +2 -2
- package/dist/css/bullframe-dark-prefers.min.css.map +1 -1
- package/dist/css/bullframe-dark.css +402 -602
- package/dist/css/bullframe-dark.min.css +2 -2
- package/dist/css/bullframe-dark.min.css.map +1 -1
- package/dist/css/bullframe-utilities.css +87 -125
- package/dist/css/bullframe-utilities.min.css +1 -1
- package/dist/css/bullframe-utilities.min.css.map +1 -1
- package/dist/css/bullframe.css +288 -464
- package/dist/css/bullframe.min.css +1 -1
- package/dist/css/bullframe.min.css.map +1 -1
- package/docs/test/css/style.css +130 -130
- package/docs/test/icons/safari-pinned-tab.svg +28 -28
- package/docs/test/js/vendor/html5shiv.js +335 -335
- package/docs/test/js/vendor/ie10-viewport-bug-workaround.js +20 -20
- package/gulpfile.js +5 -2
- package/index.html +1214 -1223
- package/package.json +14 -7
- package/src/scss/bullframe-classless-dark-prefers.scss +5 -5
- package/src/scss/bullframe-classless-dark.scss +5 -5
- package/src/scss/bullframe-classless.scss +1 -9
- package/src/scss/bullframe-dark-prefers.scss +4 -4
- package/src/scss/bullframe-dark.scss +4 -4
- package/src/scss/bullframe-utilities.scss +18 -18
- package/src/scss/bullframe.scss +0 -7
- package/src/scss/forms/_forms-normalization.scss +4 -2
- package/src/scss/forms/_forms-styling-radio-checkbox.scss +84 -85
- package/src/scss/forms/_forms-styling-range.scss +99 -103
- package/src/scss/forms/_forms-styling-select.scss +63 -63
- package/src/scss/forms/_forms-styling.scss +119 -121
- package/src/scss/miscellaneous/_misc-focus.scss +0 -1
- package/src/scss/miscellaneous/_misc-layout.scss +1 -36
- package/src/scss/mixins/_mixin-grid-flex.scss +83 -83
- package/src/scss/mixins/_mixin-layout.scss +42 -42
- package/src/scss/mixins/_mixin-texts.scss +38 -37
- package/src/scss/typography/_typography-blockquotes.scss +23 -23
- package/src/scss/typography/_typography-headings.scss +43 -43
- package/src/scss/typography/_typography-html-body.scss +72 -72
- package/src/scss/typography/_typography-misc.scss +3 -3
- package/src/scss/typography/_typography-monospaced-elements.scss +50 -56
- package/src/scss/utilities/_utility-buttons.scss +71 -71
- package/src/scss/utilities/_utility-embeds.scss +34 -34
- package/src/scss/utilities/_utility-filters.scss +24 -24
- package/src/scss/utilities/_utility-form-states.scss +80 -80
- package/src/scss/utilities/_utility-global-dark-classless.scss +157 -169
- package/src/scss/utilities/_utility-global-dark-prefers-classless.scss +3 -3
- package/src/scss/utilities/_utility-global-dark-prefers.scss +3 -3
- package/src/scss/utilities/_utility-global-dark-scrollbars.scss +29 -29
- package/src/scss/utilities/_utility-global-dark.scss +213 -224
- package/src/scss/utilities/_utility-grid-system.scss +204 -204
- package/src/scss/utilities/_utility-layout.scss +195 -196
- package/src/scss/utilities/_utility-lists.scss +17 -17
- package/src/scss/utilities/_utility-print.scss +101 -111
- package/src/scss/utilities/_utility-reduced-motion.scss +29 -29
- package/src/scss/utilities/_utility-tables.scss +40 -40
- package/src/scss/utilities/_utility-texts.scss +199 -199
- package/src/scss/utilities/_utility-z-index.scss +82 -82
- package/src/scss/variables/_variables-breakpoints.scss +5 -5
- package/src/scss/variables/_variables-colors.scss +31 -31
- package/src/scss/variables/_variables-spacing.scss +25 -25
- package/src/scss/variables/_variables-texts.scss +12 -12
- package/dist/css/bullframe-classless-dark-ie10+.css +0 -1330
- package/dist/css/bullframe-classless-dark-ie10+.min.css +0 -4
- package/dist/css/bullframe-classless-dark-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-classless-dark-prefers-ie10+.css +0 -1310
- package/dist/css/bullframe-classless-dark-prefers-ie10+.min.css +0 -4
- package/dist/css/bullframe-classless-dark-prefers-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-classless-ie10+.css +0 -1093
- package/dist/css/bullframe-classless-ie10+.min.css +0 -3
- package/dist/css/bullframe-classless-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-dark-ie10+.css +0 -2578
- package/dist/css/bullframe-dark-ie10+.min.css +0 -3
- package/dist/css/bullframe-dark-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-dark-prefers-ie10+.css +0 -2550
- package/dist/css/bullframe-dark-prefers-ie10+.min.css +0 -3
- package/dist/css/bullframe-dark-prefers-ie10+.min.css.map +0 -1
- package/dist/css/bullframe-ie10+.css +0 -2259
- package/dist/css/bullframe-ie10+.min.css +0 -2
- package/dist/css/bullframe-ie10+.min.css.map +0 -1
- package/docs/images-readme/browserstack-logo.png +0 -0
- package/src/scss/bullframe-classless-dark-ie10+.scss +0 -5
- package/src/scss/bullframe-classless-dark-prefers-ie10+.scss +0 -5
- package/src/scss/bullframe-classless-ie10+.scss +0 -43
- package/src/scss/bullframe-dark-ie10+.scss +0 -4
- package/src/scss/bullframe-dark-prefers-ie10+.scss +0 -4
- package/src/scss/bullframe-ie10+.scss +0 -121
- package/src/scss/forms/_forms-styling-ie-hacks.scss +0 -56
- package/src/scss/forms/_forms-styling-select-ie-hacks.scss +0 -30
package/.browserslistrc
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
# https://github.com/browserslist/browserslist#readme
|
|
2
|
-
|
|
3
|
-
last 2 major versions
|
|
4
|
-
not dead
|
|
5
|
-
ie 6-8
|
|
1
|
+
# https://github.com/browserslist/browserslist#readme
|
|
2
|
+
|
|
3
|
+
last 2 major versions
|
|
4
|
+
not dead
|
|
5
|
+
ie 6-8
|
|
6
6
|
iOS 7
|
package/CHANGELOG.md
CHANGED
|
@@ -1,9 +1,30 @@
|
|
|
1
1
|
# Changes to bullframe.css
|
|
2
2
|
|
|
3
|
+
## 4.0.0 (August 11, 2022)
|
|
4
|
+
|
|
5
|
+
* [breaking changes] **Dropped support for I8, IE9, and IE10 support**
|
|
6
|
+
* [breaking changes] Upgraded all npm packages to minor and major latest versions (e.g. gulp-sass v5 now in use)
|
|
7
|
+
* Cleaned up `README.md`
|
|
8
|
+
|
|
9
|
+
## 3.8.2 (June 26, 2021)
|
|
10
|
+
|
|
11
|
+
* Upgraded cssnano, autoprefixer and postcss plugins to major versions [(a6a9ecc)](https://github.com/marcop135/bullframe.css/commit/a6a9ecc3b52a30e1a5c4408967268d22f46a8e2c)
|
|
12
|
+
* Cleaned up `README.md`
|
|
13
|
+
|
|
14
|
+
## 3.8.1 (June 22, 2021)
|
|
15
|
+
|
|
16
|
+
* [bug fixes] Add missing compiled CSS files
|
|
17
|
+
|
|
18
|
+
## 3.8.0 (June 22, 2021)
|
|
19
|
+
|
|
20
|
+
* [breaking changes] Reverted html/body `height` and `body` `min-height` to `auto` (default value) to avoid web app scrollbar issues
|
|
21
|
+
* Added support for Skypack CDN
|
|
22
|
+
* Added Synk vuln badge in `README.md`
|
|
23
|
+
|
|
3
24
|
## 3.7.0 (April 24, 2021)
|
|
4
25
|
|
|
5
26
|
* [breaking changes] Set html/body `height` and `body` `min-height` to `100%` to help with backgrounds and centering [(8239677)](https://github.com/marcop135/bullframe.css/)
|
|
6
|
-
* [bug fixes]
|
|
27
|
+
* [bug fixes] Added missing margin/padding spacing utilities to `utility-spacing.scss` [(e1cdf4c)](https://github.com/marcop135/bullframe.css/commit/e1cdf4ccfd70662a3d1babe2d5d0457b8ef6e569)
|
|
7
28
|
* [enhancements] Removed W3C-invalid CSS properties/values from SCSS files [(2791b83)](https://github.com/marcop135/bullframe.css/commit/2791b83eab872abe92a2fd6cc3b3bc8d684fcc36)
|
|
8
29
|
* [enhancements] Added Sass [@debug](https://sass-lang.com/documentation/at-rules/debug) rule to debugging utility [(969fcf3c)](https://github.com/marcop135/bullframe.css/commit/969fcf3ccb474f5bc5888841d479216b3e54de0a)
|
|
9
30
|
|
|
@@ -52,7 +73,7 @@
|
|
|
52
73
|
|
|
53
74
|
## 3.3.9 (November 29, 2020)
|
|
54
75
|
|
|
55
|
-
* fixed broken anchors and URLs in README.md
|
|
76
|
+
* fixed broken anchors and URLs in `README.md`
|
|
56
77
|
|
|
57
78
|
## 3.3.8 (November 29, 2020)
|
|
58
79
|
|
|
@@ -77,10 +98,10 @@
|
|
|
77
98
|
|
|
78
99
|
## 3.3.4 (September 03, 2020)
|
|
79
100
|
|
|
80
|
-
* added an utilities reference in README.md
|
|
101
|
+
* added an utilities reference in `README.md`
|
|
81
102
|
* fixed a grid system [bug](https://github.com/marcop135/bullframe.css/commit/d26c1dd21c808bda6472913073c72a8048a56d8f) related to `.bf-col-3` and `bf-col-4` utilities
|
|
82
103
|
* added support for GitHub Packages registry
|
|
83
|
-
* added UNPKG CDN in README.md
|
|
104
|
+
* added UNPKG CDN in `README.md`
|
|
84
105
|
|
|
85
106
|
## 3.3.3 (July 22, 2020)
|
|
86
107
|
|
|
@@ -92,7 +113,7 @@
|
|
|
92
113
|
|
|
93
114
|
## 3.3.1 (July 22, 2020)
|
|
94
115
|
|
|
95
|
-
* fixed "What's included" and "Gulp.js" sections in README.md
|
|
116
|
+
* fixed "What's included" and "Gulp.js" sections in `README.md`
|
|
96
117
|
* fixed JSDelivr `package.json` settings
|
|
97
118
|
* minor code improvements
|
|
98
119
|
|
|
@@ -116,7 +137,7 @@
|
|
|
116
137
|
* added `progress` normalization
|
|
117
138
|
* added dark theme scrollbars normalization
|
|
118
139
|
* added webkit/blink/gecko/trident screenshots/screencasts
|
|
119
|
-
* added quick overview of the utilities in README.md
|
|
140
|
+
* added quick overview of the utilities in `README.md`
|
|
120
141
|
* added more examples in `index.html`
|
|
121
142
|
* added SCSS file structure improvements
|
|
122
143
|
* added responsive typography improvements
|
|
@@ -153,7 +174,7 @@
|
|
|
153
174
|
* added responsive typography
|
|
154
175
|
* added custom `select`
|
|
155
176
|
* added custom radios and checkboxes
|
|
156
|
-
* added much more information in README.md
|
|
177
|
+
* added much more information in `README.md`
|
|
157
178
|
* added CONTRIBUTING.md
|
|
158
179
|
* added CODE_OF_CONDUCT.md
|
|
159
180
|
* ...and much more!
|
package/LICENSE
CHANGED
|
@@ -1,21 +1,21 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2021 Marco Pontili
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2021 Marco Pontili
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
21
|
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -12,25 +12,19 @@
|
|
|
12
12
|
|
|
13
13
|
[https://github.com/marcop135/bullframe.css](https://github.com/marcop135/bullframe.css)
|
|
14
14
|
|
|
15
|
-
bullframe.css is a Sass (SCSS) framework that works in
|
|
15
|
+
bullframe.css is a Sass (SCSS) framework that works in a wide range of desktop and mobile browsers.
|
|
16
|
+
It's a cross-browser and responsive collection of default HTML UI elements ([atoms](https://bradfrost.com/blog/post/atomic-web-design)) for your Sass project.
|
|
17
|
+
It could be easily used for marketing pages, blog posts, e-commerce product listings, help and documentation.
|
|
16
18
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
1. Add a good HTML template
|
|
20
|
-
2. Write semantic HTML5
|
|
21
|
-
3. Add a few utility classes (optional)
|
|
22
|
-
4. Add JS polyfills (optional)
|
|
23
|
-
5. _...ready to go everywhere!_
|
|
24
|
-
|
|
25
|
-
<br>
|
|
19
|
+
**Just add bullframe.css, write semantic HTML5, and you are ready to go everywhere!**
|
|
26
20
|
|
|
27
21
|
## Best features
|
|
28
22
|
|
|
29
|
-
-
|
|
23
|
+
- Wide range of desktop and mobile browsers support
|
|
30
24
|
- Add responsive-ness and normalize as much as possible HTML elements *out-of-the-box*
|
|
31
25
|
- Progressive responsive web design focused
|
|
32
26
|
- Responsive, cross-browser, HTML5 form elements by default
|
|
33
|
-
- A simple 12-columns fluid grid system
|
|
27
|
+
- A simple 12-columns fluid grid system
|
|
34
28
|
- Sass architecture
|
|
35
29
|
- CSS BEM
|
|
36
30
|
- Responsive typography
|
|
@@ -40,19 +34,6 @@ It's a cross-browser, responsive, IE8+ collection of default HTML UI elements ([
|
|
|
40
34
|
- Isolated utility classes to avoid conflicts between frameworks' classes
|
|
41
35
|
- [`bullframe-classless.min.css`](https://github.com/marcop135/bullframe.css/blob/master/dist/css/bullframe-classless.min.css) is just 10KB~ min+gzip 🎉
|
|
42
36
|
|
|
43
|
-
## Internet Explorer usage and support
|
|
44
|
-
|
|
45
|
-
Do people still use Internet Explorer?
|
|
46
|
-
|
|
47
|
-
Short answer: **yes!** Enterprise-level companies, legacy business applications, accessibility-focused projects and some non-tech-savvy older people.
|
|
48
|
-
[Long answer](https://www.quora.com/Do-people-still-use-Internet-Explorer-in-2020)
|
|
49
|
-
|
|
50
|
-
[Browser worldwide usage comparison](https://gs.statcounter.com/browser-market-share/desktop/worldwide#monthly-201904-202004-bar)
|
|
51
|
-
|
|
52
|
-
Read this [Lea Verou’s Twitter thread](https://twitter.com/LeaVerou/status/1246252696602128384) to get more developers' points of view.
|
|
53
|
-
|
|
54
|
-
Bootstrap v5 [dropped IE10 and IE11 support](https://github.com/twbs/bootstrap/pull/30377). Read the [Hacker News thread](https://news.ycombinator.com/item?id=22802003).
|
|
55
|
-
|
|
56
37
|
## What's included
|
|
57
38
|
|
|
58
39
|
You'll see something like this:
|
|
@@ -97,10 +78,6 @@ bullframe.css/
|
|
|
97
78
|
...
|
|
98
79
|
```
|
|
99
80
|
|
|
100
|
-
<br>
|
|
101
|
-
|
|
102
|
-
---
|
|
103
|
-
|
|
104
81
|
## Getting started
|
|
105
82
|
|
|
106
83
|
### Download
|
|
@@ -109,14 +86,18 @@ bullframe.css/
|
|
|
109
86
|
|
|
110
87
|
### CDN
|
|
111
88
|
|
|
112
|
-
Get the latest release of the main build
|
|
113
|
-
|
|
114
89
|
JSDelivr (latest release, ready for production)
|
|
115
90
|
|
|
116
91
|
```html
|
|
117
92
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bullframe.css">
|
|
118
93
|
```
|
|
119
94
|
|
|
95
|
+
Skypack (latest release, ready for production)
|
|
96
|
+
|
|
97
|
+
```html
|
|
98
|
+
<link rel="stylesheet" href="https://cdn.skypack.dev/bullframe.css/dist/css/bullframe.min.css">
|
|
99
|
+
```
|
|
100
|
+
|
|
120
101
|
UNPKG (latest release, not ready for production)
|
|
121
102
|
|
|
122
103
|
```html
|
|
@@ -156,55 +137,6 @@ gulp
|
|
|
156
137
|
|
|
157
138
|
### HTML
|
|
158
139
|
|
|
159
|
-
Add some HTML markup, and two JS polyfills (if you need a wide cross-browser support).
|
|
160
|
-
|
|
161
|
-
Tip: if you need min/max-width CSS3 Media Queries support in IE8 (e.g. mobile-first responsive design), you could polyfill it with [respond.js](https://github.com/scottjehl/Respond).
|
|
162
|
-
|
|
163
|
-
Tip: Improve the JS polyfills security via the `integrity` and `crossorigin` attributes. [Read more](https://stackoverflow.com/questions/32039568/what-are-the-integrity-and-crossorigin-attributes)
|
|
164
|
-
|
|
165
|
-
Caveats: [IE8 and Respond.js](https://getbootstrap.com/docs/3.4/getting-started/#support-ie8-respondjs) caveats.
|
|
166
|
-
|
|
167
|
-
#### All browsers - IE8+
|
|
168
|
-
|
|
169
|
-
```html
|
|
170
|
-
<!doctype html>
|
|
171
|
-
<html lang="en">
|
|
172
|
-
<head>
|
|
173
|
-
<meta charset="utf-8">
|
|
174
|
-
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
175
|
-
<title>bullframe.css starter template</title>
|
|
176
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
177
|
-
|
|
178
|
-
<!-- bullframe.css: use latest compiled and minified version -->
|
|
179
|
-
<link
|
|
180
|
-
type="text/css"
|
|
181
|
-
rel="stylesheet"
|
|
182
|
-
href="https://cdn.jsdelivr.net/npm/bullframe.css/dist/css/bullframe.min.css"
|
|
183
|
-
integrity="sha384-HpmTC4+Y1tpRsyC0caOaOtsqEfBQqC12iB2WOT0CAHGE116qurJw2PwlJI62SIUH"
|
|
184
|
-
crossorigin="anonymous">
|
|
185
|
-
|
|
186
|
-
<!-- polyfills: enable HTML5 elements in old browsers, and fix IE10 viewport on Windows 8 -->
|
|
187
|
-
<script
|
|
188
|
-
src="https://cdn.jsdelivr.net/combine/npm/html5shiv@3.7.3,npm/ie10-viewport-bug-workaround.js@1.0.0"
|
|
189
|
-
integrity="sha384-qBVh9Nh9vwp+qqJMBTOrfjBPwz5RMDGc4lscK3+4F6dtIUo89TeUhS9wiDPhgpi5"
|
|
190
|
-
crossorigin="anonymous"
|
|
191
|
-
></script>
|
|
192
|
-
</head>
|
|
193
|
-
|
|
194
|
-
<body>
|
|
195
|
-
<div class="bf-container">
|
|
196
|
-
<!-- Add your site or application content here -->
|
|
197
|
-
<p>Hello world! This is a bullframe.css IE8+ starter template</p>
|
|
198
|
-
</div>
|
|
199
|
-
|
|
200
|
-
</body>
|
|
201
|
-
</html>
|
|
202
|
-
```
|
|
203
|
-
|
|
204
|
-
#### IE11 and modern browsers
|
|
205
|
-
|
|
206
|
-
Improve the JS polyfills security via the `integrity` and `crossorigin` attributes. [Read more](https://stackoverflow.com/questions/32039568/what-are-the-integrity-and-crossorigin-attributes)
|
|
207
|
-
|
|
208
140
|
```html
|
|
209
141
|
<!doctype html>
|
|
210
142
|
<html lang="en">
|
|
@@ -215,17 +147,14 @@ Improve the JS polyfills security via the `integrity` and `crossorigin` attribut
|
|
|
215
147
|
|
|
216
148
|
<!-- bullframe.css: use latest compiled and minified version -->
|
|
217
149
|
<link
|
|
218
|
-
type="text/css"
|
|
219
150
|
rel="stylesheet"
|
|
220
|
-
href="https://cdn.jsdelivr.net/npm/bullframe.css/dist/css/bullframe-ie10+.min.css"
|
|
221
|
-
integrity="sha384-EfcW9YC4HRjVRc1MalllL1YMixPPE9Uu47eUGKvM8mHU+u16QvYZeS5JzLa93lxm"
|
|
222
|
-
crossorigin="anonymous">
|
|
151
|
+
href="https://cdn.jsdelivr.net/npm/bullframe.css/dist/css/bullframe-ie10+.min.css">
|
|
223
152
|
</head>
|
|
224
153
|
|
|
225
154
|
<body>
|
|
226
155
|
<div class="bf-container">
|
|
227
156
|
<!-- Add your site or application content here -->
|
|
228
|
-
<p>Hello world! This is a bullframe.css
|
|
157
|
+
<p>Hello world! This is a bullframe.css starter template</p>
|
|
229
158
|
</div>
|
|
230
159
|
|
|
231
160
|
</body>
|
|
@@ -244,15 +173,13 @@ Click on the links below, and start a new pen in CodePen using bullframe.css.
|
|
|
244
173
|
- [Dark theme](https://codepen.io/pen?template=ExPmzBV)
|
|
245
174
|
- [Dark `prefers-color-scheme`](https://codepen.io/pen?template=NWxjVQO)
|
|
246
175
|
|
|
247
|
-
<br>
|
|
248
|
-
|
|
249
|
-
---
|
|
250
|
-
|
|
251
176
|
## Customization
|
|
252
177
|
|
|
253
178
|
### No classes (class-less)
|
|
254
179
|
|
|
180
|
+
What means "classless"?
|
|
255
181
|
No classes, no utilities. Feel free to add yours and create your custom components.
|
|
182
|
+
Read more on [css-tricks.com](https://css-tricks.com/no-class-css-frameworks/).
|
|
256
183
|
|
|
257
184
|
Just drop the snippet below in the `<head>` of your webpage, and the job is done!
|
|
258
185
|
Write semantic HTML and get nice styles and cross-browser normalization.
|
|
@@ -260,14 +187,12 @@ Write semantic HTML and get nice styles and cross-browser normalization.
|
|
|
260
187
|
```html
|
|
261
188
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bullframe.css/dist/css/bullframe-classless.min.css">
|
|
262
189
|
|
|
263
|
-
<!--
|
|
190
|
+
<!-- Center the page (optional) -->
|
|
264
191
|
<style>
|
|
265
192
|
body {
|
|
266
193
|
margin-left: auto;
|
|
267
194
|
margin-right: auto;
|
|
268
|
-
padding: 15px; /* for old IE only */
|
|
269
195
|
padding: 1.5rem;
|
|
270
|
-
max-width: 800px; /* for old IE only */
|
|
271
196
|
max-width: 80rem;
|
|
272
197
|
}
|
|
273
198
|
</style>
|
|
@@ -296,27 +221,13 @@ CDN
|
|
|
296
221
|
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bullframe.css/dist/css/bullframe-dark-prefers.min.css">
|
|
297
222
|
```
|
|
298
223
|
|
|
299
|
-
### No IE hacks, IE10+
|
|
300
|
-
|
|
301
|
-
I used some IE hacks to fix form elements in IE8 and IE9.
|
|
302
|
-
If you don't like hacks in your (S)CSS code, there are six IE10+ builds (e.g. `bullframe-ie10+.css` or `bullframe-utilities-ie10+.css`) where IE8-9 hacks are removed.
|
|
303
|
-
|
|
304
|
-
CDN
|
|
305
|
-
|
|
306
|
-
```html
|
|
307
|
-
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bullframe.css/dist/css/bullframe-ie10+.min.css">
|
|
308
|
-
```
|
|
309
|
-
|
|
310
224
|
### Utilities - Reference
|
|
311
225
|
|
|
312
226
|
A set of utilities to create and customise bullframe.css:
|
|
313
227
|
|
|
314
|
-
<details>
|
|
315
|
-
<summary><strong>Show section</strong></summary>
|
|
316
|
-
|
|
317
228
|
#### Grid system
|
|
318
229
|
|
|
319
|
-
|
|
230
|
+
*Breakpoints: 576, 768, 992 and 1200 pixels*
|
|
320
231
|
|
|
321
232
|
| Utility class | Description |
|
|
322
233
|
| ------------- | ----------- |
|
|
@@ -340,40 +251,6 @@ A simple but powerful IE8+ flexible Grid System (+ a Flexbox IE10+ alternative)
|
|
|
340
251
|
| `.bf-col-12` | Sets a floated container with a custom padding and a `width` of `100%` |
|
|
341
252
|
| `.no-gutters` | Set `margin-left`, `margin-right`, `padding-left` and `padding-right` to `0` — to be applied to row and column containers |
|
|
342
253
|
|
|
343
|
-
Breakpoints: 576, 768, 992 and 1200 pixels
|
|
344
|
-
|
|
345
|
-
##### Grid system with Flexbox (IE10+)
|
|
346
|
-
|
|
347
|
-
You may use `/mixins/_mixin-grid-flex.scss` mixins to easily create a Grid System in Flexbox with no extra HTML classes.
|
|
348
|
-
|
|
349
|
-
Add some `margin` as a gutter where needed.
|
|
350
|
-
|
|
351
|
-
``` scss
|
|
352
|
-
// create a Flexbox parent
|
|
353
|
-
@mixin flex-container {
|
|
354
|
-
display: flex !important;
|
|
355
|
-
flex-wrap: wrap !important;
|
|
356
|
-
}
|
|
357
|
-
|
|
358
|
-
// Make a child 50% of the width
|
|
359
|
-
@mixin flex-50 {
|
|
360
|
-
flex: 0 0 100% !important;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
// Make a child 70% of the width
|
|
364
|
-
@mixin flex-70 {
|
|
365
|
-
flex: 0 0 70% !important;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
// Make a child 25% of the width
|
|
369
|
-
@mixin flex-25 {
|
|
370
|
-
flex: 0 0 25% !important;
|
|
371
|
-
}
|
|
372
|
-
|
|
373
|
-
...
|
|
374
|
-
...
|
|
375
|
-
```
|
|
376
|
-
|
|
377
254
|
#### Layout
|
|
378
255
|
|
|
379
256
|
| Utility class | Description |
|
|
@@ -477,9 +354,9 @@ Add some `margin` as a gutter where needed.
|
|
|
477
354
|
| `.bf-t-weight-700` | Sets `font-weight` to `700` (AKA bold) |
|
|
478
355
|
| `.bf-t-weight-800` | Sets `font-weight` to `800` (AKA black) |
|
|
479
356
|
| `.bf-text-break` | Sets `word-wrap` to a `break-word`, applied by default to the `body` |
|
|
480
|
-
| `.bf-
|
|
481
|
-
| `.bf-
|
|
482
|
-
| `.bf-
|
|
357
|
+
| `.bf-t-truncate` | Truncates a very long text and replaces the missing text with an ellipsis |
|
|
358
|
+
| `.bf-t-truncate--multiline-2` | Truncates a long doubled line text and replaces the missing text with an ellipsis (no IE) |
|
|
359
|
+
| `.bf-t-truncate--multiline-3` | Truncates a long tripled line text and replaces the missing text with an ellipsis (no IE) |
|
|
483
360
|
| `.bf-no-select` | Blocks user text selection |
|
|
484
361
|
| `.bf-font-sans-serif` | Sets `font-family` to a `sans-serif`, and a combination of cross-browser system UI sans-serif font families |
|
|
485
362
|
| `.bf-font-serif` | Sets `font-family` to a `serif`, and a combination of cross-browser system UI serif font families |
|
|
@@ -491,7 +368,7 @@ Add some `margin` as a gutter where needed.
|
|
|
491
368
|
| `.bf-h5` | Matches the font styling of a `h5` |
|
|
492
369
|
| `.bf-h6` | Matches the font styling of a `h6` |
|
|
493
370
|
| `.bf-lead` | Sets `font-size` to `125%` |
|
|
494
|
-
| `.bf-responsive-typography` | Scales `font-size` from a minimum of `1.6rem` (AKA 16px) to a maximum of `1.9rem` using `calc` and some `CSS custom properties
|
|
371
|
+
| `.bf-responsive-typography` | Scales `font-size` from a minimum of `1.6rem` (AKA 16px) to a maximum of `1.9rem` using `calc` and some `CSS custom properties` |
|
|
495
372
|
|
|
496
373
|
#### Lists
|
|
497
374
|
|
|
@@ -537,37 +414,18 @@ Add some `margin` as a gutter where needed.
|
|
|
537
414
|
| ------------- | ----------- |
|
|
538
415
|
| `.bf-reduced-motion` | Adds a combinations of properties and values to an element (e.g. the `body`) removing all motion-based animations if preferred by the user, [read more](https://developer.mozilla.org/en-US/docs/Web/CSS/@media/prefers-reduced-motion) |
|
|
539
416
|
|
|
540
|
-
</details>
|
|
541
|
-
|
|
542
|
-
<br>
|
|
543
|
-
|
|
544
|
-
---
|
|
545
|
-
|
|
546
417
|
## Browser compatibility
|
|
547
418
|
|
|
548
419
|
### Desktop browsers
|
|
549
420
|
|
|
550
|
-
- IE 8+
|
|
551
421
|
- Latest stable two: Firefox, Chrome, Edge, Safari, Opera
|
|
422
|
+
- IE 11+
|
|
552
423
|
|
|
553
424
|
### Mobile browsers
|
|
554
425
|
|
|
555
|
-
- Latest stable: Firefox, Chrome, Edge, Opera
|
|
556
|
-
- Mobile Safari iOS 7+
|
|
557
|
-
- IE Mobile 11
|
|
558
|
-
|
|
559
|
-
### Proxy browsers
|
|
560
|
-
|
|
561
|
-
- Latest Stable: Opera Mobile’s Turbo mode
|
|
562
|
-
- Latest Stable: Opera Mini
|
|
426
|
+
- Latest stable: Firefox, Chrome, Edge, Opera, Mobile Safari
|
|
563
427
|
|
|
564
|
-
You
|
|
565
|
-
|
|
566
|
-
### Tested on real browsers
|
|
567
|
-
|
|
568
|
-
This project is tested in a wide range of browsers using also [BrowserStack](https://browserstack.com/) live, thanks to the BrowserStack Open Source initiative.
|
|
569
|
-
|
|
570
|
-

|
|
428
|
+
You might take a look at the [.browserslistrc](https://github.com/marcop135/bullframe.css/blob/master/.browserslistrc) file for [Autoprefixer](https://github.com/postcss/autoprefixer)
|
|
571
429
|
|
|
572
430
|
### Screenshots
|
|
573
431
|
|
|
@@ -575,10 +433,6 @@ How can I quickly see if every HTML element works well on all browsers?
|
|
|
575
433
|
|
|
576
434
|
Take a look at some [screenshots and screencasts](https://github.com/marcop135/bullframe.css/tree/master/docs/screenshots-screencasts), organized by rendering engines (blink, gecko, trident, webkit).
|
|
577
435
|
|
|
578
|
-
## Become a sponsor
|
|
579
|
-
|
|
580
|
-
[Sponsor me](https://github.com/sponsors/marcop135) and support my front-end efforts and open source!
|
|
581
|
-
|
|
582
436
|
## Contributors
|
|
583
437
|
|
|
584
438
|
[@englishextra](https://github.com/englishextra) the project is still live thanks to you!
|