From ec2eedb93da9e9f71e3d5ec316725ab3a3914831 Mon Sep 17 00:00:00 2001 From: samuel Date: Wed, 11 Jan 2023 17:48:49 +0100 Subject: [PATCH] optimized styles for mobile --- src/index.html | 12 +++++----- src/scss/main.scss | 56 +++++++++++++++++++++++++++++++++++----------- 2 files changed, 49 insertions(+), 19 deletions(-) diff --git a/src/index.html b/src/index.html index 81ffe34..c022cd7 100644 --- a/src/index.html +++ b/src/index.html @@ -74,7 +74,7 @@ title: {{site.title}}
-
+
  • {{site.strings.about.overview.name}}:Samuel Philipp @@ -89,7 +89,7 @@ title: {{site.title}}
-
+

{{site.strings.about.hello}}

{{site.strings.about.text}}

-
+
{%- for item in site.strings.skills.languages %} -
+
{{item.name}}{{item.percent}}%
@@ -217,7 +217,7 @@ title: {{site.title}}
{%- for item in site.strings.skills.technologies %} -
+
{{item.name}}{{item.percent}}%
@@ -238,7 +238,7 @@ title: {{site.title}}
{%- for item in site.strings.interests.list %} -
+

{{item.name}}

diff --git a/src/scss/main.scss b/src/scss/main.scss index bf348eb..883b271 100644 --- a/src/scss/main.scss +++ b/src/scss/main.scss @@ -1,7 +1,11 @@ $primary: #006269; $secondary: #444; - -@import "bootstrap/scss/bootstrap"; +@import "bootstrap/scss/bootstrap-grid"; +@import "bootstrap/scss/bootstrap-reboot"; +@import "bootstrap/scss/bootstrap-utilities"; +@import "bootstrap/scss/functions"; +@import "bootstrap/scss/variables"; +@import "bootstrap/scss/mixins/_breakpoints"; $icomoon-font-path: "../font"; @import "icons/style"; @@ -131,6 +135,17 @@ section { margin-bottom: 20px; position: relative; + &.timeline-heading > div h3 { + display: inline-block; + padding: 7px 15px; + font-size: 18px; + text-transform: uppercase; + letter-spacing: 5px; + font-weight: bold; + background: #e6e6e6; + border-radius: 4px; + } + &.timeline-unverted { text-align: right; } @@ -205,17 +220,6 @@ section { } } -.timeline-heading > div h3 { - display: inline-block; - padding: 7px 15px; - font-size: 18px; - text-transform: uppercase; - letter-spacing: 5px; - font-weight: bold; - background: #e6e6e6; - border-radius: 4px; -} - .feature-left { color: #fff !important; text-decoration: none !important; @@ -529,3 +533,29 @@ footer { color: #000; } } + +@include media-breakpoint-down(md) { + .timeline { + &::before { + left: 10%; + } + + li { + &.timeline-heading > div h3 { + display: block; + } + + .timeline-badge { + top: 30px; + left: 10%; + } + + .timeline-panel { + width: auto; + float: none !important; + margin-left: 20%; + text-align: left; + } + } + } +}