Webbserverprogrammering 1

Show sourcecode

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

webbserverprogrammering/projects/slutprojekt/css/

scanner.css
style.css

style.css

175 lines ASCII Windows (CRLF)
body {
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: black;
}

/* NAV */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

nav {
    position: sticky;
    left: 0;
    top: 0;
    width: 100%;
    height: 75px;
    background: #2980b9;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

nav .navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    max-width: 90%;
    background: #2980b9;
    margin: auto;
}

nav .navbar .logo a {
    color: #fff;
    font-size: 27px;
    font-weight: 600;
    text-decoration: none;
}

nav .navbar .menu {
    display: flex;
}

.navbar .menu li {
    list-style: none;
    margin: 0 15px;
}

.navbar .menu li a {
    color: #fff;
    font-size: 17px;
    font-weight: 500;
    text-decoration: none;
}

section {
    display: flex;
    height: 100vh;
    width: 100%;
    align-items: center;
    justify-content: center;
    color: #96c7e8;
    font-size: 70px;
}

#Home {
    background: #fff;
}

#About {
    background: #f2f2f2;
}

#Category {
    background: #e6e6e6;
}

#Latest {
    background: #fff;
}

#Contact {
    background: #f2f2f2;
}

#Feedback {
    background: #e6e6e6;
}

.button a {
    position: fixed;
    bottom: 20px;
    right: 20px;
    color: #fff;
    background: #2980b9;
    padding: 7px 12px;
    ;
    font-size: 18px;
    border-radius: 6px;
    box-shadow: rgba(0, 0, 0, 0.15);
}


/* OTHER */

.big-flex {
    display: flex;

    flex-wrap: wrap;
    gap: 2rem;
}

.flex-item {
    text-align: center;

    max-width: 20rem;
    border: 2px solid purple;
    border-radius: 0.5rem;
    padding: 1rem;

    text-decoration: none;
    color: black;
}

.flex-item-qr-code-popup {
    position: fixed;
    top: 1rem;
    bottom: 1rem;
    left: 1rem;
    right: 1rem;
}

.hidden {
    display: none;
}

.img-block {
    display: block;
    max-width: 100%;
    border-radius: 0.5rem;
}

.btn-order {
    display: block;
    text-align: center;
    margin: auto;

    border-radius: 0.5rem;
    border: 2px solid purple;
    background-color: white;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}

.btn-order:hover {
    background-color: purple;
    color: white;
}

.btn-order-placed {

    display: block;
    text-align: center;
    margin: auto;

    border-radius: 0.5rem;
    border: 2px solid purple;
    background-color: purple;
    color: white;
    font-size: 1rem;
    padding: 0.5rem 1rem;
}