Maingron/MainOS

View on GitHub
Program Files/settings/style.scss

Summary

Maintainability
Test Coverage
body {
    height: 100vh;
    box-sizing: border-box;
        #content {
        display: flex;
        flex-direction: row;
        flex-wrap: nowrap;
        flex-basis: auto;
        height: 100%;
        width: 100%;
    }

    #sidebar {
        width: auto;
        min-width: 10rem;
        background: var(--themecolor);
        left: 0;
        font-size: 1em;
        .sidebaritem {
            display: block;
            width: 100%;
            height: auto;
            text-decoration: none;
            a {
                display: block;
                width: 100%;
                height: 100%;
            }
        }
    }

    #categorycontainer,
    #sidebar {
        outline: 1px solid yellow;
        display: inline-block;
        top: 0;
        position: relative;
    }

    #categorycontainer {
        width: 100%;
    }

    .category {
        display: none;
        &:target {
            display: block;
            position: relative;
            left: 0;
            width: 100%;
            height: 100%;
            overflow: auto;
            border-left: 1px solid #666;
        }
    }
}



body {
    .big_buttons {
        #header {
            height: 3rem;
            button {
                height: 3rem;
                width: 3rem;
            }
        }
    }
    .setting .bool_range {
        height: 2.2rem;
        width: 7rem;
        border-radius: 2.2rem;
    }
}

h1 {
  font-size: 2.5rem;
}

.settingtab {
  display: none;
  position: relative;
  top: 0;
  left: 0;
  height: 90%;
  width: 100%;
  margin: 0;
}

#header {
    padding: 0;
    margin: 0;
    position: relative;
    position: sticky;
    z-index: 200;
    top: 0;
    left: 0;
    display: none;
    height: 2.5rem;
    width: 100%;
    background: var(--themecolor);

    button {
        background: #fff;
        border: 0;
        width: 2.5rem;
        height: 2.5rem;
    }
}


.setting {
    padding: 10px 0;
    border-bottom: 1px solid #666;

    .bool_range {
        -webkit-appearance: none;
        background: var(--themecolor);
        height: 25px;
        width: 80px;
        border-radius: 20px;
        border: 1px solid #fff;
        padding: 0 5px;
        cursor: ew-resize;

        &::-webkit-slider-thumb {
            -webkit-appearance: none;
            background: #fff;
            border-radius: 50%;
            height: 20px;
            width: 20px;
        }
    }
}

@media (prefers-color-scheme: dark) {

  #header button {
    background: var(--black);
  }

  .home button {
    border-color:#fff;
  }

  .setting .bool_range::-webkit-slider-thumb {
    background: #000;
  }
}

@media (max-width: 650px) {
  .home button {
    width: 100%;
  }
}