| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386 |
- /**
- * Stylesheet
- *
- * @namespace Lungo.Theme
- * @class Default
- *
- * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
- */
- @import "mixins.less";
- @import url("http://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700");
- @import url("http://fonts.googleapis.com/css?family=Exo:200,400,700");
- @import url("http://fonts.googleapis.com/css?family=Titillium+Web:200,400,700");
- @theme: #0093D5;
- @theme-light: #39ABE1;
- @theme: #2A95D3;
- @theme-light: #25AEEB;
- @theme-dark: #222;
- @theme-dark-current: #111;
- @theme-dark-nav: #888;
- @theme-dark-nav-active: #fff;
- @theme-contrast: #444;
- @aside: #191919;
- @color: #484a49;
- @notification-error: #e33100;
- @notification-alert: #ffb515;
- @notification-success: #009600;
- @form-border-radius: 1px;
- .app {
- background: #000;
- font-family: "Titillium Web", "Exo","Open Sans Condensed", Helvetica, Arial, sans-serif;
- }
- .theme, li.theme, a.theme {
- background: @theme-light;
- &:active { background: @theme;}
- }
- /* @group <header> & <footer> & <article> */
- section > header {
- background-color: @theme;
- .box-shadow(~"inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -2px 0 rgba(255,255,255,0.1), inset 0 -1px 0 rgba(0,0,0,0.5)");
- & .title {
- color: #fff;
- text-shadow: 0 1px 0 rgba(0,0,0,0.2);
- }
- & .subtitle {
- color: #fff;
- opacity: 0.7;
- }
- }
- section > footer {
- background-color: @theme-dark;
- .box-shadow(inset 0 3px 0 #333);
- & > nav a {
- .box-shadow(1px 0 0 #151515);
- &.current {
- color: @theme-dark-nav-active;
- background: @theme-dark-current;
- .box-shadow(~"-1px 0 0 #252525, 1px 0 0 #252525, inset 0 3px 0 #2A95D3");
- }
- }
- }
- section > article, section > [data-control="pull"] { background: #f4f5f5; }
- [data-control="pull"] {
- color: #666;
- text-shadow: 0 1px 0 white;
- }
- aside {
- color: #fff;
- background: @aside;
- & header, footer {
- background: @theme-dark-current;
- text-shadow: none;
- }
- & header {
- .box-shadow(inset 0 -1px 0 rgba(0,0,0,0.2));
- }
- & article { background: none; }
- & nav a {
- &.current .icon { color: white; }
- &:not(.current) .icon {color:@theme-dark-nav;}
- }
- & .list li {
- background: none;
- border-bottom-color: @theme-dark;
- &.current {
- background: @theme;
- border-bottom-color: @theme;
- & strong, & small, & .icon { color: #fff; }
- }
- & strong, & small, & .icon { color: @theme-dark-nav; }
- }
- }
- section.aside {
- .box-shadow(~"-1px 0 0 rgba(0,0,0,0.2)");
- &.right { .box-shadow(~"4px 0 8px rgba(0,0,0,0.5)"); }
- }
- /* @end */
- /* @group <nav> */
- header nav {
- & a { color: #fff; }
- &.box {
- &:not(.right) a { .box-shadow(~"1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.2)"); }
- &.right a { .box-shadow(~"-1px 0 0 rgba(255,255,255,0.2), inset 1px 0 0 rgba(0,0,0,0.2)"); }
- & a:active { background: rgba(0,0,0,0.1); }
- }
- &.button a {
- border-radius: @form-border-radius;
- .linear-gradient(top, ~','rgba(0,0,0,0.0), ~','rgba(0,0,0,0.1));
- box-shadow: 0 1px 0 rgba(255,255,255,0.2), inset 0 0 3px rgba(0,0,0,0.3), inset 0 1px 1px rgba(0, 0, 0, .5);
- &:active { background: rgba(0,0,0,0.2); }
- }
- }
- section > nav.groupbar {
- background-color: @theme-dark;
- & > a.current { .box-shadow(inset 0 -3px 0 @theme); }
- }
- footer > nav > a, nav.groupbar > a{
- color: @theme-dark-nav;
- &.current { color: @theme-dark-nav-active; }
- }
- /* @end */
- /* @group <aside> */
- /* @group .list */
- @list-border: #ddd;
- @list-color: #2a2a2a;
- .list {
- & li {
- background: #fff;
- border-bottom: inset 1px @list-border;
- &, & a { color: @list-color; }
- &.dark {
- background: @theme-contrast;
- &, & a { color: #fff; }
- }
- &.selectable:active, &.theme {
- background: @theme-light;
- &, & a { color: #fff; }
- }
- &.light {
- background: @list-border;
- text-shadow: 0 1px 0 #eee;
- &, & a { color: @theme-dark-nav; }
- }
- &.anchor {
- background: @theme-dark;
- border-bottom: none;
- &, & a { color: #fff !important; }
- }
- & small, & .right:not(.bubble) { opacity: 0.8; }
- }
- &:not(.indented) li {
- &.dark, &.theme, &.light {
- border-bottom-color: rgba(0,0,0,0.1);
- }
- }
- &.indented li {
- }
- }
- /* @end */
- /* @group widgets */
- .splash {
- background: @theme-dark;
- color: #fff;
- text-shadow: 0 1px 0px rgba(0,0,0,0.2);
- }
- /* @group .button */
- .button, button {
- .border-radius(@form-border-radius);
- .box-shadow(~"inset 0 2px 0 rgba(255,255,255, 0.2)");
- font-weight: bold;
- text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
- &:active { .box-shadow(~"inset 0 10px 30px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.3)"); }
- }
- // & .button, button
- // background-color: color
- // color: white
- // border-radius 1px
- // box-shadow inset 0 1px 0 rgba(255,255,255,0.2)
- // border: solid 1px rgba(0,0,0,0.1)
- // &:active
- // box-shadow inset 0 0 128px rgba(0,0,0,0.25)
- // border-color: none
- // &.secondary
- // background-color: color_secondary
- // color: #666
- // text-shadow: 0 1px 0 rgba(255,255,255,0.25)
- // &.success
- // background-color: color_success
- // &.alert
- // background-color: color_alert
- // &.transparent
- // background: none !important
- /* @end */
- /* @group <form> */
- @box-shadow-form: ~'inset 0 1px 2px rgba(0,0,0,0.1)';
- @box-shadow-form-active: ~'inset 0 1px 1px rgba(0,0,0,0.1), 3px 0 #f0eeef, 0 3px #f0eeef, -3px 0 #f0eeef, 0 -3px #f0eeef';
- @form-border-color: #D0D4C6;
- label { color: #999; }
- input:not([type=range]), textarea, select {
- border: 1px solid @form-border-color;
- .border-radius(@form-border-radius);
- .box-shadow(@box-shadow-form);
- color: #858585;
- font-family: Helvetica, Arial, sans-serif;
- background: #fff;
- &:focus {
- color: #484a49;
- border-color: @theme;
- .box-shadow(0 0 1px @theme-light);
- }
- &[disabled] {
- background: #ddd;
- border-color: #999;
- color: #999; }
- }
- .select:after {
- background: @form-border-color;
- color: white;
- border-top-right-radius: @form-border-radius;
- border-bottom-right-radius: @form-border-radius;
- }
- /* @group range */
- input[type=range] {
- .box-shadow(@box-shadow-form);
- .border-radius(@form-border-radius);
- &:not(.checkbox) {
- background-color: #c7c7c7;
- &:active { background-color: @theme-light; }
- }
- &.checkbox {
- background-color: #aaaaaa;
- color: rgba(255,255,255,0.6);
- &.active { background-color: @theme-light; }
- }
- &::-webkit-slider-thumb {
- border-radius: @form-border-radius;
- .box-shadow(~"1px 0 rgba(0,0,0,0.2), -1px 0 rgba(0,0,0,0.2), 0 1px rgba(0,0,0,0.2), 0 -1px rgba(0,0,0,0.2)");
- background: #fff; }
- &::-webkit-slider-thumb::after {
- background: #ddd; }
- }
- /* @end */
- /* @group .progress */
- .progress {
- .labels {
- font-size: 12px;
- font-weight: bold;
- line-height: 18px;
- color: #858585;
- }
- & .bar {
- .box-shadow(@box-shadow-form);
- background: #c7c7c7;
- .border-radius(@form-border-radius);
- & .value {
- background-color: @theme-light;
- .border-radius(@form-border-radius);
- & .label {
- float: right;
- margin-right: 3px;
- font-weight: bold;
- color: rgba(0,0,0,0.6);
- text-shadow: 0 1px 0 rgba(255,255,255,0.2) !important;
- font-size: 12px;
- }
- }
- }
- }
- /* @end */
- /* @group .bubble */
- .bubble {
- color: #fff;
- .border-radius(2px);
- &.count { background: @theme; }
- }
- header .count {
- background: @theme-dark !important;
- }
- footer .bubble {
- .box-shadow(~'inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.5)');
- }
- 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); }
- /* @end */
- /* @group .bubble */
- .notification {
- color: #fff;
- & .window {
- &.confirm { background: #333; }
- &.notify {
- text-shadow: 0 1px 0px rgba(0,0,0,0.1);
- .box-shadow(~'inset 0 1px 0 rgba(255,255,255,0.2), inset 0 -1px 0 rgba(0,0,0,0.2), 0px 1px 2px rgba(0,0,0,0.25)');
- &.error { background: @notification-error; }
- &.alert { background: @notification-alert; }
- &.success { background: @notification-success; }
- }
- &.url {
- & .close {
- background: #000;
- border: solid 2px #fff;
- box-shadow: 0 0 4px black;
- }
- }
- }
- }
|