From ebd37a3cb03e73af94e7c2aa7b3453317e1f6bcb Mon Sep 17 00:00:00 2001 From: nottnottloop <6772127+nottnottloop@users.noreply.github.com> Date: Thu, 15 Aug 2024 23:06:05 +0100 Subject: [PATCH] Smoother responsive site stats page --- sass/_project-sass/_project-Main.scss | 57 +++++++++++++++++++++++++-- views/site.erb | 10 ++--- 2 files changed, 58 insertions(+), 9 deletions(-) diff --git a/sass/_project-sass/_project-Main.scss b/sass/_project-sass/_project-Main.scss index 72324748..74645cf1 100644 --- a/sass/_project-sass/_project-Main.scss +++ b/sass/_project-sass/_project-Main.scss @@ -1118,10 +1118,26 @@ a.tag:hover { color: #999; } .interior .header-Outro .profile-info { + padding-left: 35px; + + h2 { + padding-right: 10px; + } + + .actions { + padding-bottom: 10px; + } + @media (max-device-width:480px), screen and (max-width:800px) { - margin-top: 70px; text-align: center; padding: 10px 0 15px 0; + + h2 { + margin-top: 0; + } + .actions { + padding-bottom: 0; + } } } .interior .header-Outro .actions { @@ -1134,34 +1150,67 @@ a.tag:hover { } } -.interior .header-Outro .col.col-50.signup-Area.site-display-preview-wrapper { +.interior .header-Outro { @media (max-device-width:480px), screen and (max-width:800px) { padding: 0 7%; } } +.signup-Area.site-display-preview-wrapper { + @media (max-device-width:480px), screen and (max-width:800px) { + padding: 0 5%; + } +} + +.website-thumbnail-wrapper { + padding: 20px; +} + .interior .header-Outro .site-display-preview { @media (max-device-width:480px), screen and (max-width:800px) { margin: 0 auto 5px; } } -.interior .header-Outro .site-info-row { +.interior .header-Outro { @media (max-device-width:480px), screen and (max-width:800px) { padding: 20px 0%; } } +.site-profile-big-container { + padding-bottom: 0 !important; +} + +.site-info-row { + display: flex; + padding: 20px 3% 20px 0; + padding-bottom: 0; + + fieldset{ + padding: 20px; + background: linear-gradient(to top, #394650 0%, 60%, hsl(206, 32%, 30%) 100%); + border-radius: 4px 4px 0 0; + box-shadow: 1px 2px 12px 2px rgba(0, 0, 0, 0.15); + -webkit-box-shadow: 1px 2px 12px 2px rgba(0, 0, 0, 0.15); + } + + @media (max-device-width:480px), screen and (max-width:800px) { + padding: 20px 3% 0 3%; + display: block; + } +} + .interior .header-Outro .stats { margin-bottom: 1.3em; float: left; width: 100%; margin-top: 1.9em; + display: flex; @media (max-device-width:480px), screen and (max-width:800px) { text-align: center; margin-top: 0.5em; - display: flex; justify-content: center; } } diff --git a/views/site.erb b/views/site.erb index 88ceb690..469a6712 100644 --- a/views/site.erb +++ b/views/site.erb @@ -1,4 +1,4 @@ -