Skip to content

Commit 0e6974b

Browse files
committed
Version 0.1.2
1 parent 2abb5cf commit 0e6974b

11 files changed

Lines changed: 46 additions & 46 deletions

README.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
# superbro
2-
Very minimalistic boilerplate to start the most simplest projects.
3-
2+
Minimalistic Boilerplate
43
Made in mind of mobile-first orientation.
54

5+
It's quick and easy to start new projects with Superbro, since it offers many goods of HTML5 and CSS3 out of box. It's small library and supports all new browsers.
6+
67
### Features
7-
- Basic reset
8-
- Responsive grid
9-
- Clean typography
10-
- More to come!
8+
- CSS reset
9+
- Clean typography
10+
- Grid.css (help of CSS Grid Definition)
11+
- Settings.css with VAR functions
1112

1213
### Todo
13-
- Viewport support
14-
- make it Grid compatible with VH/VWs
15-
- Using var's to make easy col and minmax system for templating
14+
- Remove all PX and replace them with EMs or VHs
15+
- Fix the Grid-row system in it
16+

css/grid.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* SuperBro version 0.1.2
3-
* Copyright 2019, Sanjiv Rana
3+
* Copyright 2019-2020, Sanjiv Rana
44
* www.superbro.dev
55
* Free to use under the MIT license.
66
* http://www.opensource.org/licenses/mit-license.php
7-
* Last update: 6-jun-2020
7+
* Last update: 24-aug-2020
88
*/
99

1010
.grid {grid-gap:15px; display: grid; grid-template-columns: repeat(var(--columns, 12), minmax(1em, 1fr)); grid-column: span 12 ;margin-top:20px;}

css/settings.css

Lines changed: 27 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
22
* SuperBro version 0.1.2
3-
* Copyright 2019, Sanjiv Rana
3+
* Copyright 2019-2020, Sanjiv Rana
44
* www.superbro.dev
55
* Free to use under the MIT license.
66
* http://www.opensource.org/licenses/mit-license.php
7-
* Last update: 6-jun-2020
7+
* Last update: 24-aug-2020
88
*/
99
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,700&display=swap');
1010
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro&display=swap');
@@ -30,6 +30,7 @@ ol, ul {list-style: none; }
3030
/* ===========FONT(s)========== */
3131
--font-main:'Montserrat', sans-serif;
3232
--font-alt:'Source Code Pro';
33+
--font-default:sans-serif;
3334

3435
/* ===========PRIMARY COLORS========== */
3536
/* FONT COLOR(s) */
@@ -68,15 +69,18 @@ ol, ul {list-style: none; }
6869
/* BORDER COLOR(s) */
6970

7071
/* BUTTON COLORS */
71-
--primary-button:var(--white); --primary-button-bg:transparent; --primary-button-bdr:var(--greywhite);
72+
--primary-button:var(--black-alt); --primary-button-bg:transparent; --primary-button-bdr:var(--greywhite);
73+
--primary-button-hover:var(--gray-4); --primary-button-hover-bg:var(--gray-6); --primary-button-hover-bdr:var(--primary-button-bdr:);
7274

7375
--a-button:var(--primary-button);--a-button-bg:var(--primary-button-bg);--a-button-bdr:var(--primary-button-bdr);
76+
--a-button-hover:var(--primary-button-hover);--a-button-hover-bg:var(--primary-button-hover-bg);--a-button-hover-bdr:var(--primary-button-hover-bdr);
7477

7578
/* Alternative buttons */
76-
--button-1:; --button-1-bg:; --button-1-bdr:;
79+
/* Could used to make different color classes for example */
80+
/* --button-1:; --button-1-bg:; --button-1-bdr:;
7781
--button-2:;
7882
--button-3:;
79-
--button-4:;
83+
--button-4:; */
8084

8185

8286

@@ -103,6 +107,20 @@ ol, ul {list-style: none; }
103107
--body-line-height: 1.4;
104108
}
105109

110+
111+
/* !! Do not change code below, make your changes / code in it's own file !! */
112+
html {
113+
font-family: var(--font-default);
114+
}
115+
body {
116+
font-family: var(--font-main);
117+
background: var(--background-main);
118+
color:var(--black);
119+
font-size: calc(var(--text-base-value));
120+
line-height: var(--body-line-height);
121+
margin:1px auto;
122+
max-width: var(--site-size);
123+
}
106124
/* && Typography setup
107125
=======================*/
108126
h1, h2, h3, h4, h5, h6 {
@@ -126,12 +144,11 @@ a:hover, a:focus { color: var(--alink-hover); }
126144
a:visited { color: var(--alink-visited); }
127145
a:active { color: var(--alink-active); }
128146

129-
.button {
147+
a.button, button {
130148
display: inline-block;
131149
height: 38px;
132150
padding: 0 30px;
133151
margin: 10px 0;
134-
color: var(--primary-button);
135152
text-align: center;
136153
font-size: 11px;
137154
font-weight: 700;
@@ -140,19 +157,17 @@ a:active { color: var(--alink-active); }
140157
text-transform: uppercase;
141158
text-decoration: none;
142159
white-space: nowrap;
143-
background-color: var(--primary-button-bg);
144160
border-radius: 4px;
145-
border: 1px solid var(--primary-button-bdr);
146161
cursor: pointer;
147162
box-sizing: border-box;
148163
}
149164

150-
.button:active, .button:visited {color: var(--primary-button);}
151-
.button:hover {color: var(--white);border-color: var(--white);outline: 0;}
165+
button {background-color: var(--primary-button-bg);border: 1px solid var(--primary-button-bdr);color: var(--primary-button);}
166+
button:hover {background-color: var(--primary-button-hover-bg);border: 1px solid var(--primary-button-hover-bdr);color: var(--primary-button-hover);}
152167

153168
a.button{background-color: var(--a-button-bg);border: 1px solid var(--a-button-bdr);color: var(--a-button);}
154169
a.button:active, a.button:visited {color: var(--a-button);}
155-
a.button:hover{}
170+
a.button:hover{background-color: var(--a-button-hover-bg);border: 1px solid var(--a-button-hover-bdr);color: var(--a-button-hover);}
156171

157172
blockquote {
158173
margin-right:6.25em;

css/yoursite-example.css

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,6 @@
1-
/* && START HERE
1+
/* && START
2+
Write your code here
23
=======================*/
3-
html {
4-
font-family: sans-serif;
5-
}
6-
body {
7-
font-family: var(--font-main);
8-
background: var(--background-main);
9-
color:var(--black);
10-
font-size: calc(var(--text-base-value));
11-
line-height: var(--body-line-height);
12-
margin:1px auto;
13-
max-width: var(--site-size);
14-
}
154
p {
165
line-height: 1em;
176
}

img/android-chrome-192x192.png

10.2 KB
Loading

img/android-chrome-512x512.png

27.9 KB
Loading

img/apple-touch-icon.png

9.01 KB
Loading

img/favicon-16x16.png

575 Bytes
Loading

img/favicon-32x32.png

1.12 KB
Loading

img/favicon.ico

15 KB
Binary file not shown.

0 commit comments

Comments
 (0)