bl-css 0.10.1 → 0.11.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.
- package/README.md +46 -6
- package/bin/sc.js +0 -0
- package/bl.css +78 -16
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -1,15 +1,29 @@
|
|
|
1
1
|
# bl CSS
|
|
2
|
-
A *lightweight*, **blueviolet**, ***
|
|
2
|
+
A *lightweight*, **blueviolet**, ***ultra lightweight*** CSS framework!
|
|
3
3
|
|
|
4
|
-
|
|
5
|
-
|
|
4
|
+
bl-css is supposed to be a CSS framework that is Ultra Lightweight, even while being readable!
|
|
5
|
+
Currently its <6KB (Unminified, With Comments, and Readable)! exactly 5.36KB [from tooltilities.com](https://tooltilities.com/toolset/text-size-calculator)
|
|
6
|
+
# 0.11.1 - Release notes(by Dev)
|
|
7
|
+
A yeah last version was actually 0.11.0, sorry for the error!
|
|
8
|
+
## What's New?
|
|
9
|
+
This is the first *Named* update, the **Link&Button** update!!
|
|
10
|
+
## Classes
|
|
11
|
+
`.link`: Yeah, same thing, but updated to look more modern!
|
|
12
|
+
|
|
13
|
+
`.linkbtn`: DELETED! switch to .btn or .btn2
|
|
14
|
+
|
|
15
|
+
`.btn`: A more themed alternative to .linkbtn
|
|
16
|
+
|
|
17
|
+
`.btn2`: secondary button, based on .btn
|
|
18
|
+
|
|
19
|
+
## [Preview](https://fg-xd.github.io/bl-CSS)
|
|
6
20
|
# How to Change Accent Color?
|
|
7
21
|
To change from the **original** blueviolet theme you have to open the main```bl.css``` file and you can change the following:
|
|
8
22
|
```css
|
|
9
23
|
:root{
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
24
|
+
--_: rgb(/* Your accent's RGB here */);
|
|
25
|
+
--_4: rgba(/* Your RGB */, 0.4);
|
|
26
|
+
--_6: rgba(/* Your RGB */, 0.6);
|
|
13
27
|
}
|
|
14
28
|
```
|
|
15
29
|
# Repo
|
|
@@ -17,6 +31,32 @@ The bl-css repo is on [GitHub](https://github.com/fg-xd/bl-CSS)
|
|
|
17
31
|
|
|
18
32
|
You can also make an issue on GitHub to request features
|
|
19
33
|
|
|
34
|
+
# How to use?
|
|
35
|
+
## Plug 'n' Play (not recommended for big sites)
|
|
36
|
+
Add this to your HTML for the latest&greatest version:
|
|
37
|
+
```html
|
|
38
|
+
<link rel='stylesheet' href='https://esm.sh/bl-css' />
|
|
39
|
+
```
|
|
40
|
+
Its a very short URL too! (credit to [esm.sh](https://esm.sh))
|
|
41
|
+
|
|
42
|
+
## Download
|
|
43
|
+
### 1. NPM
|
|
44
|
+
This is the most recommended method
|
|
45
|
+
|
|
46
|
+
Run this in your terminal(for latest version):
|
|
47
|
+
```bash
|
|
48
|
+
npm install bl-css
|
|
49
|
+
```
|
|
50
|
+
If you'd want, you can target a specific version:
|
|
51
|
+
```bash
|
|
52
|
+
npm install bl-css@version
|
|
53
|
+
# note: version to be replaced with actual version or the alien will eat bl-css
|
|
54
|
+
```
|
|
55
|
+
### 2. GitHub
|
|
56
|
+
This is not recommended as I most of the time forget to make a release on github T-T
|
|
57
|
+
|
|
58
|
+
Go to the official [GitHub repo releases](https://github.com/fg-xd/bl-CSS/releases) and download a certain version you want.
|
|
59
|
+
|
|
20
60
|
Have a Nice day Using it **:D**
|
|
21
61
|
|
|
22
62
|
Forever Free **:D**
|
package/bin/sc.js
CHANGED
|
File without changes
|
package/bl.css
CHANGED
|
@@ -32,8 +32,7 @@ body{
|
|
|
32
32
|
.h1{
|
|
33
33
|
font-family: "Lilita One";
|
|
34
34
|
display: table;
|
|
35
|
-
padding: 10px;
|
|
36
|
-
font-size: 2rem;
|
|
35
|
+
padding: 10px; /* No more 2rem */
|
|
37
36
|
border-bottom: 0.5px solid;
|
|
38
37
|
border-bottom-color: rgba(255,255,255,0.3);
|
|
39
38
|
transition: 0.4s ease;
|
|
@@ -112,35 +111,54 @@ body{
|
|
|
112
111
|
.link{
|
|
113
112
|
display: table;
|
|
114
113
|
font-family: "Cause";
|
|
115
|
-
text-decoration:
|
|
116
|
-
color:
|
|
117
|
-
text-decoration-color: white;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
color: var(--_);
|
|
118
116
|
transition: 0.1s ease;
|
|
117
|
+
cursor: default;
|
|
119
118
|
}
|
|
120
119
|
.link:hover{
|
|
121
120
|
color: var(--_);
|
|
122
121
|
text-decoration-color: var(--_);
|
|
122
|
+
text-decoration: underline;
|
|
123
123
|
}
|
|
124
|
-
.
|
|
124
|
+
.btn{
|
|
125
125
|
display: table;
|
|
126
|
-
color: white;
|
|
127
126
|
font-family: "Cause";
|
|
128
|
-
padding: 5px;
|
|
129
|
-
border: rgba(128,128,128,0.6) 2px solid;
|
|
130
|
-
background-color: rgba(255,255,255,0.4);
|
|
131
127
|
border-radius: 7px;
|
|
128
|
+
border: 2px solid var(--_);
|
|
129
|
+
background-color: var(--_);
|
|
132
130
|
transform: translateY(0px);
|
|
131
|
+
padding: 5px;
|
|
133
132
|
transition: 0.4s ease;
|
|
134
133
|
}
|
|
135
|
-
.
|
|
136
|
-
color: white;
|
|
134
|
+
.btn:hover{
|
|
137
135
|
transform: translateY(2px);
|
|
138
|
-
border: var(--_6) 2px solid;
|
|
139
136
|
background-color: transparent;
|
|
137
|
+
border: 2px solid var(--_);
|
|
140
138
|
}
|
|
141
|
-
.
|
|
139
|
+
.btn:active{
|
|
142
140
|
transform: translateY(3px);
|
|
143
|
-
color:
|
|
141
|
+
background-color: transparent;
|
|
142
|
+
border: 2px solid var(--_);
|
|
143
|
+
transition: 0.1s ease;
|
|
144
|
+
}
|
|
145
|
+
.btn2{
|
|
146
|
+
display: table;
|
|
147
|
+
font-family: "Cause";
|
|
148
|
+
border-radius: 7px;
|
|
149
|
+
border: 2px solid var(--_);
|
|
150
|
+
background-color: transparent;
|
|
151
|
+
transform: translateY(0px);
|
|
152
|
+
padding: 5px;
|
|
153
|
+
transition: 0.4s ease;
|
|
154
|
+
}
|
|
155
|
+
.btn2:hover{
|
|
156
|
+
transform: translateY(2px);
|
|
157
|
+
background-color: var(--_);
|
|
158
|
+
}
|
|
159
|
+
.btn2:active{
|
|
160
|
+
transform: translateY(3px);
|
|
161
|
+
background-color: var(--_);
|
|
144
162
|
transition: 0.1s ease;
|
|
145
163
|
}
|
|
146
164
|
.card{
|
|
@@ -168,7 +186,6 @@ body{
|
|
|
168
186
|
flex-direction: column;
|
|
169
187
|
gap: 10px;
|
|
170
188
|
}
|
|
171
|
-
/* Form (NEW) */
|
|
172
189
|
.form{
|
|
173
190
|
display: table;
|
|
174
191
|
padding: 12px;
|
|
@@ -213,4 +230,49 @@ body{
|
|
|
213
230
|
.label:focus-within{
|
|
214
231
|
color: var(--_);
|
|
215
232
|
}
|
|
233
|
+
/* navbar and splash screen! (New!) */
|
|
234
|
+
.hero{
|
|
235
|
+
height: 100vh;
|
|
236
|
+
display: flex;
|
|
237
|
+
justify-content: center;
|
|
238
|
+
align-items: center;
|
|
239
|
+
background-color: black;
|
|
240
|
+
flex-direction: column;
|
|
241
|
+
gap: 10px;
|
|
242
|
+
}
|
|
243
|
+
.navbar{
|
|
244
|
+
height: auto;
|
|
245
|
+
min-height: fit-content;
|
|
246
|
+
display: grid;
|
|
247
|
+
padding: 0 5px;
|
|
248
|
+
grid-template-columns: auto 1fr;
|
|
249
|
+
top: 15px;
|
|
250
|
+
right: 15%;
|
|
251
|
+
left: 15%;
|
|
252
|
+
border-radius: 9999px;
|
|
253
|
+
background-color: rgba(0,0,0,0.6);
|
|
254
|
+
border: 2px solid rgb(50,50,50);
|
|
255
|
+
position: fixed;
|
|
256
|
+
}
|
|
257
|
+
.navtitle{
|
|
258
|
+
grid-column: 1;
|
|
259
|
+
align-items: center;
|
|
260
|
+
/* Use with h1 */
|
|
261
|
+
}
|
|
262
|
+
.navlinks{
|
|
263
|
+
grid-column: 2;
|
|
264
|
+
display: flex;
|
|
265
|
+
gap: 5px;
|
|
266
|
+
justify-content: end;
|
|
267
|
+
align-items: center;
|
|
268
|
+
/* add your links to the right */
|
|
269
|
+
}
|
|
270
|
+
.h1-hero{
|
|
271
|
+
font-family: "Lilita One";
|
|
272
|
+
display: table;
|
|
273
|
+
padding: 10px;
|
|
274
|
+
color: transparent;
|
|
275
|
+
-webkit-text-stroke: 1px var(--_);
|
|
276
|
+
text-stroke: 1px var(--_);
|
|
277
|
+
}
|
|
216
278
|
}
|
package/package.json
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bl-css",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.11.1",
|
|
4
4
|
"description": "black - blueviolet lightweight CSS framework",
|
|
5
5
|
"main": "bl.css",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
8
|
},
|
|
9
|
-
"repository":{
|
|
9
|
+
"repository": {
|
|
10
10
|
"type": "git",
|
|
11
11
|
"url": "https://github.com/fg-xd/bl-CSS.git"
|
|
12
12
|
},
|
|
13
13
|
"bin": {
|
|
14
14
|
"bl-css": "./bin/sc.js",
|
|
15
|
-
|
|
15
|
+
"bl": "./bin/sc.js"
|
|
16
16
|
},
|
|
17
17
|
"files": ["bl.css", "README.md", "sc.js"],
|
|
18
18
|
"exports": {
|