From 43e3f3b84a1bffd7d2357e3bfb037dbc2098597f Mon Sep 17 00:00:00 2001 From: Jakob Date: Mon, 10 Feb 2020 09:18:10 +0100 Subject: [PATCH] added stylesheet --- content/style.css | 61 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 content/style.css diff --git a/content/style.css b/content/style.css new file mode 100644 index 0000000..ece1cf1 --- /dev/null +++ b/content/style.css @@ -0,0 +1,61 @@ +@media only screen and (min-width: 721px) { + .container{ + display: grid; + grid-template-columns: repeat(3, 1fr); + grid-template-rows: 100px; + grid-template-columns: 1fr 1fr 1fr; + grid-auto-rows: minmax(100px, auto); + } + + div.item-1 { + grid-column: 2 / 3; + grid-row: 1; + } + + div.item-2 { + grid-column: 2 / 3; + grid-row: 2; + } + + div.item-3 { + grid-column: 2 / 3; + grid-row: 3; + } +} + + +@media only screen and (max-width: 720px) { + .container{ + display: grid; + grid-template-columns: repeat(1, 1fr); + grid-template-rows: 100px; + grid-template-columns: 1fr; + grid-auto-rows: minmax(100px, auto); + } + + div.item-1 { + grid-column: 1 / 1; + grid-row: 1; + } + + div.item-2 { + grid-column: 1 / 1; + grid-row: 2; + } + + div.item-3 { + grid-column: 1 / 1; + grid-row: 3; + } +} + +div.round-border { + border: 1px solid; + padding: 0.01em 16px; + border-radius: 16px; +} + +.bg { + background-color:#feffef; + color:#00000; +} \ No newline at end of file