Skip to content

Commit

Permalink
Improve readability (#18)
Browse files Browse the repository at this point in the history
*Change the paragraph font family to Times New Roman
*Improve code tag on dark mode
*Minor checkbox fixes
*Increasing margin bottom
*Make header 2, 4, and 6 with opacity 0.8
  • Loading branch information
Ferror authored Nov 12, 2020
1 parent 90df689 commit ef1d9a8
Show file tree
Hide file tree
Showing 16 changed files with 69 additions and 64 deletions.
3 changes: 2 additions & 1 deletion grave-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,14 @@
:root {
--global-page-background-color: #36393e;
--global-font-color: #a7a7a7;
--global-font-family: "Times New Roman", Times, serif;
--global-form-background-color: #ecf0f1;
--global-form-background-color-active: #dce0e1;
--global-form-background-color-valid: #ecf0f1;
--global-form-font-color: #7f8c8d;
--global-form-shadow-color: 0 3px 0 #7f8c8d;
--global-form-shadow-color-active: 0 1px 0 #7f8c8d;
--global-text-code-background-color: rgba(236, 240, 241, 0.1);
--global-text-code-background-color: rgba(40, 43, 48, 1);
--image-width: 20rem;

font-size: 16px;
Expand Down
1 change: 1 addition & 0 deletions grave-light.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
:root {
--global-page-background-color: #fff;
--global-font-color: #374252;
--global-font-family: "Times New Roman", Times, serif;
--global-form-background-color: #ecf0f1;
--global-form-background-color-active: #dce0e1;
--global-form-background-color-valid: #2ecc71a6;
Expand Down
4 changes: 3 additions & 1 deletion grave.css
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,14 @@ body {
:root {
--global-page-background-color: #36393e;
--global-font-color: #a7a7a7;
--global-font-family: "Times New Roman", Times, serif;
--global-form-background-color: #ecf0f1;
--global-form-background-color-active: #dce0e1;
--global-form-background-color-valid: #ecf0f1;
--global-form-font-color: #7f8c8d;
--global-form-shadow-color: 0 3px 0 #7f8c8d;
--global-form-shadow-color-active: 0 1px 0 #7f8c8d;
--global-text-code-background-color: rgba(236, 240, 241, 0.1);
--global-text-code-background-color: rgba(40, 43, 48, 1);
--image-width: 20rem;
}
}
Expand All @@ -41,6 +42,7 @@ body {
:root {
--global-page-background-color: #fff;
--global-font-color: #374252;
--global-font-family: "Times New Roman", Times, serif;
--global-form-background-color: #ecf0f1;
--global-form-background-color-active: #dce0e1;
--global-form-background-color-valid: #2ecc71a6;
Expand Down
4 changes: 3 additions & 1 deletion gulpfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,9 @@ gulp.task('stylelint', function () {
'src/structure/*.css',
'src/text/*.css',
'src/vendor/*.css',
'grave.css'
'grave.css',
'grave-dark.css',
'grave-light.css'
])
.pipe(stylelint(reporters));
});
12 changes: 11 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="keywords" content="">
<meta name="Description" content="">
<title>Grave UI</title>
<link rel="stylesheet" href="grave.css">
<link rel="stylesheet" href="grave-dark.css">
<style>
div {
margin: 20px 0;
Expand Down Expand Up @@ -128,6 +128,16 @@ <h5>Random new header</h5>
</p>
</article>
</section>

<section>
<header>
<h2>Texts</h2>
</header>
<article>
<code>Some code or what?</code>
</article>
</section>

<temple>
<column>
<article>
Expand Down
54 changes: 19 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

14 changes: 7 additions & 7 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
},
"homepage": "https://github.com/Ferror/grave",
"devDependencies": {
"gulp": "^4.0.2",
"gulp-cssimport": "^7.0.0",
"gulp-csso": "^2.0.0",
"gulp-rename": "^1.4.0",
"gulp-stylelint": "^9.0.0",
"stylelint": "^10.1.0",
"stylelint-config-standard": "^18.3.0"
"gulp": "^4.0",
"gulp-cssimport": "^7.0",
"gulp-csso": "^2.0",
"gulp-rename": "^1.4",
"gulp-stylelint": "^9.0",
"stylelint": "^10.1",
"stylelint-config-standard": "^18.3"
}
}
9 changes: 4 additions & 5 deletions src/form/input/checkbox.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,21 +13,20 @@ input[type=checkbox]::after {
content: '\2713';
cursor: pointer;
display: inline-block;
font-size: 1.2rem;
height: 24px;
font-size: 1.4rem;
height: 26px;
left: -2px;
position: relative;
text-align: center;
top: -2px;
top: -3px;
visibility: visible;
width: 24px;
width: 26px;
}

input[type=checkbox]:checked::after {
box-shadow: var(--global-form-shadow-color-active);
color: var(--global-font-color);
display: inline-block;
font-weight: bold;
opacity: 1;
transform: translateY(2px);
}
5 changes: 3 additions & 2 deletions src/structure.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
@import 'structure/temple.css';
@import 'structure/about.css';
@import 'structure/nav.css';
@import 'structure/footer.css';
@import 'structure/nav.css';
@import 'structure/section.css';
@import 'structure/temple.css';
1 change: 1 addition & 0 deletions src/structure/about.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ about {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 3rem;
}

about > article {
Expand Down
2 changes: 1 addition & 1 deletion src/structure/nav.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
nav {
display: flex;
flex-direction: column;
margin-bottom: 1rem;
margin-bottom: 3rem;
text-align: center;
width: 100%;
}
Expand Down
3 changes: 3 additions & 0 deletions src/structure/section.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
section {
margin-bottom: 3rem;
}
1 change: 1 addition & 0 deletions src/structure/temple.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ temple {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
margin-bottom: 3rem;
}

column {
Expand Down
1 change: 1 addition & 0 deletions src/text.css
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
@import 'text/figcaption.css';

code {
color: var(--global-font-color);
padding: 0.25rem 0.4rem;
background-color: var(--global-text-code-background-color);
border-radius: 4px;
Expand Down
11 changes: 7 additions & 4 deletions src/text/header.css
Original file line number Diff line number Diff line change
@@ -1,25 +1,27 @@
h1 {
color: var(--global-font-color);
font-size: 2.7rem;
margin-bottom: 1.6rem;
margin-bottom: 2rem;
}

h2 {
color: var(--global-font-color);
font-size: 2.4rem;
margin-bottom: 1.3rem;
margin-bottom: 1.6rem;
opacity: 0.7;
}

h3 {
color: var(--global-font-color);
font-size: 2.1rem;
margin-bottom: 1rem;
margin-bottom: 1.2rem;
}

h4 {
color: var(--global-font-color);
font-size: 1.8rem;
margin-bottom: 0.7rem;
margin-bottom: 0.8rem;
opacity: 0.7;
}

h5 {
Expand All @@ -32,4 +34,5 @@ h6 {
color: var(--global-font-color);
font-size: 1.2rem;
margin-bottom: 0.1rem;
opacity: 0.7;
}
8 changes: 2 additions & 6 deletions src/text/paragraph.css
Original file line number Diff line number Diff line change
@@ -1,14 +1,10 @@
p {
/**
* @todo Change paragraph font to Sherif -> times new roman
*/

color: var(--global-font-color);
font-size: 1.1rem;
margin-bottom: 1.5rem;
font-family: var(--global-font-family);
margin-bottom: 1.2rem;
line-height: 1.5rem;
letter-spacing: 0.05rem;
word-spacing: 0.02rem;
text-indent: 1.5rem;
text-align: justify;
}

0 comments on commit ef1d9a8

Please sign in to comment.