Lungo.theme.default.less 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace Lungo.Theme
  5. * @class Default
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "constants.less";
  10. // @import "lungo.theme.default.font.less";
  11. @theme: #0093D5;
  12. @theme-light: #39ABE1;
  13. @theme: #2A95D3;
  14. @theme-light: #25AEEB;
  15. @theme-dark: #222;
  16. @theme-dark-current: #111;
  17. @theme-dark-nav: #888;
  18. @theme-dark-nav-active: #fff;
  19. @aside: #191919;
  20. @color: #484a49;
  21. @form-border-radius: 1px;
  22. .app {
  23. background: #000;
  24. font-family: "Roboto", Helvetica, Arial, sans-serif;
  25. }
  26. .theme, li.theme, a.theme {
  27. background: @theme-light;
  28. &:active { background: @theme;}
  29. }
  30. /* @group <header> & <footer> & <article> */
  31. section > header {
  32. background-color: @theme;
  33. .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)");
  34. & .title {
  35. color: #fff;
  36. text-shadow: 0 1px 0 rgba(0,0,0,0.2);
  37. }
  38. & .subtitle {
  39. color: #fff;
  40. opacity: 0.7;
  41. }
  42. }
  43. section > footer {
  44. background-color: @theme-dark;
  45. .box-shadow(inset 0 3px 0 #333);
  46. & > nav a {
  47. .box-shadow(1px 0 0 #151515);
  48. &.current {
  49. color: @theme-dark-nav-active;
  50. background: @theme-dark-current;
  51. .box-shadow(~"-1px 0 0 #252525, 1px 0 0 #252525, inset 0 3px 0 #2A95D3");
  52. }
  53. }
  54. }
  55. section > article { background: #f4f5f5; }
  56. aside {
  57. color: #fff;
  58. background: @aside;
  59. & header, footer {
  60. background: @theme-dark-current;
  61. text-shadow: none;
  62. }
  63. & header {
  64. .box-shadow(inset 0 -1px 0 rgba(0,0,0,0.2));
  65. }
  66. & article { background: none; }
  67. & nav {
  68. & .icon {color:white;}
  69. }
  70. & .list li {
  71. background: none;
  72. border-bottom-color: @theme-dark;
  73. &.current {
  74. background: @theme;
  75. border-bottom-color: @theme;
  76. & strong, & small, & .icon { color: #fff; }
  77. }
  78. & strong, & small, & .icon { color: @theme-dark-nav; }
  79. }
  80. }
  81. section.aside {
  82. .box-shadow(~"-1px 0 0 rgba(0,0,0,0.2)");
  83. &.right { .box-shadow(~"4px 0 8px rgba(0,0,0,0.5)"); }
  84. }
  85. /* @end */
  86. /* @group <nav> */
  87. header nav {
  88. & a { color: #fff; }
  89. &.box {
  90. &:not(.right) a { .box-shadow(~"1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.2)"); }
  91. &.right a { .box-shadow(~"-1px 0 0 rgba(255,255,255,0.2), inset 1px 0 0 rgba(0,0,0,0.2)"); }
  92. & a:active { background: rgba(0,0,0,0.1); }
  93. }
  94. &.button a {
  95. border-radius: @form-border-radius;
  96. .linear-gradient(top, ~','rgba(0,0,0,0.0), ~','rgba(0,0,0,0.1));
  97. 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);
  98. &:active { background: rgba(0,0,0,0.2); }
  99. }
  100. }
  101. section > nav.groupbar {
  102. background-color: @theme-dark;
  103. & > a.current { .box-shadow(inset 0 -3px 0 @theme); }
  104. }
  105. footer > nav > a, nav.groupbar > a{
  106. color: @theme-dark-nav;
  107. &.current { color: @theme-dark-nav-active; }
  108. }
  109. /* @end */
  110. /* @group <aside> */
  111. /* @group .list */
  112. @list-border: #ddd;
  113. @list-color: #2a2a2a;
  114. .list {
  115. & li {
  116. background: #fff;
  117. border-bottom: 1px inset @list-border;
  118. &, & a { color: @list-color; }
  119. &.contrast {
  120. background: @theme-dark;
  121. color: #fff;
  122. }
  123. &.highlight { background: @list-border; }
  124. &.anchor {
  125. background: @theme-dark;
  126. border-bottom: none;
  127. &, & a { color: #fff !important; }
  128. }
  129. &.selectable:active {
  130. background: @theme-light;
  131. &, & a {
  132. color: #fff;
  133. text-shadow: none;
  134. }
  135. }
  136. & small, & .right:not(.bubble) { opacity: 0.8; }
  137. }
  138. }
  139. /* @end */
  140. /* @group widgets */
  141. .splash {
  142. background: @theme-dark;
  143. color: #fff;
  144. text-shadow: 0 1px 0px rgba(0,0,0,0.2);
  145. }
  146. &.indented {
  147. & ul {
  148. border: 1px solid @list-border;
  149. box-shadow: 0 0 4px rgba(0,0,0,0.1);
  150. }
  151. & li {
  152. &:first-child { .border-radius(2px 2px 0 0); }
  153. &:last-child {
  154. .border-radius(0 0 2px 2px);
  155. .box-shadow(0 1px 1px rgba(0,0,0,0.05));
  156. }
  157. }
  158. }
  159. /* @group .button */
  160. a.button {
  161. .border-radius(@form-border-radius);
  162. .box-shadow(~"inset 1px 0 0 rgba(0,0,0,0.2), inset 0 1px 0 rgba(0,0,0,0.2), inset -1px 0 0 rgba(0,0,0,0.2), inset 0 -1px 0 rgba(0,0,0,0.2), inset 0 2px 0 rgba(255,255,255, 0.2)");
  163. font-weight: bold;
  164. text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  165. &:active { .box-shadow(~"inset 0 10px 30px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.3)"); }
  166. }
  167. /* @end */
  168. /* @group <form> */
  169. @box-shadow-form: ~'inset 0 1px 2px rgba(0,0,0,0.1)';
  170. @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';
  171. @form-border-color: #D0D4C6;
  172. label { color: #999; }
  173. input:not([type=range]), textarea, select {
  174. border: 1px solid @form-border-color;
  175. .border-radius(@form-border-radius);
  176. // .box-shadow(@box-shadow-form);
  177. color: #858585;
  178. font-family: Helvetica, Arial, sans-serif;
  179. background: #fff;
  180. &:focus {
  181. color: #484a49;
  182. border-color: @theme;
  183. .box-shadow(0 0 1px @theme-light);
  184. }
  185. &[disabled] {
  186. background: #F4F5F0;
  187. color: #bbb;
  188. }
  189. }
  190. .select:after {
  191. background: @form-border-color;
  192. color: white;
  193. border-top-right-radius: @form-border-radius;
  194. border-bottom-right-radius: @form-border-radius;
  195. }
  196. /* @group range */
  197. input[type=range] {
  198. .box-shadow(@box-shadow-form);
  199. .border-radius(@form-border-radius);
  200. &:not(.checkbox) {
  201. background-color: #c7c7c7;
  202. &:active { background-color: @theme-light; }
  203. }
  204. &.checkbox {
  205. background-color: #aaaaaa;
  206. color: rgba(255,255,255,0.6);
  207. &.active { background-color: @theme-light; }
  208. }
  209. &::-webkit-slider-thumb {
  210. border-radius: @form-border-radius;
  211. box-shadow:0px 1px 2px 1px rgba(0,0,0,0.3);
  212. background: #fff; }
  213. &::-webkit-slider-thumb::after {
  214. background: #ddd; }
  215. }
  216. /* @end */
  217. /* @group .progress */
  218. .progress {
  219. .labels {
  220. font-size: 12px;
  221. font-weight: bold;
  222. line-height: 18px;
  223. color: #858585;
  224. }
  225. & .bar {
  226. .box-shadow(@box-shadow-form);
  227. background: #c7c7c7;
  228. .border-radius(@form-border-radius);
  229. & .value {
  230. background-color: @theme-light;
  231. .border-radius(@form-border-radius);
  232. & .label {
  233. float: right;
  234. margin-right: 3px;
  235. font-weight: bold;
  236. color: rgba(0,0,0,0.6);
  237. text-shadow: 0 1px 0 rgba(255,255,255,0.2) !important;
  238. font-size: 12px;
  239. }
  240. }
  241. }
  242. }
  243. /* @end */
  244. /* @group .bubble */
  245. .bubble {
  246. color: #fff;
  247. .border-radius(8px);
  248. &.count { background: @theme; }
  249. }
  250. header .count {
  251. background: @theme-dark !important;
  252. }
  253. footer .bubble {
  254. .box-shadow(~'inset 0 1px 1px rgba(255,255,255,0.3), 0 1px 2px rgba(0,0,0,0.5)');
  255. }
  256. article .list .bubble {
  257. .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)');
  258. }
  259. aside .list .bubble { background: rgba(0,0,0,0.25); }
  260. /* @end */
  261. /* @group .bubble */
  262. .notification {
  263. color: #fff;
  264. & .window {
  265. &.confirm { background: #333; }
  266. &.notify {
  267. text-shadow: 0 1px 0px rgba(0,0,0,0.1);
  268. .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)');
  269. &.error { background: @red; }
  270. &.alert { background: @yellow; }
  271. &.success { background: @green; }
  272. }
  273. &.url {
  274. & .close {
  275. background: #000;
  276. border: solid 2px #fff;
  277. box-shadow: 0 0 4px black;
  278. }
  279. }
  280. }
  281. }