Skip to content

Commit 8bdee3c

Browse files
committed
preparing files for the next release: bug fixes and new features
1 parent 43f29b6 commit 8bdee3c

5 files changed

Lines changed: 96 additions & 15 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
components.html

README.md

Lines changed: 22 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,29 @@ Visit [Superbro.DEV](https://superbro.dev) for better documentation.
1111
### Features
1212
- CSS reset
1313
- Clean typography
14-
- Grid.css (help of CSS Grid Definition)
14+
- Adjustable 12 column grid (help of CSS Grid Definition)
1515
- Settings.css with VAR functions
16+
- Headers are adjusted according to the screen with help of calc function
17+
18+
### Components
19+
**Done Components:**
20+
- Buttons
21+
- Forms
22+
- Tables
23+
- Blockquote
24+
- Codeblock
25+
- Menu
26+
27+
28+
**Planned Components:**
29+
- Alerts
30+
- Breadcrumb
31+
- Cards
32+
- Dropdown
33+
- Labels
34+
- Progress Bar
35+
- Profile
36+
1637

1738
### Grid
1839
The grid itself is flexible and mobile friendly, thanks to CSS Grid.
@@ -22,7 +43,6 @@ We can also take advantage of "columns" and "rows" as seen below.
2243

2344
### Todo
2445
- Remove all PX and replace them with EMs or VHs
25-
- Fix the Grid-row system in it
2646

2747
### Version
2848
Current version is [0.1.2.](https://github.com/eync/superbro/releases/tag/v0.1.2)

css/grid.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
/*
2-
* SuperBro version 0.1.2
2+
* SuperBro version 0.1.3
33
* 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: 24-aug-2020
7+
* Last update: 02-nov-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: 65 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
2-
* SuperBro version 0.1.2
2+
* SuperBro version 0.1.3
33
* 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: 24-aug-2020
7+
* Last update: 02-nov-2020
88
*/
9+
910
@import url('https://fonts.googleapis.com/css?family=Montserrat:300,400,500,700&display=swap');
1011
@import url('https://fonts.googleapis.com/css?family=Source+Code+Pro&display=swap');
1112

@@ -27,23 +28,28 @@ ol, ul {list-style: none; }
2728
--site-size: 75em; /* about 1200px */
2829
--columns:; /* default value is 12, leave it empty if you want to keep 12 columns setting */
2930

31+
/* background color */
32+
--background-main: var(--white);
33+
3034
/* =========== FONT(s) ========== */
3135
--font-main:'Montserrat', sans-serif;
3236
--font-alt:'Source Code Pro';
3337
--font-default:sans-serif;
3438

3539
/* =========== PRIMARY COLORS ========== */
36-
/* FONT COLOR(s) */
37-
/* you could define here for each tag line the color you would like to use */
38-
39-
/* background color */
40-
--background-main: var(--white);
40+
/* FONT COLOR(s) */
41+
/* you could define here for each tag line the color you would like to use */
42+
--default-font-color:var(--black-alt);
4143

4244
/* LINK COLOR(s) */
4345
--alink:#ED217C;
4446
--alink-hover:rgb(250, 25, 126);
4547
--alink-active:var(--alink);
4648
--alink-visited:var(--alink);
49+
50+
--alink-menu:rgb(212, 250, 25);
51+
--alink-menu-hover:var(--alink);
52+
--alink-menu-active:var(--alink);
4753
/* CUSTOM COLORS */
4854
/* add below your own specific colors // */
4955
--bqg: #b3b3b3;
@@ -120,7 +126,7 @@ html {
120126
body {
121127
font-family: var(--font-main);
122128
background: var(--background-main);
123-
color:var(--black);
129+
color:var(--default-font-color);
124130
font-size: calc(var(--text-base-value));
125131
line-height: var(--body-line-height);
126132
margin: 0 auto;
@@ -157,7 +163,7 @@ a:hover, a:focus { color: var(--alink-hover); }
157163
a:visited { color: var(--alink-visited); }
158164
a:active { color: var(--alink-active); }
159165

160-
a.button, button {
166+
a.button, button, input.button {
161167
display: inline-block;
162168
height: 38px;
163169
padding: 0 30px;
@@ -309,3 +315,53 @@ td:first-child {
309315
th:last-child,
310316
td:last-child {
311317
padding-right: 0; }
318+
319+
320+
/* && Menu
321+
=======================*/
322+
.sb-menu{
323+
display:grid;
324+
grid-template-columns: repeat(12, minmax(1em, auto));
325+
width: 100%;
326+
height: 3.5em;
327+
line-height: 3.5em;
328+
text-align: center;
329+
font-family: sans-serif;
330+
background-color: #9c9c9c;
331+
height:100%;
332+
}
333+
.sb-menu .sb-logo {
334+
grid-column-start: 1;
335+
width: auto;
336+
color: var(--default-font-color);
337+
}
338+
.sb-menu .sb-logo p {
339+
font-size: 1.2rem;
340+
font-weight: 700;
341+
padding: 1em 0;
342+
}
343+
.sb-menu nav {
344+
grid-column: span 11;
345+
height: 100%;
346+
justify-self:right;
347+
}
348+
349+
.sb-menu nav ul li {
350+
width: auto;
351+
height: inherit;
352+
padding: 0 3.5em;
353+
color: var(--default-font-color);
354+
display: inline-block;
355+
height:100%
356+
357+
}
358+
.sb-menu nav ul li a {
359+
text-decoration: none;
360+
color: var(--alink-menu);
361+
}
362+
.sb-menu nav ul li a:hover {
363+
color: var(--alink-menu-hover);
364+
}
365+
.sb-menu nav ul li a.active {
366+
color: var(--alink-menu-active);
367+
}

index.html

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,15 @@
2626
================= -->
2727
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
2828
<!--[if lt IE 9]><script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script><![endif]-->
29+
<style>
30+
31+
</style>
2932
</head>
3033
<body>
34+
3135
<!-- && Start your website here, by replacing the code below.
3236
================= -->
33-
<div class="base">
37+
<main>
3438
<div class="grid">
3539
<div class="item span6">
3640
<h3>This is the start</h3>
@@ -43,7 +47,7 @@ <h3>Need help?</h3>
4347
<a href="https://superbro.dev/" class="button">Superbro Website</a>
4448
</div>
4549
</div>
46-
</div>
50+
</main>
4751

4852

4953
</body>

0 commit comments

Comments
 (0)