Skip to content

Commit

Permalink
Merge pull request #7 from flipps/feature/layout-suggestions
Browse files Browse the repository at this point in the history
Feature/layout suggestions
  • Loading branch information
rafaeldelboni authored Nov 5, 2021
2 parents bab0b50 + e18e555 commit 7d2aba3
Show file tree
Hide file tree
Showing 8 changed files with 252 additions and 246 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "1.0.0",
"description": "Static Markdown Blog/Site using Fulcro & Pathom with no backend",
"scripts": {
"css:watch": "sass --watch src/css/sakura.css:resources/public/css/sakura.min.css src/css/nota.css:resources/public/css/nota.min.css",
"css:release": "sass src/css/sakura.css:resources/public/css/sakura.min.css src/css/nota.css:resources/public/css/nota.min.css --style=compressed",
"css:watch": "sass --watch src/css/nota.css:resources/public/css/nota.min.css",
"css:release": "sass src/css/nota.css:resources/public/css/nota.min.css --style=compressed",
"js:watch": "shadow-cljs watch main",
"js:release": "shadow-cljs release main",
"ci-tests": "shadow-cljs compile ci-tests && karma start --single-run",
Expand Down
5 changes: 2 additions & 3 deletions resources/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,13 @@
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;400;500&display=swap" rel="stylesheet">
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@100;400;500&family=Poppins:wght@500;600&display=swap" rel="stylesheet">

<!-- CSS Reset -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.css">

<!-- CSS -->
<link rel="stylesheet" href="./css/sakura.min.css" type="text/css">
<link rel="stylesheet" href="./css/nota.min.css" type="text/css">
<link rel="stylesheet" href="./css/nota.min.css" type="text/css">
</head>
<body>
<div id="app"></div>
Expand Down
6 changes: 3 additions & 3 deletions resources/public/pages/home.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Static Markdown Blog/Site using Fulcro &amp; Pathom with no backend

# Prerequisites
Things you need installed to use this repository
Things you need installed to use this repository:

- [nodejs](https://nodejs.dev/download)
- [clojure](https://clojure.org/guides/getting_started)
Expand All @@ -27,13 +27,13 @@ _[Aero's #profile](https://github.com/juxt/aero#profile)_ reader conditionals av
## Commands

### Local build
Start shadow-cljs watching and serving main in [`localhost:8000`](http://localhost:8000)
Start shadow-cljs watching and serving main in [localhost:8000](http://localhost:8000)
```bash
npm run watch
```

### Tests
Start shadow-cljs watching and serving tests in [`localhost:8022`](http://localhost:8022)
Start shadow-cljs watching and serving tests in [localhost:8022](http://localhost:8022)
```bash
npm run watch:tests
```
Expand Down
245 changes: 211 additions & 34 deletions src/css/nota.css
Original file line number Diff line number Diff line change
@@ -1,52 +1,229 @@
:root,
:root.dark {
/* colors */
--black: rgba(0, 0, 0, 0.87);
--gray: gainsboro;
--white: whitesmoke;
--accent-color: #FF9B49;

--bg-color: var(--black);
--font-base-color: var(--white);
--bg-gray-color: var(--gray);
--title-color: var(--gray);

/* fonts */
--line-height: 1.6;

/* sizes */
--max-width: 800px;
}

:root.light {
--bg-color: var(--white);
--font-base-color: var(--black);
--title-color: var(--black);
}

html {
font-size: 75%;
font-size: 10px;
font-family: 'JetBrains Mono', monospace;
height: 100%;
}

body {
color: #ffffff;
color: var(--font-base-color);
padding: 1.6rem;
box-sizing: border-box;
width: min(var(--max-width), 70%);
background-color: var(--bg-color);
line-height: var(--line-height);
transition: all 0.2s ease;
margin: 0 auto;
}
h1, h2, h3, h4, h5, h6 {
font-family: 'JetBrains Mono', monospace;
color: #c9c9c9;

.nota-nav {
display: flex;
width: 100%;
margin-block-end: 3.2rem;
}

.nota-btn {
color: var(--font-base-color);
border: 1px solid var(--font-base-color);;
background-color: transparent;
transition: all 0.2s ease;
padding: 0.25rem 0.8rem;
margin-inline-end: 0.8rem;
cursor: pointer;
font-size: 2.1rem;
}

.nota-btn:last-child {
margin-inline-end: 0;
}

.nota-btn:hover {
border: 1px solid var(--accent-color);
background-color: var(--accent-color);
color: var(--white);
}

.nota-btn--source {
margin-inline-start: auto;
}

.nota-btn--theme {
border: none;
border-bottom: 2px solid transparent;
margin: 0;
padding: 0;
}

.nota-btn--theme:hover {
border: none;
border-bottom: 2px solid var(--accent-color);
background-color: transparent;
}

h1, h2 {
font-family: "Poppins";
font-weight: 500;
font-size: 4.5rem;
color: var(--title-color);
margin: 0;
}

h2 {
font-size: 3.2rem;
margin: 1.6rem 0;
}

h3 {
font-size: 2.1rem;
margin: 0 0 0.8rem 0;
}

h4 {
font-size: 1.6rem;
}

h5 {
font-size: 1.5rem;
}
button {
overflow: visible;
width: auto;
margin: 2.5px;

h6 {
font-size: 1.2rem;
}

p {
margin: 0;
font-weight: 300;
font-size: 2.1rem;
margin-block-end: 3.2rem;
}

p code {
padding-inline: 0.8rem;
}

ul, ol {
margin: 0;
list-style-position: outside;
margin-block-end: 3.2rem;
padding: 0;
}

ul ul {
list-style-position: inside;
}

ol ol {
list-style-position: inside;
}

a {
cursor: pointer;
margin-right: 10px;
color: var(--font-base-color);
text-decoration: none;
border-bottom: 2px solid var(--font-base-color);
font-size: 2.1rem;
transition: all 0.2s ease;
cursor: pointer;
}

a:hover {
border-bottom: 2px solid var(--accent-color);
color: var(--accent-color);
text-decoration: none;
}

li {
font-size: 2.1rem;
}
section {
margin-top: 32px;
margin-bottom: 25px;

pre {
background-color: #4a4a4a;
margin-block-end: 3.2rem;
overflow-x: auto;
padding: 1.6rem;
}

code {
font-size: 2.1rem;
color: var(--white);
background-color: #4a4a4a;
}

footer {
font-size: 0.7em;
font-size: 1.6rem;
margin-block-start: 3.2rem;
}
hr {
background-color: #646464;
border-color: #646464;
color: #646464;

footer a {
font-size: 1.6rem;
}
.inline {
display: inline;

blockquote {
margin-left: 0px;
margin-right: 0px;
padding-left: 1em;
padding-top: 0.8em;
padding-bottom: 0.8em;
padding-right: 0.8em;
border-left: 5px solid var(--accent-color);
margin-bottom: 2.5rem;
background-color: #4a4a4a;
}
.post-title {
font-size: 2.35em;
margin-right: 5px;

blockquote p {
margin-bottom: 0;
}
.post-subtitle {
font-size: 0.85em;

blockquote p {
color: var(--white);
}

blockquote p a {
color: var(--white);
border-color: var(--white);
}
.float-right {
float: right;

.nota-posts a {
position: relative;
font-family: "Poppins";
}
@media (max-width: 320px) {
.float-right {
float: none;
display: block;
text-align: center;
}

.nota-posts a:hover::before {
content: "-";
font-size: 2.1rem;
position: absolute;
inset-inline-start: -1.6rem;
}

.nota-posts a p {
margin-block-end: 0;
}

.post-subtitle {
font-family: "JetBrains Mono";
font-size: 1.6rem;
}
Loading

0 comments on commit 7d2aba3

Please sign in to comment.