Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/danielkvist/hugo-terrassa-theme.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authordanielkvist <d94.zaragoza@gmail.com>2018-12-24 16:03:12 +0300
committerdanielkvist <d94.zaragoza@gmail.com>2018-12-24 16:03:12 +0300
commit325e5d8607897f7ef49f319e551e31307e91a113 (patch)
tree57fc8e7f0930504bb5e85f4b71a01ac2ec857f11 /assets
parent9bd249e0fcca0bdb400312e2062e2ca29f9ea2dc (diff)
add CSS media queries
Diffstat (limited to 'assets')
-rw-r--r--assets/css/base.css8
-rw-r--r--assets/css/media-queries.css74
2 files changed, 82 insertions, 0 deletions
diff --git a/assets/css/base.css b/assets/css/base.css
index 1ec939a..4584766 100644
--- a/assets/css/base.css
+++ b/assets/css/base.css
@@ -14,6 +14,14 @@
--secondary-text: #333333;
--accent: #536dfe;
--divider: #bdbdbd;
+
+ /* Breackpoints */
+ /* Only for documentation */
+ /* CSS vars can't be used on Media Queries */
+ --sm: 576px;
+ --md: 768px;
+ --lg: 992px;
+ --xl: 1200px;
}
a {
diff --git a/assets/css/media-queries.css b/assets/css/media-queries.css
new file mode 100644
index 0000000..3d87562
--- /dev/null
+++ b/assets/css/media-queries.css
@@ -0,0 +1,74 @@
+@media only screen and (max-width: 1024px) {
+ .hero {
+ background-position: 0;
+ }
+
+ .card {
+ margin-bottom: 0.75rem;
+ }
+
+ .post__body {
+ margin-left: 20%;
+ margin-right: 20%;
+ }
+
+ .footer__contact {
+ flex-direction: column;
+ }
+}
+
+@media only screen and (max-width: 992px) {
+ .hero__caption > h1 {
+ font-size: var(--subtitle);
+ }
+
+ .hero__caption > h2 {
+ font-size: 1.25rem;
+ }
+
+ .card {
+ max-width: 70%;
+ }
+
+ .footer__social__link {
+ margin: 20px 20px;
+ }
+}
+
+@media only screen and (max-width: 768px) {
+ .card {
+ max-width: 75%;
+ }
+
+ .post__header {
+ padding-left: 10%;
+ padding-right: 10%;
+ }
+
+ .post__body {
+ margin-left: 10%;
+ margin-right: 10%;
+ }
+}
+
+@media only screen and (max-width: 576px) {
+ .hero__caption {
+ margin-left: 1.75rem;
+ margin-right: 1.75rem;
+ }
+
+ .card {
+ max-width: 90%;
+ }
+
+ .footer {
+ grid-template-areas: "social" "contact" "copy";
+ grid-template-columns: 1fr;
+ }
+
+ .footer__social__link {
+ height: 40px;
+ line-height: 40px;
+ width: 40px;
+ }
+} \ No newline at end of file