Skip to content

Commit

Permalink
feat: mimic dracula ui,
Browse files Browse the repository at this point in the history
commiting more changes in the project structure,
see also: #12
  • Loading branch information
64J0 committed May 22, 2021
1 parent aabba69 commit cd11e52
Show file tree
Hide file tree
Showing 9 changed files with 41 additions and 32 deletions.
2 changes: 0 additions & 2 deletions components/HeaderHome/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
background-size: 100% 12rem;

width: 100%;
max-width: var(--maxWidth);
min-width: 30rem;
padding-top: 6rem;

@media (max-width: 34rem) {
Expand Down
10 changes: 1 addition & 9 deletions components/HeaderPost/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,11 @@ $prefix: header-post;
justify-content: space-between;

width: 100%;
padding: 2rem 5rem 0;
padding: 2rem 5rem;
margin: 0;

border-radius: 30px 30px 0 0;

@media (max-width: 34rem) {
padding: 1rem 2rem;
border-radius: 0;

img {
width: 8rem;
height: 8rem;
}
}
}

Expand Down
13 changes: 11 additions & 2 deletions components/Layout/styles.module.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
.layout {
max-width: var(--maxWidth);

width: 100%;
height: 100%;
margin: 0 auto;
padding: 0;
word-break: break-word;
}

.layout__head {
Expand Down Expand Up @@ -46,7 +49,7 @@
}
}

@media (max-width: 34rem) {
@media (max-width: &sm) {
.container {
margin: 0 auto;
padding: 0;
Expand All @@ -55,6 +58,12 @@

.main {
padding: 1rem 2rem;
font-size: 20px;
}

.layout__footer {
flex-direction: column;
align-items: center;
text-align: center;
border: 5px solid red;
}
}
2 changes: 1 addition & 1 deletion pages/_app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import type { AppProps } from "next/app";

import "../styles/global.css";
import "../styles/layout.css";
import "../styles/colors.css";
import "../styles/_colors.scss";
import "../styles/dracula-clone/index.css";

// Para o Highligh.js
Expand Down
4 changes: 2 additions & 2 deletions pages/posts/styles.module.scss
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
flex-direction: column;
text-align: justify;
margin: 1.5rem;
font-size: 1.2rem;
font-size: 1.1rem;

p {
text-indent: 3rem;
Expand All @@ -14,7 +14,7 @@
font-size: 2rem;
line-height: 1.3;
font-weight: 800;
letter-spacing: -0.05rem;
color: var(--yellow);
}

.post__meta {
Expand Down
6 changes: 6 additions & 0 deletions styles/_breakpoints.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
// Bootstrap

$sm: 576px;
$md: 768px;
$lg: 992px;
$xg: 1200px;
File renamed without changes.
34 changes: 19 additions & 15 deletions styles/global.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: monospace;
}

html,
body {
font-family: monospace;
line-height: 1.6;
font-size: 14px;
background-color: var(--black);
Expand All @@ -31,6 +31,16 @@ main {
padding-top: 1rem;
}

p {
tab-size: 2rem;
-moz-tab-size: 2rem; /* Firefox */
color: var(--white); /* .drac-text-white */
}

/* ===================
TABLE
=================== */

table,
th,
td {
Expand Down Expand Up @@ -59,10 +69,18 @@ u {
text-decoration-style: wavy;
}

/* ===================
LIST
=================== */

ul {
list-style: none;
}

/* ===================
CODE
=================== */

pre {
background-color: rgb(246, 248, 250);
border-radius: 6px;
Expand All @@ -80,17 +98,3 @@ code {
word-break: normal;
word-wrap: normal;
}

p {
tab-size: 2rem;
-moz-tab-size: 2rem; /* Firefox */
color: var(--white); /* .drac-text-white */
}

@media (max-width: 375px) {
p,
div,
li {
font-size: 1.3rem;
}
}
2 changes: 1 addition & 1 deletion styles/layout.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
:root {
--maxWidth: 72rem;
--maxWidth: 950px;
}

0 comments on commit cd11e52

Please sign in to comment.