| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371 |
- /**
- * Stylesheet
- *
- * @namespace LUNGO.Theme
- * @class Default
- *
- * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
- */
- @import "constants.less";
- @import "mixins.less";
- @theme: #999;
- @theme-light: #ccc;
- @theme-dark: #333;
- @theme-highlight: #93d6e7;
- @theme-highlight-color: #1b6777;
- @theme-highlight-text-shadow: 0 1px 0 rgba(255,255,255,0.2);
- @color-border: #2566a4;
- @color-border-light: #64b9e2;
- @color-main: #2c8bca;
- @color-main-dark: #154f93;
- @color-secondary: #353b42;
- @color-secondary-dark: #272a2d;
- @background-secondary: #353b42 -webkit-gradient(linear, left top, left bottom, color-stop(0%, #353b42), color-stop(100%, #272a2d));
- .app {
- background: @black;
- font-family: Helvetica, Arial, sans-serif;
- }
- /* @group <header> & <footer> & <article> */
- section > header {
- background: @theme;
- .box-shadow(~"inset 0 1px 0 "@theme-light~", inset 0 -1px 0 "@theme-dark);
- z-index: 2;
- & .title , .subtitle {
- color: @white;
- }
- }
- section > footer {
- background: @theme-dark;
- border-top: 1px inset @black;
- color: @white;
- }
- article {
- background: @theme-light;
- }
- /* @end */
- /* @group <nav> */
- header nav {
- & a {
- color: @white;
- }
- &:not(.plain) {
- & a {
- .box-shadow(~"1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.2)");
- &.accept { background: rgba(0, 255, 0, 0.4); }
- &.cancel { background: rgba(255, 0, 0, 0.4); }
- }
- &.onright a { .box-shadow(~"-1px 0 0 rgba(255,255,255,0.2), inset 1px 0 0 rgba(0,0,0,0.2)"); }
- & a:active { .box-shadow(~"inset 1px 0 1px rgba(0,0,0,0.1), inset -1px 0 0 rgba(0,0,0,0.1), inset 0 0 42px rgba(0,0,0,0.5)"); }
- }
- &.plain a:active { text-shadow: 0 0 4px rgba(255,255,255,0.5); }
- }
- .toolbar a {
- color: @theme-light;
- &.current, &.active {
- color: @white;
- background: @black;
- .box-shadow(~"inset 0 1px 1px rgba(0,0,0,1), -1px 0 0 rgba(255,255,255,0.05), 1px 1px 0 rgba(255,255,255,0.05)");
- }
- }
- .groupbar {
- background: @theme-dark;
- // border-bottom: solid 1px rgba(0,0,0,1);
- //.box-shadow(~"inset 0 1px 8px rgba(0,0,0,0.3)");
- & a {
- color: @theme;
- &.current {
- color: @white;
- .box-shadow(inset 0 -3px 0 @white);
- //border-bottom: inset 3px @white;
- }
- }
- }
- /* @end */
- /* @group <aside> */
- aside {
- color: #fff;
- background: #272727;
- background: #333;
- & header, footer {
- .box-shadow(~"inset 0 1px 0 rgba(0,0,0,0.1), inset 0 -1px 0 rgba(255,255,255,0.1)");
- background: #272727;
- }
- & article {
- background: none;
- }
- & .list {
- & ul {
- background: none;
- }
- & li {
- color: #F0F0F0;
- border-bottom: 1px solid #2f2f2f;
- & strong {
- text-shadow: 0 1px 1px black;
- color: #fff;
- }
- & small {
- color: rgba(255,255,255,0.3);
- }
- }
- }
- & a {
- color: @theme;
- }
- & a.current {
- background: #2f2f2f;
- color: @white;
- }
- }
- section.aside {
- .box-shadow(~"-4px 0 8px rgba(0,0,0,0.5)");
- &.onright { .box-shadow(~"4px 0 8px rgba(0,0,0,0.5)"); }
- }
- @media handheld, only screen and (min-width: 768px) {
- section.current, section.show {
- .box-shadow(~"-4px 0 8px rgba(0,0,0,0.5)");
- &.onright { .box-shadow(~"4px 0 8px rgba(0,0,0,0.5)"); }
- }
- }
- /* @end */
- /* @group .list */
- .list, .list li:not(.toolbar) a { color: #2a2a2a; }
- .list {
- & ul {
- background: #fff;
- }
- & li {
- border-bottom: 1px inset @theme-light;
- &:last-child { border-bottom: none; }
- &.selectable:active {
- background: @theme-light;
- color: @theme-dark;
- & small, & .onright:not(.bubble), & strong {
- color: @white;
- text-shadow: none;
- }
- }
- & small, & .onright:not(.bubble) {
- color: @theme;
- }
- & strong {
- color: @theme-dark;
- }
- }
- &.indented li {
- /*
- border-left: solid 1px #e1e1e1;
- border-right: solid 1px #e1e1e1;
- &:first-child { border-top: solid 1px #e1e1e1; }
- &:last-child { border-bottom: solid 1px #e1e1e1; }
- */
- }
- & .anchor {
- color: @theme-dark;
- background: @theme-light;
- border-bottom: none;
- &.contrast {
- background: @theme-dark;
- color: @theme-light;
- }
- }
- & .toolbar {
- border-bottom-color: rgba(0,0,0,0.2);
- & .toolbar a {
- .box-shadow(~"1px 0px 0px #d9d9d9");
- &:last-child { .box-shadow(none); }
- &.current {
- background: transparent;
- color: #333;
- text-shadow: none !important;
- }
- }
- }
- }
- /* @end */
- /* @group widgets */
- .splash {
- background: @theme-dark;
- color: #fff;
- text-shadow: 0px 1px 0px rgba(0,0,0,0.2);
- }
- &.indented {
- & ul {
- border: 1px solid @theme;
- .box-shadow(0 1px 1px rgba(0,0,0,0.05));
- }
- & li {
- &:first-child {
- }
- &:last-child {
- }
- }
- }
- /* @group .button */
- .button {
- color: @white;
- font-weight: bold;
- &:active { }
- &.default {
- background: @theme;
- &:active, &.active { background: @theme-dark;}
- }
- }
- /* @end */
- /* @group <form> */
- form {
- & label {
- color: #999;
- }
- }
- input:not([type=checkbox]), textarea, select {
- border: 1px solid #ccc;
- color: @theme-dark;
- border-radius: 0px;
- font-family: Helvetica, Arial, sans-serif;
- &:focus {
- background: @theme-light;
- border-color: @theme-dark;
- }
- &.rounded {
- border-top: none;
- &:last-of-type { border-bottom: none; }
- }
- }
- .select:after {
- background: #ccc;
- color: white;
- }
- /* @group .range */
- input[type="checkbox"] + span, input[type="radio"] + span {
- color: #fff;
- background: @theme;
- }
- input[type="checkbox"] + span::before,
- input[type="radio"] + span::before {
- background: @theme-light;
- }
- input[type="checkbox"]:checked + span,
- input[type="radio"]:checked + span {
- background: @theme-dark;
- }
- /* @end */
- /* @group range */
- input[type="range"] {
- background-color: @theme-light;
- &:active {
- background: @theme;
- }
- &::-webkit-slider-thumb {
- background: @theme;
- }
- &:active::-webkit-slider-thumb {
- background: @theme-dark;
- }
- }
- /* @end */
- /* @group .progress */
- .progress {
- .labels {
- font-weight: bold;
- color: @theme;
- }
- & .bar {
- background: @theme-light;
- & .value {
- background: @theme-dark;
- & .label {
- font-weight: bold;
- color: @white;
- }
- }
- }
- }
- /* @end */
- /* @end */
- .bubble {
- color: #fff;
- &.count {
- background: @theme;
- }
- }
- header .bubble.count {
- background: @theme-dark;
- }
- article .list .bubble {
- .box-shadow(~'inset 1px 0 0 rgba(0,0,0,0.3), inset 0 1px 0 rgba(0,0,0,0.3), inset -1px 0 0 rgba(0,0,0,0.3), inset 0 -1px 0 rgba(0,0,0,0.3)');
- }
- aside .list .bubble {
- background: rgba(0,0,0,0.25);
- .box-shadow(~'inset 0 1px 0 #1b212a), inset 0 -1px 0 #454c56');
- .box-shadow(~'inset 0 1px 0 rgba(0,0,0,0.3), inset 0 -1px 0 rgba(255,255,255,0.2)');
- }
- /* @end */
|