From e2f91036c069b5baadd01373aceae21327d6abfa Mon Sep 17 00:00:00 2001
From: Olivier Mehani <shtrom+mediagoblin@ssji.net>
Date: Sun, 31 May 2020 00:17:33 +1000
Subject: [PATCH 3/5] Override skeleton's container size for better
responsiveness
Signed-off-by: Olivier Mehani <shtrom+mediagoblin@ssji.net>
---
mediagoblin/static/css/base.css | 30 +++++++++++++++++++++
mediagoblin/themes/airy/assets/css/airy.css | 1 -
2 files changed, 30 insertions(+), 1 deletion(-)
diff --git a/mediagoblin/static/css/base.css b/mediagoblin/static/css/base.css
index 466b0b85..65e33ceb 100644
|
a
|
b
|
pre {
|
| 960 | 960 | /* Media queries and other responsivisivity */ |
| 961 | 961 | /* initial GMG max 940 */ |
| 962 | 962 | @media screen and (max-width: 960px) { |
| | 963 | .container { |
| | 964 | width: 99%; |
| | 965 | } |
| 963 | 966 | |
| 964 | 967 | .profile_sidebar { |
| 965 | 968 | width: 100%; |
| … |
… |
pre {
|
| 993 | 996 | } |
| 994 | 997 | /* desktop resolutions */ |
| 995 | 998 | @media screen and (min-width: 960px) { |
| | 999 | .container { |
| | 1000 | width: 99%; |
| | 1001 | } |
| | 1002 | |
| 996 | 1003 | #thingy_view { |
| 997 | 1004 | width:640px; |
| 998 | 1005 | height:640px; |
| … |
… |
pre {
|
| 1002 | 1009 | |
| 1003 | 1010 | /* Tablet Portrait size to standard 960 (devices and browsers) */ |
| 1004 | 1011 | @media only screen and (min-width: 768px) and (max-width: 959px) { |
| | 1012 | .container { |
| | 1013 | width: 99%; |
| | 1014 | } |
| | 1015 | |
| 1005 | 1016 | .navigation_button { |
| 1006 | 1017 | } |
| 1007 | 1018 | #thingy_view { |
| … |
… |
pre {
|
| 1012 | 1023 | |
| 1013 | 1024 | /* All Mobile Sizes (devices and browser) */ |
| 1014 | 1025 | @media screen and (max-width: 767px) { |
| | 1026 | .container { |
| | 1027 | width: 99%; |
| | 1028 | } |
| | 1029 | |
| 1015 | 1030 | h1,h2,h3,p { |
| | 1031 | text-align: center; |
| 1016 | 1032 | margin-bottom: 10px !important; |
| 1017 | 1033 | } |
| 1018 | 1034 | |
| … |
… |
pre {
|
| 1042 | 1058 | .media_comments { |
| 1043 | 1059 | border-bottom: 1px solid #333333; |
| 1044 | 1060 | } |
| | 1061 | |
| | 1062 | .mediagoblin_content .button_action { |
| | 1063 | display: block; |
| | 1064 | text-align: center; |
| | 1065 | } |
| | 1066 | |
| 1045 | 1067 | } |
| 1046 | 1068 | |
| 1047 | 1069 | /* Mobile Landscape Size to Tablet Portrait (devices and browsers) */ |
| 1048 | 1070 | @media only screen and (min-width: 480px) and (max-width: 767px) { |
| | 1071 | .container { |
| | 1072 | width: 99%; |
| | 1073 | } |
| | 1074 | |
| 1049 | 1075 | #thingy_view { |
| 1050 | 1076 | width:420px; |
| 1051 | 1077 | height:420px; |
| … |
… |
pre {
|
| 1054 | 1080 | |
| 1055 | 1081 | /* Mobile Portrait Size to Mobile Landscape Size (devices and browsers) */ |
| 1056 | 1082 | @media only screen and (max-width: 479px) { |
| | 1083 | .container { |
| | 1084 | width: 99%; |
| | 1085 | } |
| | 1086 | |
| 1057 | 1087 | #thingy_view { |
| 1058 | 1088 | width:300px; |
| 1059 | 1089 | height:300px; |
diff --git a/mediagoblin/themes/airy/assets/css/airy.css b/mediagoblin/themes/airy/assets/css/airy.css
index 34bf7a8d..f5bf6bb4 100644
|
a
|
b
|
p.navigation_button {
|
| 29 | 29 | header { |
| 30 | 30 | background-color: #f7f7f7; |
| 31 | 31 | border-bottom: 1px solid #e4e4e4; |
| 32 | | width: 940px; |
| 33 | 32 | margin-left: auto; |
| 34 | 33 | margin-right: auto; |
| 35 | 34 | } |