All Downloads are FREE. Search and download functionalities are using the official Maven repository.

static.css.coffeenet-navbar.css Maven / Gradle / Ivy

Go to download

This starter is designed to provide the CoffeeNet navigation components

The newest version!
html {
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}
*, *:before, *:after {
    -webkit-box-sizing: inherit;
    -moz-box-sizing: inherit;
    box-sizing: inherit;
}

.coffeenet--html {
    height: 100%;
}
.coffeenet--body {
    display: flex;
    min-height: 100%;
    font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    margin: 0;
    line-height: 1.42857143;
}

.coffeenet--main {
    width: 100%;
}

.coffeenet--header-container {
    display: flex;
    flex-direction: column;
    min-height: 100%;
    padding: 20px;
    box-shadow: 0 0 5px #9E9E9E;
    background-color: #404042;
    width: 65px;
}
.coffeenet--header-container.visible {
    width: 200px;
}

.coffeenet--header-container-information {
    flex: 1 0 auto;
}

.coffeenet--header-container-version {
    margin-top: 40px;
    text-align: center;
}

.coffeenet--header-container-version > img {
    max-width: 50px;
}

/** style resets **/
.coffeenet--nav-container {
    margin-top: 40px;
}
.coffeenet--nav-container ul {
    margin: 0;
    padding: 0;
}
.coffeenet--nav-container a {
    color: #337ab7;
}
.coffeenet--nav-container a:hover,
.coffeenet--nav-container a:focus,
.coffeenet--nav-container a:active {
    color: #23527c;
    text-decoration: none;
}

/** Hamburger Menu **/
.coffeenet--nav-hamburger {
    position: absolute;
    left: 20px;
    top: 20px;
    display: block;
    cursor: pointer;
    height: 21px;
    margin-bottom: 20px;
    padding-top: 9px;
}
.coffeenet--nav-hamburger span,
.coffeenet--nav-hamburger span::after, .coffeenet--nav-hamburger span::before {
    display: block;
    width: 25px;
    height: 2px;
    background-color: #FAFAFA;
    transition-delay: 0.2s;
}
.coffeenet--nav-hamburger span {
    position: relative;
    transition-duration: 0s;
}
.coffeenet--nav-hamburger span::after, .coffeenet--nav-hamburger span::before {
    display: block;
    content: '';
    position: absolute;
    transition-duration: 0.2s;
}

.coffeenet--nav-hamburger span::before {
    margin-top: -6px;
}

.coffeenet--nav-hamburger span::after {
    margin-top: 6px;
}

.coffeenet--header-container.visible .coffeenet--nav-hamburger span {
    background-color: transparent;
}

.coffeenet--header-container.visible .coffeenet--nav-hamburger span::before, .coffeenet--header-container.visible .coffeenet--nav-hamburger span::after {
    margin-top: 0;
    transition-delay: 0s, 0.2s;
}

.coffeenet--header-container.visible .coffeenet--nav-hamburger span::before {
    transform: rotate(45deg);
}

.coffeenet--header-container.visible .coffeenet--nav-hamburger span::after {
    transform: rotate(-45deg);
}

/* Avatar and Name */
.coffeenet--personalisation-container {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.coffeenet--avatar {
    border: 3px solid #CC7F56;
    border-radius: 100%;
    background-color: #FAFAFA;
    padding: 2px;
}

.coffeenet--avatar img {
    border: none;
    border-radius: 100%;
    width: 33px;
    height: 33px;
    vertical-align: middle;
}
.coffeenet--avatar img:hover {
    animation: SPIN 2s infinite;
    transform: rotateY(-226deg);
}

@keyframes SPIN {
    0%   { transform: rotateY(0deg)   }
    100% { transform: rotateY(360deg) }
}

.coffeenet--header-container.visible .coffeenet--avatar {
    padding: 5px;
}

.coffeenet--header-container.visible .coffeenet--avatar img {
    width: 64px;
    height: 64px;
}

.coffeenet--username {
    margin: 10px 0 0 0;
    padding: 0;
    font-size: 1.5em;
    font-family: inherit;
    font-weight: 500;
    line-height: 1.1;
    color: #FAFAFA;
}

.coffeenet--username a {
    color: #FAFAFA;
    text-decoration: none;
}

.coffeenet--username a:hover {
    text-decoration: none;
    color: #c4c4c4;
}

.coffeenet--username a:hover, .coffeenet--username a:focus, .coffeenet--username a:active {
    text-decoration: none;
    color: #c4c4c4;
}

.coffeenet--username,
.coffeenet--header-container nav {
    display: none;
}

.coffeenet--header-container.visible .coffeenet--username,
.coffeenet--header-container.visible nav {
    display: block;
}

/* Applications */
.coffeenet--nav-section-title {
    margin: 20px 0 5px 0;
    padding: 0;
    font-size: 1em;
    font-weight: 500;
    color: #F6D09E;
    text-transform: uppercase;
    line-height: 1.1;
}

.coffeenet--nav-section-list {
    margin-top: 10px;
    display: flex;
    flex-direction: column;
}

.coffeenet--nav-section-list li {
    display: flex;
    align-items: center;
}

.coffeenet--nav-section-list li > a {
    color: #FAFAFA;
    flex-grow: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    text-decoration: none;
}

.coffeenet--nav-section-list li > a:hover, .coffeenet--nav-section-list li > a:focus, .coffeenet--nav-section-list li > a:active {
    text-decoration: none;
    color: #c4c4c4;
}

.coffeenet--nav-section-list li > a:hover {
    text-decoration: none;
    color: #c4c4c4;
}

.coffeenet--nav-section-list li > a,
.coffeenet--nav-section-list li > a + span {
    transition: background-color ease 150ms;
    padding: 5px 0;
    display: block;
}

.coffeenet--button-logout {
    display: flex;
    align-items: center;
    margin-top: 40px;
    border: none;
    background-color: inherit;
    color: #FAFAFA;
    width: 100%;
    padding: 0.3em 0;
    transition: background-color ease 150ms;
    cursor: pointer;
}

.coffeenet--button-logout:focus, .coffeenet--button-logout:hover, .coffeenet--button-logout:active {
    color: #a9a9a9;
}

.coffeenet--button-logout:hover {
    /* outline should exist on tab navigation but not on mouse click */
    outline: none;
}

.coffeenet--button-logout-icon {
    margin-right: .3em;
    fill: #FAFAFA;
    width: 20px;
}

.coffeenet--button-logout:focus .coffeenet--button-logout-icon, .coffeenet--button-logout:hover .coffeenet--button-logout-icon, .coffeenet--button-logout:active .coffeenet--button-logout-icon {
    fill: #a9a9a9;
}


@media screen and (min-width: 440px) {
    /*
        styling is for smaller devices by default
        so we have to swap styling (by class names) on larger devices
        small device: navbar should be hidden by default
        big device: navbar should be visible by default
        clicking coffeenet--hamburger toggles the `.visible` class which actually means hide me on a big screen
     */
    .coffeenet--header-container.visible {
        width: 65px;
    }

    .coffeenet--header-container:not(.visible) {
        width: 200px;
    }

    .coffeenet--header-container.visible .coffeenet--avatar {
        padding: 2px;
    }

    .coffeenet--header-container:not(.visible) .coffeenet--avatar {
        padding: 5px;
    }

    .coffeenet--header-container.visible .coffeenet--avatar img {
        width: 33px;
        height: 33px;
    }

    .coffeenet--header-container:not(.visible) .coffeenet--avatar img {
        width: 64px;
        height: 64px;
    }

    .coffeenet--header-container.visible .coffeenet--username {
        display: none;
    }

    .coffeenet--header-container:not(.visible) .coffeenet--username {
        display: block;
    }

    .coffeenet--header-container.visible nav {
        display: none;
    }

    .coffeenet--header-container:not(.visible) nav {
        display: block;
    }

    .coffeenet--header-container:not(.visible) .coffeenet--nav-hamburger span {
        background-color: transparent;
    }

    .coffeenet--header-container:not(.visible) .coffeenet--nav-hamburger span::before,
    .coffeenet--header-container:not(.visible) .coffeenet--nav-hamburger span::after {
        margin-top: 0;
        transition-delay: 0s, 0.2s;
    }

    .coffeenet--header-container:not(.visible) .coffeenet--nav-hamburger span::before {
        transform: rotate(45deg);
    }

    .coffeenet--header-container:not(.visible) .coffeenet--nav-hamburger span::after {
        transform: rotate(-45deg);
    }

    .coffeenet--header-container.visible .coffeenet--nav-hamburger span {
        background-color: #FAFAFA;
    }

    .coffeenet--header-container.visible .coffeenet--nav-hamburger span::before {
        transition-delay: 0s;
        transform: rotate(0deg);
        margin-top: -6px;
    }

    .coffeenet--header-container.visible .coffeenet--nav-hamburger span::after {
        transition-delay: 0s;
        transform: rotate(0deg);
        margin-top: 6px;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy