Webbserverprogrammering 1

Show sourcecode

The following files exists in this folder. Click to view.

public_html/exercises/Projekt/Företag/

Bilder/
Huvudmeny.html
faq.html
itemDetailRenderer.js
kontakt.html
omOss.html
shop.html
shopRenderer.js
style.css

style.css

133 lines ASCII Windows (CRLF)
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

.top-menu-link {
    margin: 10px
}

#menu-background {
    padding: 5px;
    width: 100%;
    position: absolute;
    background-color: rgb(29, 29, 29);
}

#top-menu {
    display: flex;
    padding: 5px;
    width: 80%;
    position: fixed;
    align-items: center;
    justify-content: center;
    position: absolute;
    transform: translate(-50%);
    left: 50%;
}

#menu-logo-cart {
    padding: 5px;
    width: 100%;
    display: flex;
    position: absolute;
    justify-content: space-between;
}
#logo img {
    width: 70px;
}
#cart img {
    width: 70px;
}

body {
    margin: 0px;
    background-color: rgb(29, 29, 29);
}

.top-menu-link a {
    color: rgb(196, 190, 124);
    font-weight: 1000;
}

.heightcontrol img {
    width: 70px;
    visibility: hidden;
}

.main-image {
    height: 80%;
    overflow: hidden;
    position: fixed;
    z-index: -2;
}

.main-image-ghost {
    height: 80%;
    transform: translate(-50%);
    left: 50%;
    overflow: hidden;
    visibility: hidden;
}

.main-image-container {
    height: fit-content;
    overflow: hidden;
    z-index: -1;
}

.main-text {
    color: rgb(196, 190, 124);
    background-color: rgb(29, 29, 29);
    transform: translate(-50%, -50%);
    position: absolute;
    top: 40%;
    left: 50%;
    font-size: 500%;
    text-align: center;
}

.info-container {
    background-color: rgb(29, 29, 29);
    padding: 5%;
    display: flex;
    width: 100%;
    flex-direction: column;
}

.info-container h1 {
    color: rgb(196, 190, 124);
}

.info-container h3 {
    color: rgb(196, 190, 124);
}

#left-text {
    align-self: flex-start;
    width: 30%;
}

#right-text {
    align-self: flex-end;
    width: 30%;
}

.shop-button {
    align-self: center;
    padding: 10px;
    border-radius: 5px;
    background-color: rgb(196, 190, 124);
    color: rgb(29, 29, 29);
    text-decoration: none;
    font-size: x-large;
    font-weight: bolder;
    transition: 0.3s;
    margin: 5px;
}

.shop-button:hover {
    margin: 0;
    padding: 15px;
}