summaryrefslogtreecommitdiff
path: root/css/layout.css
diff options
context:
space:
mode:
authormono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-18 23:58:07 -0300
committermono-b <monoblanco@DRAINERDOMAIN.localdomain>2022-12-18 23:58:07 -0300
commit476493c61679764b33734512f023a627dcca9ecf (patch)
tree0db36282ab18c2b8d6eb15efab2eb49ef2eb8de3 /css/layout.css
Diffstat (limited to 'css/layout.css')
-rw-r--r--css/layout.css51
1 files changed, 51 insertions, 0 deletions
diff --git a/css/layout.css b/css/layout.css
new file mode 100644
index 0000000..0b100ca
--- /dev/null
+++ b/css/layout.css
@@ -0,0 +1,51 @@
+/* 1rem = 16px by default */
+
+.page {
+ max-width: 64rem;
+ margin: 1rem auto;
+ display: grid;
+ grid-template-areas:
+ "header"
+ "body"
+ "aside";
+ grid-template-columns: minmax(0, 1fr);
+ grid-row-gap: 2rem;
+}
+
+@media (min-width: 45rem) {
+ .page {
+ grid-template-areas:
+ "header header"
+ "body aside";
+ grid-template-columns: minmax(0, 1fr) 15rem;
+ grid-column-gap: 2rem;
+ }
+}
+
+/* Header */
+.page__header {
+ grid-area: header;
+ display: flex;
+}
+
+.page__logo {
+ flex-shrink: 0;
+}
+
+.page__nav {
+ flex-grow: 1;
+}
+
+/* Body + aside */
+.page__body {
+ padding: 20px;
+ border: 0.5px solid white;
+ grid-area: body;
+ background-color: rgba(0, 0, 0, 0.4);
+ overflow-wrap: break-word;
+}
+
+.page__aside {
+ grid-area: aside;
+ color: var(--bright-bg);
+}