bl-css 0.11.0 → 0.11.2
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 +38 -12
- package/bin/sc.js +17 -1
- package/bl.css +32 -13
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
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.2 - Release notes(by Dev)
|
|
7
|
+
## THE CATS HAVE TAKEN OVER! (And its good :D)
|
|
8
|
+
So if Aliens are green, purple is the opposite, and purple is very near to blueviolet, so Cats are purple/blueviolet!
|
|
6
9
|
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
`.h1-hero`: An outline stroked text :O
|
|
11
|
-
`.navtitle`: The title on the left of the navbar :D
|
|
12
|
-
`.navlinks`: Links on the right of the navbar :D
|
|
10
|
+
The CLI is now even better (even if it does nothing new lol), you can request a feature in the [issues of github repo](https://github.com/fg-xd/bl-CSS/issues) and use `npx bl-css` to run it
|
|
11
|
+
|
|
12
|
+
### Note: This update is only for NPM (the CLI)
|
|
13
13
|
|
|
14
14
|
## [Preview](https://fg-xd.github.io/bl-CSS)
|
|
15
15
|
# How to Change Accent Color?
|
|
16
16
|
To change from the **original** blueviolet theme you have to open the main```bl.css``` file and you can change the following:
|
|
17
17
|
```css
|
|
18
18
|
:root{
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
19
|
+
--_: rgb(/* Your accent's RGB here */);
|
|
20
|
+
--_4: rgba(/* Your RGB */, 0.4);
|
|
21
|
+
--_6: rgba(/* Your RGB */, 0.6);
|
|
22
22
|
}
|
|
23
23
|
```
|
|
24
24
|
# Repo
|
|
@@ -26,6 +26,32 @@ The bl-css repo is on [GitHub](https://github.com/fg-xd/bl-CSS)
|
|
|
26
26
|
|
|
27
27
|
You can also make an issue on GitHub to request features
|
|
28
28
|
|
|
29
|
+
# How to use?
|
|
30
|
+
## Plug 'n' Play (not recommended for big sites)
|
|
31
|
+
Add this to your HTML for the latest&greatest version:
|
|
32
|
+
```html
|
|
33
|
+
<link rel='stylesheet' href='https://esm.sh/bl-css' />
|
|
34
|
+
```
|
|
35
|
+
Its a very short URL too! (credit to [esm.sh](https://esm.sh))
|
|
36
|
+
|
|
37
|
+
## Download
|
|
38
|
+
### 1. NPM
|
|
39
|
+
This is the most recommended method
|
|
40
|
+
|
|
41
|
+
Run this in your terminal(for latest version):
|
|
42
|
+
```bash
|
|
43
|
+
npm install bl-css
|
|
44
|
+
```
|
|
45
|
+
If you'd want, you can target a specific version:
|
|
46
|
+
```bash
|
|
47
|
+
npm install bl-css@version
|
|
48
|
+
# note: version to be replaced with actual version or the alien will eat bl-css
|
|
49
|
+
```
|
|
50
|
+
### 2. GitHub
|
|
51
|
+
This is not recommended as I most of the time forget to make a release on github T-T
|
|
52
|
+
|
|
53
|
+
Go to the official [GitHub repo releases](https://github.com/fg-xd/bl-CSS/releases) and download a certain version you want.
|
|
54
|
+
|
|
29
55
|
Have a Nice day Using it **:D**
|
|
30
56
|
|
|
31
57
|
Forever Free **:D**
|
package/bin/sc.js
CHANGED
|
@@ -1,4 +1,13 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
+
function helpMenu(){
|
|
3
|
+
console.log('===== bl-css =====\n Usage: npx bl-css <flag>\n npx bl-css --help === show this menu\n npx bl-css --copy === copy bl.css from the alien trench to your beautiful website');
|
|
4
|
+
}
|
|
5
|
+
const arg = process.argv.slice(2);
|
|
6
|
+
if(arg.length === 0 || arg.includes('--help')){
|
|
7
|
+
helpMenu();
|
|
8
|
+
process.exit(0);
|
|
9
|
+
}
|
|
10
|
+
else if(arg.includes('--copy')){
|
|
2
11
|
const fs = require('fs');
|
|
3
12
|
const path = require('path');
|
|
4
13
|
console.log("Extracting bl CSS...");
|
|
@@ -12,6 +21,13 @@ try {
|
|
|
12
21
|
}
|
|
13
22
|
catch (e) {
|
|
14
23
|
console.log("The Alien has hidden the package!");
|
|
15
|
-
console.log("run 'npm install bl-css' if you haven't yet")
|
|
24
|
+
console.log("run 'npm install bl-css' if you haven't yet");
|
|
16
25
|
console.log("And don't you dare make it 'Global' bruh");
|
|
26
|
+
} process.exit(0);
|
|
27
|
+
}
|
|
28
|
+
else{
|
|
29
|
+
console.log("I hope you are not an alien!");
|
|
30
|
+
console.log("run 'npx bl-css' or 'npx bl-css --help to see the commands!'")
|
|
31
|
+
console.log("Cats hate Aliens >:(")
|
|
32
|
+
process.exit(1);
|
|
17
33
|
}
|
package/bl.css
CHANGED
|
@@ -111,35 +111,54 @@ body{
|
|
|
111
111
|
.link{
|
|
112
112
|
display: table;
|
|
113
113
|
font-family: "Cause";
|
|
114
|
-
text-decoration:
|
|
115
|
-
color:
|
|
116
|
-
text-decoration-color: white;
|
|
114
|
+
text-decoration: none;
|
|
115
|
+
color: var(--_);
|
|
117
116
|
transition: 0.1s ease;
|
|
117
|
+
cursor: default;
|
|
118
118
|
}
|
|
119
119
|
.link:hover{
|
|
120
120
|
color: var(--_);
|
|
121
121
|
text-decoration-color: var(--_);
|
|
122
|
+
text-decoration: underline;
|
|
122
123
|
}
|
|
123
|
-
.
|
|
124
|
+
.btn{
|
|
124
125
|
display: table;
|
|
125
|
-
color: white;
|
|
126
126
|
font-family: "Cause";
|
|
127
|
-
padding: 5px;
|
|
128
|
-
border: rgba(128,128,128,0.6) 2px solid;
|
|
129
|
-
background-color: rgba(255,255,255,0.4);
|
|
130
127
|
border-radius: 7px;
|
|
128
|
+
border: 2px solid var(--_);
|
|
129
|
+
background-color: var(--_);
|
|
131
130
|
transform: translateY(0px);
|
|
131
|
+
padding: 5px;
|
|
132
132
|
transition: 0.4s ease;
|
|
133
133
|
}
|
|
134
|
-
.
|
|
135
|
-
color: white;
|
|
134
|
+
.btn:hover{
|
|
136
135
|
transform: translateY(2px);
|
|
137
|
-
border: var(--_6) 2px solid;
|
|
138
136
|
background-color: transparent;
|
|
137
|
+
border: 2px solid var(--_);
|
|
139
138
|
}
|
|
140
|
-
.
|
|
139
|
+
.btn:active{
|
|
141
140
|
transform: translateY(3px);
|
|
142
|
-
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(--_);
|
|
143
162
|
transition: 0.1s ease;
|
|
144
163
|
}
|
|
145
164
|
.card{
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "bl-css",
|
|
3
|
-
"version": "0.11.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.11.2",
|
|
4
|
+
"description": "Lightweight and Super Hackable CSS framework(by a Kid)",
|
|
5
5
|
"main": "bl.css",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"test": "echo \"Error: no test specified\" && exit 1"
|