From 651169c2327398b2f79b05a5da9aa17919bcfe0f Mon Sep 17 00:00:00 2001 From: Kamil Niemczycki Date: Tue, 7 Sep 2021 14:36:38 +0200 Subject: [PATCH] Updated styles --- scss/default.scss | 17 ++++++++++++- src/components/sections/About.vue | 32 +++++++++++------------- src/views/Project.vue | 25 ++++++++++++++----- src/views/Projects.vue | 41 ++++++++++++++----------------- 4 files changed, 69 insertions(+), 46 deletions(-) diff --git a/scss/default.scss b/scss/default.scss index feadbed..994e821 100644 --- a/scss/default.scss +++ b/scss/default.scss @@ -11,12 +11,27 @@ h2 { p { font-size: 1.1em; line-height: 1.4em; - padding-bottom: 10px; + &:not(&:last-of-type) { + padding-bottom: 10px; + } } .container { max-width: 1200px; margin: 0 auto; } +.loading { + height: 300px; + + .loading-animation { + margin: 20px auto; + width: 50px; + height: 50px; + border: 5px solid #f3f3f3; + border-top: 10px #A2CF00 solid; + border-radius: 50%; + animation: loading-animation 1s linear infinite; + } +} @media screen and (max-width: 1200px) { .container { padding: 0 20px; diff --git a/src/components/sections/About.vue b/src/components/sections/About.vue index 5d65a79..044d9ea 100644 --- a/src/components/sections/About.vue +++ b/src/components/sections/About.vue @@ -56,35 +56,33 @@ .buttons { display: flex; justify-content: flex-start; - padding: 10px 0; + padding: 25px 0; .btn { margin-right: 20px; - &:last-of-type { + + &:last-child { margin-right: 0; } - } - } - @media screen and (max-width: 900px) { - .buttons { - justify-content: center; - margin-bottom: 25px; - } - } + @media screen and (max-width: 600px) { + margin: 0 auto 15px; - @media screen and (max-width: 600px) { - .buttons { - display: block; - margin-bottom: 25px; - - .btn { - margin: 0 auto 20px; &:last-child { margin: 0 auto; } } } + + @media screen and (max-width: 900px) { + justify-content: center; + margin-bottom: 25px; + } + + @media screen and (max-width: 600px) { + display: block; + margin-bottom: 25px; + } } @media screen and (max-width: 400px) { diff --git a/src/views/Project.vue b/src/views/Project.vue index 8051de8..45fdece 100644 --- a/src/views/Project.vue +++ b/src/views/Project.vue @@ -32,6 +32,9 @@ +
+
+