summaryrefslogtreecommitdiff
path: root/client/style/main.css
diff options
context:
space:
mode:
authorMike Vink <mike1994vink@gmail.com>2021-06-10 12:23:17 +0200
committerMike Vink <mike1994vink@gmail.com>2021-06-10 12:23:17 +0200
commitfd46c28539cf7c130dfbb0458f7b9057ad4f1e46 (patch)
treefc46112bca9a3a13745c6f0d58ef8595efd080ec /client/style/main.css
parentd4ba547a722e3ab72a8bd283a3d94d569518ea68 (diff)
before refactor
Diffstat (limited to 'client/style/main.css')
-rw-r--r--client/style/main.css207
1 files changed, 172 insertions, 35 deletions
diff --git a/client/style/main.css b/client/style/main.css
index c828d62..0159545 100644
--- a/client/style/main.css
+++ b/client/style/main.css
@@ -9,46 +9,75 @@ body {
}
/* Describes the styling of the one and only element with id="mainheader", note the # in front of mainheader */
+@media only screen and (max-width: 480px) {
#mainheader {
background-color: var(--primary-color);
- font-size: 3rem;
+ font-size: 1.5rem;
color: white;
+ height: 45px;
}
-#sticky-header {
- display: block;
- z-index: +1;
+#center-articles {
+ position: absolute;
+ width: 100%;
}
-#center-articles {
- position: relative;
+/* Describes the styling of all <article> elements */
+article {
+ border-radius: 25px;
+ border: 1px solid var(--primary-color);
+ color: var(--light-text-color);
+ width: 96%;
+ margin: 2% 0 0 2%;
+}
+#logo-header {
+ display: none;
}
-/* The sticky class is added to the header with JS when it reaches its scroll position */
-.sticky {
- position: fixed;
- top: 0;
- width: 100%
+#logo-header img {
+ margin-left: 30px;
}
-/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
-.sticky + .content {
- padding-top: 102px;
+nav {
+ line-height: 2rem;
+ background-color: darkgrey;
+ text-align: center;
+ min-height: 32px;
+ display: inline-flex;
+ width: 100%;
+ justify-content: center;
}
-a:link, a:visited {
- color: white;
}
-a:hover {
- color: cyan;
+
+@media only screen and (min-width: 480px) {
+#mainheader {
+ background-color: var(--primary-color);
+ font-size: 2rem;
+ color: white;
+ height: 60px;
+}
+#center-articles {
+ position: absolute;
+ display: inline-block;
+ transform: translate(0, 0);
+ width: 100%;
}
-a:link:active, a:visited:active {
- color: green;
+/* Describes the styling of all <article> elements */
+article {
+ border-radius: 25px;
+ border: 1px solid var(--primary-color);
+ color: var(--light-text-color);
+ margin: 10px 0 3% 3% ;
+ display: inline-block;
+ width: 45%;
+ position: relative;
}
#logo-header {
+ height: 200px;
display: flex;
justify-content: flex-start;
align-items: center;
@@ -58,40 +87,137 @@ a:link:active, a:visited:active {
margin-left: 30px;
}
-main {
- padding: 25px;
+nav
+{
+ line-height: 2rem;
+ background-color: darkgrey;
+ text-align: center;
+ height: 32px;
+ display: inline-flex;
+ width: 100%;
+ justify-content: center;
+}
+
}
+@media only screen and (min-width: 780px) {
+#mainheader {
+ background-color: var(--primary-color);
+ height: 80px;
+ font-size: 3rem;
+ color: white;
+}
+#center-articles {
+ position: absolute;
+ display: inline-block;
+ width: 100%;
+}
+/* Describes the styling of all <article> elements */
+article {
+ border-radius: 25px;
+ border: 1px solid var(--primary-color);
+ color: var(--light-text-color);
+ margin: 10px 0 0 2.3%;
+ display: inline-block;
+ width: 30%;
+ position: relative;
+}
+
+#logo-header {
+ height: 200px;
+ display: flex;
+ justify-content: flex-start;
+ align-items: center;
+}
+
+#logo-header img {
+ margin-left: 30px;
+}
nav
{
- height: 2rem;
line-height: 2rem;
background-color: darkgrey;
text-align: center;
+ height: 32px;
+ display: inline-flex;
+ width: 100%;
+ justify-content: center;
+
+}
+
+
+}
+
+#sticky-header {
+ display: block;
+ z-index: +1;
+}
+
+
+/* The sticky class is added to the header with JS when it reaches its scroll position */
+.sticky {
+ position: fixed;
+ top: 0;
+ width: 100%
+}
+
+/* Add some top padding to the page content to prevent sudden quick movement (as the header gets a new position at the top of the page (position:fixed and top:0) */
+.sticky + .content {
+ padding-top: 102px;
+}
+a:link, a:visited {
+ color: white;
}
+a:hover {
+ color: brown;
+}
+
+a:link:active, a:visited:active {
+ color: green;
+}
+
+main {
+ position: relative;
+}
+
+
/* Describes the styling of all elements with class="parkname", note the . in front of parkname */
.parkname {
+ border-radius: 23px 23px 0 0;
background-color: var(--primary-color);
color: white;
font-size: 2rem;
font-weight: bold;
text-transform: uppercase;
+ display: flex;
+ justify-content: center;
+ align-items: center;
+ height: 80px;
}
-/* Describes the styling of all <article> elements */
-article {
- border: 1px solid var(--primary-color);
- color: var(--light-text-color);
- margin: 5px;
- display: block;
- top: 50%;
- left: 50%;
+/* Describes the styling of all elements with class="parkname", note the . in front of parkname */
+.parkdescription {
+ font-size: 1rem;
+ text-align: center;
+ height: 30px;
+ margin: 15px 15px 0 15px;
}
.order {
padding-top: 25px;
+ text-align:center;
+}
+
+.prices {
+ margin-bottom: 15px;
+ margin-left: 15px;
+ margin-right: 15px;
+}
+
+.total {
+ margin: 10px;
}
.badge {
@@ -103,6 +229,13 @@ article {
border-radius: 25px;
}
+.adultinput {
+ width:100%;
+}
+
+.kidsinput {
+ width:100%;
+}
.orderbutton {
background: hsl(170deg 0% 64%);
@@ -115,10 +248,14 @@ article {
}
.front {
+ font-size: 1rem;
+ padding: 6px 15px;
+
+ padding: 10px 9px;
+ font-size: 1.2rem;
+
display: block;
- padding: 12px 42px;
border-radius: 12px;
- font-size: 1.25rem;
background: var(--primary-color);
color: white;
transform: translateY(-4px);
@@ -129,12 +266,12 @@ article {
.disabled {
display: block;
- padding: 12px 42px;
border-radius: 12px;
- font-size: 1.25rem;
background: grey;
color: white;
transform: translateY(-2px);
+ padding: 10px 9px;
+ font-size: 1.2rem;
}
.orderbutton:hover .front {