// Variables $red: #ad0000; $radius: 2px;/* 3px */ // Placeholder selectors @mixin transition($element) {transition: $element .25s ease;} /* Base */ html, body { margin: 0; padding: 0; } /* Typography */ html {font-size: 16px;} * {box-sizing: border-box;} body {font: 1em 'Roboto', sans-serif;} h1 {font-size: 1.5em;} h2 {font-size: 1.3em} h3 {font-size: 1.1em;} p {font-size: 1em;} /* Layout */ .window { position: relative; margin: 1em auto; padding: .5em; width: 320px; height: 480px; box-shadow: 0 0 5px #777; } /* Navigation */ header { position: absolute; top: 0; left: 0; //background: #8e44ad; width: 100%; height: 3em; } header > span { position: absolute; top: .5em; color: #999; } header > span:first-of-type { left: .5em; font-size: .8em; } header > span:last-of-type { right: .5em; font-size: 1em; } header .header-list { position: relative; height: 3em; background: #8e44ad; } header .header-list > li { float: left; &:last-child {float: right;} } .header-list li .fa { display: block; width: 2em; text-align: center; @include transition(background); &:first-child { &:focus, &:hover {background: #7f3d9b;} &:active {background: #9b50ba;} } &:last-child { &:focus, &:hover {background: #7f3d9b;} &:active {background: #9b50ba;} } } /* Header info list */ .header-list > li:nth-child(2) { width: 69%; text-align: center; } .header-list li:first-child:focus, .header-list li:first-child:hover > .inner-list {display: block;} header .fa-ellipsis-h, header h1, header .fa-cog { display: inline; color: #fff; font-size: 1.5em; font-weight: 300; line-height: 2em; text-align: center; cursor: default; } header .fa {cursor: pointer;} /* Inner info list */ .inner-list { display: none; position: absolute; left: 0; z-index: 99; background: #fff; box-shadow: 1px 1px 5px -1px #aaa; } .inner-list li { width: 6em; line-height: 2em; text-align: left; cursor: pointer; @include transition(background); &:first-child, &:nth-child(2) {border-bottom: .1em solid #ddd;} &:focus, &:hover {background: #f2f2f2;} &:active {background: #ffffff;} } .inner-list li a { color: #000; text-decoration: none; padding-left: .8em; } /* Pages */ .pages { position: relative; top: 2.5em; width: 100%; height: 21em; } .pages > li { position: absolute; float: left; width: 100%; } .finished-page, .content-page, .about-page, .settings-page { position: relative; padding-top: .5em; width: 100%; height: 21em; background: #fff; overflow-y: auto; } /* Class for switching mechanism */ .pageSwitcher {z-index: 10;} /* Content page */ .content-page {z-index: 4;} .message { position: relative; top: .5em; //margin-top: .25em; background: #fff; color: orange; border: .1em solid #ddd; border-radius: $radius; line-height: 2em; text-indent: .5em; cursor: default; &:first-child {position:relative; top: .5em;} &:hover {background: #f9f9f9;} } .check { position: relative; top: .25em; right: .25em; float: right; } .check:before { position: absolute; top: 0; right: 0; content: ""; width: 1.4em; height: 1.4em; background: #fff; border: .1em solid #ddd; border-radius: $radius; } .check:active:before, .check:checked:before { content: "\f00c"; color: #2ecc71; font-family: 'fontAwesome'; line-height: 1.4em; text-align: center; } .check:hover:before {background: #f9f9f9;} /* Finished page*/ .finished-page {z-index: 3;} /* About page */ .about-page { z-index: 2; color: #999; } .about-page h2 { line-height: 2em; text-align: center; } .about-page p {margin-bottom: .5em;} .about-page a { color: $red; text-decoration: none; @include transition(background); &:focus, &:hover {color: #940000;} &:active {color: #c70000;} } .soc-media {margin-left: 1em;} .soc-media li {margin: .25em 0;} .soc-media i { display: inline-block; width: 1.5em; font-size: 1.1em; } /* Settings page */ .settings-page {z-index: 1;} .settings-colors li { border: .1em solid #ddd; border-radius: $radius; line-height: 2em; text-indent: .5em; } .settings-colors label { display: block; width: 100%; } .settings-colors li:first-child > label {color: #000;} .settings-colors li:nth-child(2) > label {color: #3498db;} .settings-colors li:nth-child(3) > label {color: #1abc9c;} .settings-colors li:nth-child(4) > label {color: orange;} .settings-colors li:last-child > label {color: $red;} /* Color options */ .orange {color: orange;} .red {color: $red;} .black {color: #000;} .green {color: #1abc9c;} .blue {color: #3498db;} /* Input */ .input { display: block; position: relative; bottom: -3.75em; width: 100%; height: 3em; border: .1em solid #ddd; border-radius: $radius; font-family: 'Roboto', sans-serif; outline: 0; resize: none; } /* Buttons */ .buttons { position: absolute; bottom: .5em; width: 100%; } .buttons button { width: 30.9%; height: 2em; color: #fff; border: 0; border-radius: $radius; //box-shadow: 0 0 8px #777; outline: 0; cursor: pointer; @include transition(background); &:first-child { background: #e74c3c; &:focus, &:hover {background: #e43725;} &:active {background: #ea6153;} } &:nth-child(2) { background: #3498db; &:focus, &:hover {background: #258cd1;} &:active {background: #4aa3df;} } &:last-child { background: #2ecc71; &:focus, &:hover {background: #29b765;} &:active {background: #40d47e;} } }