diff options
| author | Mike Vink <mike1994vink@gmail.com> | 2021-06-03 10:45:37 +0200 |
|---|---|---|
| committer | Mike Vink <mike1994vink@gmail.com> | 2021-06-03 10:45:37 +0200 |
| commit | 0114244663fbb8cd45a7cc4489bda469b31f0698 (patch) | |
| tree | 0b4836e947cbbb1514143cb76cd85b050a586277 /client/style/main.css | |
| parent | 798101f8fa2c5e3a0cdb5fbbbb053976bce96c63 (diff) | |
shoppingbasket implementatie
Diffstat (limited to 'client/style/main.css')
| -rw-r--r-- | client/style/main.css | 79 |
1 files changed, 76 insertions, 3 deletions
diff --git a/client/style/main.css b/client/style/main.css index b6aabb5..7ec539a 100644 --- a/client/style/main.css +++ b/client/style/main.css @@ -15,6 +15,39 @@ body { color: white; } +#sticky-header { + display: block; + z-index: +1; +} + +#center-articles { + position: relative; +} + +/* 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: cyan; +} + +a:link:active, a:visited:active { + color: green; +} + #logo-header { display: flex; justify-content: flex-start; @@ -33,7 +66,9 @@ nav { height: 2rem; line-height: 2rem; - background-color: var(--accent-color); + background-color: darkgrey; + text-align: center; + } /* Describes the styling of all elements with class="parkname", note the . in front of parkname */ @@ -50,6 +85,9 @@ article { border: 1px solid var(--primary-color); color: var(--light-text-color); margin: 5px; + display: block; + top: 50%; + left: 50%; } .order { @@ -58,9 +96,44 @@ article { .badge { background-color: red; - display: none; + display: inline-block; color: white; font-weight: bold; width: 25px; border-radius: 25px; -}
\ No newline at end of file +} + + +.orderbutton { + background: hsl(170deg 0% 64%); + border-radius: 12px; + border: none; + padding: 0; + cursor: pointer; + outline-offset: 4px; + margin: 20px; +} +.front { + display: block; + padding: 12px 42px; + border-radius: 12px; + font-size: 1.25rem; + background: var(--primary-color); + color: white; + transform: translateY(-4px); + transition: + transform 600ms + cubic-bezier(.3, .7, .4, 1); +} + +.orderbutton:hover .front { + transform: translateY(-6px); + transition: + transform + 250ms + cubic-bezier(.3, .7, .4, 1.5); +} + +.orderbutton:active .front { + transform: translateY(-2px); +} |
