-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.html
More file actions
376 lines (333 loc) · 16.2 KB
/
index.html
File metadata and controls
376 lines (333 loc) · 16.2 KB
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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="template/public/css/styles-sass.css">
<link rel="stylesheet" href="template/public/fonts/font-awesome/7-0-0/css/all.css">
<title>CoreBootstrap</title>
<!-- Only needed for this index page -->
<link rel="stylesheet" href="index.css">
</head>
<body>
<div class="which-res"></div>
<main>
<!-- EXAMPLE -->
<section>
<div class="container">
<div class="row">
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
<div class="col color-12of1"></div>
</div>
<div class="row">
<div class="col-2 color-6of2"></div>
<div class="col-2 color-6of2"></div>
<div class="col-2 color-6of2"></div>
<div class="col-2 color-6of2"></div>
<div class="col-2 color-6of2"></div>
<div class="col-2 color-6of2"></div>
</div>
<div class="row">
<div class="col-3 color-4of3"></div>
<div class="col-3 color-4of3"></div>
<div class="col-3 color-4of3"></div>
<div class="col-3 color-4of3"></div>
</div>
<div class="row">
<div class="col-4 color-3of4"></div>
<div class="col-4 color-3of4"></div>
<div class="col-4 color-3of4"></div>
</div>
<div class="row">
<div class="col-6 color-2of6"></div>
<div class="col-6 color-2of6"></div>
</div>
<div class="row">
<div class="col-12 color-1of12"></div>
</div>
</div>
</section>
<!-- ABOUT -->
<section>
<div class="container">
<div class="row">
<div class="col-12 mt-3">
<h1 class="main-header"><span class="color-4">Core</span><span class="color-1">Bootstrap</span></h1>
<p>
Back in 2014, I created CoreBootstrap for my own website projects. I needed a quick and easy method to up- or even downgrade between the different versions of Bootstrap, without having to constantly make changes, download newer/older versions or worse... get annoyed with the stupid CLI.
</p>
<p>
CoreBootstrap is build to work on any OS, right out of the box. Copy it to a new project, remove redundant versions, follow some of the pre-defined settings, or initiate a compiler for only one (1) file... and you are good to go!
</p>
<h3>MIT Licence</h3>
<p>
Since Bootstrap itself is released under an MIT License, I've released my CoreBootstrap under the same, all in good faith. There is no copyright infringement intended.
</p>
</div>
</div>
</div>
</section>
<!-- CURRENT VERSIONS -->
<section>
<div class="container">
<div class="row">
<div class="col-12 mt-3">
<h2>CURRENT <span class="available">AVAILABLE</span> / <span class="active">ACTIVE</span> / <span class="todo">TODO</span> VERSIONS</h2>
</div>
</div>
<div class="row">
<div class="col-12 col-md-9">
<!-- BOOTSTRAP > https://github.com/twbs/bootstrap/releases -->
<h3>Bootstrap</h3>
<ul>
<li>
Less:
<span class="available">3.3.1</span> /
<span class="available">3.3.2</span> /
<span class="available">3.3.4</span> /
<span class="available">3.3.5</span> /
<span class="available">3.3.6</span> /
<span class="available">3.3.7</span> /
<span class="available">3.4.0</span> /
<span class="available">3.4.1</span>
</li>
<li>
Sass:
<span class="available">4.0.0</span> /
<span class="available">4.1.0</span> /
<span class="available">4.1.1</span> /
<span class="available">4.1.2</span> /
<span class="available">4.1.3</span> /
<span class="available">4.2.1</span> /
<span class="available">4.3.0</span> /
<span class="available">4.3.1</span> /
<span class="available">4.4.0</span> /
<span class="available">4.4.1</span> /
<span class="available">4.5.0</span> /
<span class="available">4.5.1</span> /
<span class="available">4.5.2</span> /
<span class="available">4.5.3</span> /
<span class="available">4.6.0</span> /
<span class="available">4.6.1</span> /
<span class="available">4.6.2</span> /
<span class="available">5.0.0</span> /
<span class="available">5.0.1</span> /
<span class="available">5.0.2</span> /
<span class="available">5.1.0</span> /
<span class="available">5.1.1</span> /
<span class="available">5.1.2</span> /
<span class="available">5.1.3</span> /
<span class="available">5.2.0</span> /
<span class="available">5.2.1</span> /
<span class="available">5.2.2</span> /
<span class="available">5.2.3</span> /
<span class="available">5.3.0</span> /
<span class="available">5.3.1</span> /
<span class="available">5.3.2</span> /
<span class="available">5.3.3</span> /
<span class="available">5.3.4</span> /
<span class="available">5.3.5</span> /
<span class="available">5.3.6</span> /
<span class="available">5.3.7</span> /
<span class="active">5.3.8</span>
</li>
</ul>
<!-- LESSHAT > https://www.npmjs.com/package/lesshat -->
<h3>LessHat</h3>
<ul>
<li>
Less:
<span class="available">3.0.2</span> /
<span class="todo">4.1.0</span>
</li>
</ul>
</div>
<div class="col-12 col-md-3 text-right">
<!-- DOWNLOAD -->
<a class="btn btn-primary btn-download" href="https://github.com/MakePixelsWork/CoreBootstrap" target="_blank" role="button"><span class="fas fa-download mr-p10"></span>Download</a>
</div>
</div>
</div>
</section>
<!-- HOW TO VERSION -->
<section>
<div class="container">
<div class="row">
<div class="col-12 mt-3">
<h2>HOW TO 'VERSION' IN <span class="language">LESS</span> OR <span class="language">SASS</span></h2>
<p>
The colored <span class="language">less|sass</span> in these steps define the 'less' or 'sass' folder or filename you choose to implement. The word 'ext' defines the extension of the files, if applicable. I've chosen to include this naming convention in the entire CoreBootstrap structure, but you can of course choose other file name(s) for you compiled CSS... i.e. simply 'styles.css'.
</p>
<p>
Step 1, 2 and 7 are only needed to install a newer version.
</p>
<ol type="1">
<li>
Copy new DIST files to versioned PUBLIC folder (x-x-x) in:<br />
<ul>
<li>/template/public/fonts/glyphicons/x-x-x/</li>
<li>/template/public/js/bootstrap/x-x-x/</li>
</ul>
</li>
<li>
Copy new LESS or SASS files to versioned SRC folder (x-x-x) in:<br />
<ul>
<li>/template/src/<span class="language">less|sass</span>/bootstrap/x-x-x/</li>
<li>/template/src/<span class="language">less|sass</span>/lesshat/x-x-x/</li>
</ul>
</li>
<li>
Update CORE TEMPLATE with:<br />
<ul>
<li>Versioned 'Basic template' source code <span class="advice">...copied from Bootstrap website, within <head></span></li>
<li>Latest JavaScript CDN <span class="advice">...copied from Bootstrap website, at end </body></span></li>
<li>If applicable, versioned folder (x-x-x) for bootstrap(.min).js <span class="advice">...at end </body></span></li>
</ul>
</li>
<li>
Update PATH /template/src/<span class="language">less|sass</span>/styles-<span class="language">less|sass</span>.ext with:<br />
<ul>
<li>Your preferred framework versions</li>
<li>Your own hierarchical positioned file(s)</li>
</ul>
</li>
<li>
If applicable, update PATH /template/src/<span class="language">less|sass</span>/variables.ext with:<br />
<ul>
<li>Updated framework variables</li>
<li>Your own variables</li>
</ul>
</li>
<li>Run your preferred compiler to create new compiled files</li>
<li>
Update versioning in documentation files:<br />
<ul>
<li>CHANGELOG.md</li>
<li>index.html</li>
<li>README.md</li>
</ul>
</li>
</ol>
</div>
</div>
</div>
</section>
<!-- COMPILING -->
<section>
<div class="container">
<div class="row">
<div class="col-12 mt-2">
<h2>HOW TO COMPILE</h2>
<ul>
<li>Either use compiler software like <a href="https://prepros.io/">https://prepros.io/</a> or a compiler extension like <a href="https://marketplace.visualstudio.com/items?itemName=glenn2223.live-sass">Live Sass Compiler</a>, as recommended in the .vscode workspace folder</li>
<li>
Only compile<br>
/template/src/<span class="language">less|sass</span>/styles-<span class="language">less|sass</span>.ext<br>
to<br>
/template/public/css/styles-<span class="language">less|sass</span>.css
</li>
</ul>
<h3>PrePros settings</h3>
<ul>
<li>
When active, PrePros detects file changes and recompiles on each save. If you add your own files and/or (re)structure, you'll need to update the settings within the PrePros software.
</li>
<li>
PrePros constantly updates its settings file, so I've exluded it in the .gitignore file
</li>
<li>
I've made a 'prepros-backup.config' file available, in case you want to see the settings or update them in between different machines/projects.
</li>
<li>
Check the PrePros website for more info.
</li>
</ul>
</div>
</div>
</div>
</section>
<!-- SETUP TEMPLATES -->
<section>
<div class="container">
<div class="row">
<div class="col-12 mt-2">
<h2>SETUP TEMPLATES</h2>
<p>
I've made starter setups available for both the 'builds' as well as 'HTML' files needed to run your CoreBootstrap enabled website. These templates make it easier to create your own versioned compiler and basic websites. Check the 'template/src/setup' folder for more info.
</p>
</div>
</div>
</div>
</section>
<!-- RESOURCES -->
<section>
<div class="container">
<div class="row">
<div class="col-12 mt-2">
<h2>RESOURCES</h2>
<p>
Interested in the original source files? Check out the resources throught the links below.
</p>
<h3>Bootstrap</h3>
<ul>
<li>GitHub > <a href="https://github.com/twbs/bootstrap">Bootstrap</a> > <a href="https://github.com/twbs/bootstrap/releases">Releases</a></li>
<li>Website > <a href="https://getbootstrap.com/">getbootstrap.com</a></li>
</ul>
<h3>LessHat</h3>
<ul>
<li>GitHub > <a href="https://github.com/madebysource/lesshat/">LessHat</a> > <a href="https://github.com/madebysource/lesshat/releases">Releases</a></li>
</ul>
</div>
</div>
</div>
</section>
<!-- ADDENDUM -->
<section>
<div class="container">
<div class="row">
<div class="col-12 mt-3 mb-5">
<h2>ADDENDUM</h2>
<p>
<strong>I still use @import</strong> because the order of SCSS imports are critical for Bootstrap customization. You must first load custom variables, before Bootstrap's, so it uses our values instead of its own. Then you load their files, other frameworks, after which you can over-write their code in your own custom files. While those still can be partials, the newer SCSS module system (@use) enforces that all @use rules should come first, which conflicts with the classic @import-based Bootstrap workflow.
</p>
<p>
The reality: Bootstrap's SCSS is not fully compatible with the newer module system (@use/@forward) unless you refactor Bootstrap's source files (which we do not want to do). Mixing @use and @import is only safe if all @use rules come first... but this breaks the variable override pattern we need.
</p>
<p>
Bootstrap has not fully transitioned to @use/@forward yet, mainly for compatibility and inertia. Beta versions of v6 also use @import, so this could remain an issue. Unless they decide to rewrite it all, but I wonder how you over-write things then. To be continued.
</p>
<p>
<strong>Bootstrap 5</strong> introduced lots of new features, which may break your old builds. These include Sass changes, a color system, grid updates, dropping code, new naming conventions... and lots of tweaks throughout the entire framework. If you start a new project, this does not concern you. If you upgrade from an older major version, then be sure to update your code where needed. A full migration guide can be found <a href="https://getbootstrap.com/docs/5.0/migration/">here</a>.
</p>
<p>
<strong>LessHat</strong> has not been updated since july 2016, but is still one of the best LESS mixin libraries available. I postponed installing v4.1.0 because it became dependent on NPM and Grunt... which is weird, because their initial product had no dependencies at all. I've not used LESS for several years now and mainly focus on Sass developments, but I still want to implement this newer mixin library one day. So its on my todos list ;).
</p>
<p>
<strong>Red square</strong> in the top right corner is a small helper script I build to help you detect which breakpoint is active. You can disable this by changing the name of the class, or by removed the entire div.
</p>
<p>
Good luck with creating your awesome projects!
</p>
<p>
<strong>Victor van der Put</strong><br>
<a href="https://github.com/MakePixelsWork">@MakePixelsWork</a>
</p>
</div>
</div>
</div>
</section>
</main>
<!-- Bootstrap Bundle with Popper -->
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.8/dist/js/bootstrap.bundle.min.js" integrity="sha384-FKyoEForCGlyvwx9Hj09JcYn3nv7wiPVlz7YYwJrWVcXK/BmnVDxM+D2scQbITxI" crossorigin="anonymous"></script>
</body>
</html>