Chatterbox-IRC/Chatterbox

View on GitHub
client/stylesheets/header.css

Summary

Maintainability
Test Coverage
html {
    height: 100%;
}

body {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 0;
    padding: 0;
    font-family: "Roboto", sans-serif;
}

.title-bar {
    width: 100%;
    height: 30px;
    font-size: 0;
    display: flex;
    flex: 0 0 auto;
    border-bottom: 1px solid #e0e0e0;
    z-index: 0;
}

.tabs {
    padding: 0;
    margin: 0;
    font-size: 0;
    width: auto;
    display: flex;
    flex: 1 1 100%;
    vertical-align: top;
}

.tabs a {
    display: inline-block;
    flex: 0 1 200px;
    height: 30px;
    position: relative;
    z-index: 0;
    text-decoration: none;
    background-color: #f5f5f5;
    border-left: 1px solid #e0e0e0;
}

.tabs a:last-child {
    border-right: 1px solid #e0e0e0;
}

.tabs a.active, .tabs a.active + a, .tabs a:first-child {
    padding-left: 1px;
    border-left: none;
}

.tabs a.active {
    z-index: 1;
    border-bottom: 1px solid #fff;
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.25);
}

.tabs a span {
    line-height: 30px;
    vertical-align: middle;
    font-size: 12px;
    display: block;
    margin-right: 25px;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
    color: #666;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.tabs a img {
    vertical-align: text-bottom;
    width: 16px;
    height: 16px;
    margin: 0 5px;
    display: inline-block;
}

.tabs a span::after {
    width: 20px;
    height: 100%;
    right: 0;
    position: absolute;
    content: "";
    background-image: linear-gradient(to right, rgba(245, 245, 245, 0), rgba(245, 245, 245, 1));
}

.tabs a.active span::after {
    background-image: linear-gradient(to right, rgba(255, 255, 255, 0), rgba(255, 255, 255, 1));
}

.tabs a svg {
    display: block;
    top: 0;
    bottom: 0;
    margin: auto 5px;
    right: 0;
    position: absolute;
    width: 15px;
    height: 15px;
    border-radius: 50%;
}

.tabs a svg circle {
    display: none;
    fill: #666;
}

.tabs a svg:hover circle {
    display: block;
}

.tabs a svg line {
    stroke-width: 100px;
    stroke: #666;
}

.tabs a svg:hover line {
    stroke: #fff;
}

.tabs a.active {
    background-color: #fff;
}

.tabs a.add {
    flex: 0 0 auto;
    display: flex;
}

.tabs a.add svg {
    display: block;
    flex: 0 0 auto;
    position: static;
}

.window-buttons {
    font-size: 0;
    display: inline-block;
    flex: 0 0 auto;
    vertical-align: top;
}

.window-buttons div {
    float: right;
}

.window-buttons a {
    padding: 10px 18px;
    margin: 0;
    height: auto;
    display: inline-block;
}

.window-buttons a svg {
    display: block;
    width: 10px;
    height: 10px;
}

.window-buttons a:hover {
    background-color: #e4e4e4;
}

.window-buttons a:last-child:hover {
    background-color: #e81123;
    fill: #fff;
}