aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTeddy Wing2018-11-11 06:28:01 +0100
committerTeddy Wing2018-11-11 06:28:01 +0100
commit8fd5453b82b23766f4810b0c37510cc61b53dbd4 (patch)
treee91ec906d6177c3aaa6c4a7e5f0a0b1b33b3f811
parentb24ce98d487c2c455560f8c5e27edd895aa831e7 (diff)
downloaddome-key-web-8fd5453b82b23766f4810b0c37510cc61b53dbd4.tar.bz2
Add responsive breakpoints
Ensure that nothing leaves the viewable page area and that no elements collide with one another.
-rw-r--r--assets/styles.css25
-rw-r--r--assets/stylesheets/layout.hcss31
-rw-r--r--index.html3
3 files changed, 58 insertions, 1 deletions
diff --git a/assets/styles.css b/assets/styles.css
index 54ec607..4e74081 100644
--- a/assets/styles.css
+++ b/assets/styles.css
@@ -137,3 +137,28 @@ ul {
color: #c9ccb4;
text-shadow: 1px 3px 5px #230f0f;
}
+@media screen and (max-width: 767px) {
+ header {
+ margin-left: -8px;
+ }
+ .content {
+ margin-left: auto;
+ margin-right: auto;
+ }
+}
+@media screen and (max-width: 710px) {
+ ul {
+ margin-left: 2.5em;
+ }
+}
+@media screen and (max-width: 669px) {
+ .content {
+ width: 96%;
+ }
+}
+@media screen and (max-width: 481px) {
+ .buy-button {
+ position: static;
+ display: inline-block;
+ }
+}
diff --git a/assets/stylesheets/layout.hcss b/assets/stylesheets/layout.hcss
index 9f4259b..755d4fa 100644
--- a/assets/stylesheets/layout.hcss
+++ b/assets/stylesheets/layout.hcss
@@ -87,3 +87,34 @@ ul {
color: LIMEADE;
text-shadow: 1px 3px 5px DARK_CHOCOLATE;
}
+
+
+@media screen and (max-width: 767px) {
+ header {
+ margin-left: -8px;
+ }
+
+ .content {
+ margin-left: auto;
+ margin-right: auto;
+ }
+}
+
+@media screen and (max-width: 710px) {
+ ul {
+ margin-left: 2.5em;
+ }
+}
+
+@media screen and (max-width: 669px) {
+ .content {
+ width: 96%;
+ }
+}
+
+@media screen and (max-width: 481px) {
+ .buy-button {
+ position: static;
+ display: inline-block;
+ }
+}
diff --git a/index.html b/index.html
index d88b79e..690d362 100644
--- a/index.html
+++ b/index.html
@@ -45,7 +45,8 @@
<div class="position-relative margin-bottom-0.5">
<h2 class="display-inline-block">Try it free for 30 days</h2>
<a href="#"
- class="button button-magenta
+ class="buy-button
+ button button-magenta
padding-top-9 padding-bottom-9
position-absolute right-0 bottom-0">
Buy ($15)