Lungo.theme.default.less 8.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423
  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 "mixins.less";
  11. @import "lungo.theme.default.font.css";
  12. @theme: #05b8e2;
  13. @theme-light: #05bde9;
  14. @theme-dark: #07acd0;
  15. @theme-highlight: #93d6e7;
  16. @theme-highlight-color: #1b6777;
  17. @theme-highlight-text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  18. @theme-secondary: #2c2c2d;
  19. @theme-secondary-dark: #1c1c1c;
  20. @color-border: #2566a4;
  21. @color-border-light: #64b9e2;
  22. @background-main: #2c8bca -webkit-gradient(linear, left top, left bottom, color-stop(0%,#2c8bca), color-stop(100%,#154f93));
  23. @background-secondary: #353b42 -webkit-gradient(linear, left top, left bottom, color-stop(0%, #353b42), color-stop(100%, #272a2d));
  24. @background-secondary-footer: #353b42 -webkit-gradient(linear, left top, left bottom, color-stop(0%, #353b42), color-stop(50%, #272a2d));
  25. .app {
  26. background: @black;
  27. font-family: 'Roboto', Helvetica, Arial, sans-serif;
  28. }
  29. /* @group <header> & <footer> & <article> */
  30. header {
  31. /*border-top-left-radius: 5px;
  32. border-top-right-radius: 5px;*/
  33. border-bottom: 1px solid #1a2838;
  34. background: @background-main;
  35. box-shadow: inset 0 1px 0 @color-border-light, inset 0 -1px 0 @color-border;
  36. position: absolute;
  37. z-index: 2;
  38. & .title {
  39. color: @white;
  40. text-shadow: 0px 1px 0px rgba(0,0,0,0.2);
  41. }
  42. & .subtitle {
  43. color: rgba(255,255,255,0.6);
  44. text-shadow: 0px -1px 0px rgba(0,0,0,0.3);
  45. }
  46. }
  47. footer {
  48. background: @background-secondary-footer;
  49. border-top: 1px inset #2A2A2A;
  50. color: #353b42;
  51. //border-bottom-left-radius: 5px;
  52. //border-bottom-right-radius: 5px;
  53. }
  54. article {
  55. background-color: #EBEBEB;
  56. & .title {
  57. color: #797979;
  58. text-shadow: 0px 1px 0px #fff;
  59. }
  60. }
  61. /* @end */
  62. /* @group <nav> */
  63. header nav {
  64. & a {
  65. color: @white;
  66. text-shadow: 0 1px 0 rgba(0,0,0,0.3);
  67. }
  68. &:not(.plain) {
  69. & a { box-shadow: 1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.2); }
  70. &.onright a { box-shadow: -1px 0 0 rgba(255,255,255,0.2), inset 1px 0 0 rgba(0,0,0,0.2); }
  71. & 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); }
  72. }
  73. &.plain a:active { text-shadow: 0 0 4px rgba(255,255,255,0.5); }
  74. }
  75. .toolbar a {
  76. color: #cdd9e3;
  77. .border-radius(4px);
  78. font-weight: bold;
  79. &.current, &.active {
  80. background: #111;
  81. 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);
  82. }
  83. }
  84. .groupbar {
  85. background: #272a2d;
  86. border-bottom: solid 1px rgba(0,0,0,1);
  87. box-shadow: inset 0 1px 8px rgba(0,0,0,0.3);
  88. & a {
  89. color: #6e6e6e;
  90. &.current {
  91. color: #fff;
  92. border-bottom: solid 3px @color-border;
  93. }
  94. }
  95. }
  96. /* @end */
  97. /* @group <aside> */
  98. aside {
  99. color: #9faab1;
  100. & .title {
  101. background: #252525;
  102. }
  103. & a {
  104. color: #9faab1;
  105. background-color: #2f353a;
  106. //text-shadow: 0px 1px 0px #000;
  107. border-bottom: 1px inset #222;
  108. border-top: 1px inset rgba(255,255,255,0.1);
  109. &.current {
  110. //background: #1c1c1c;
  111. //box-shadow: inset 0px 0px 8px #101010;
  112. //border-top: 1px inset #1c1c1c;
  113. color: @white;
  114. }
  115. & .icon {
  116. text-shadow: none;
  117. color: #7a7a7a;
  118. }
  119. }
  120. & .anchor {
  121. background: #101010;
  122. color: #7a7a7a;
  123. }
  124. }
  125. section.aside {
  126. box-shadow: -4px 0 8px rgba(0,0,0,0.5);
  127. &.onright { box-shadow: 4px 0 8px rgba(0,0,0,0.5); }
  128. }
  129. @media handheld, only screen and (min-width: 768px) {
  130. section.current, section.show {
  131. box-shadow: -4px 0 8px rgba(0,0,0,0.5);
  132. &.onright { box-shadow: 4px 0 8px rgba(0,0,0,0.5); }
  133. }
  134. }
  135. /* @end */
  136. /* @group .list */
  137. .list, .list li:not(.toolbar) a { color: #2a2a2a; }
  138. .list {
  139. & li {
  140. background: #fff;
  141. border-bottom: 1px inset #e1e1e1;
  142. &:last-child { border-bottom: none; }
  143. &.selectable:active {
  144. background: @theme-highlight;
  145. color: @theme-highlight-color;
  146. text-shadow: @theme-highlight-text-shadow;
  147. & small, & .onright:not(.bubble) {
  148. color: @white;
  149. text-shadow: none;
  150. }
  151. }
  152. & small, & .onright:not(.bubble) { color: #888; }
  153. }
  154. &.indented li {
  155. border-left: solid 1px #e1e1e1;
  156. border-right: solid 1px #e1e1e1;
  157. &:first-child { border-top: solid 1px #e1e1e1; }
  158. &:last-child { border-bottom: solid 1px #e1e1e1; }
  159. }
  160. & .anchor {
  161. color: @white;
  162. background: @background-main;
  163. border: none;
  164. }
  165. & .tip {
  166. color: #7a7a7a;
  167. &.theme {
  168. color: #fff;
  169. background: @background-main;
  170. }
  171. &.dark {
  172. background: @background-secondary;
  173. color: #fff;
  174. text-shadow: 0px -1px 0px rgba(0,0,0,0.5);
  175. & a { color: #fff !important; }
  176. }
  177. }
  178. & .toolbar {
  179. border-bottom-color: rgba(0,0,0,0.2);
  180. & .toolbar a {
  181. box-shadow: 1px 0px 0px #d9d9d9;
  182. &:last-child { box-shadow: none; }
  183. &.current {
  184. background: transparent;
  185. color: #333;
  186. text-shadow: none !important;
  187. }
  188. }
  189. }
  190. }
  191. /* @end */
  192. /* @group widgets */
  193. .splash {
  194. background: @theme-dark;
  195. color: #fff;
  196. text-shadow: 0px 1px 0px rgba(0,0,0,0.2);
  197. }
  198. &.indented {
  199. & ul { .border-radius(5px); }
  200. & li {
  201. &:first-child { .border-radius(5px 5px 0px 0px); }
  202. &:last-child {
  203. .border-radius(0px 0px 5px 5px);
  204. box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  205. }
  206. }
  207. }
  208. /* @group .button */
  209. .button {
  210. .border-radius(@border-radius);
  211. -webkit-box-shadow: inset 1px 0 0 rgba(0,0,0,0.1), inset 0 1px 0 rgba(0,0,0,0.1), inset -1px 0 0 rgba(0,0,0,0.1), inset 0 -2px 0 rgba(0,0,0,0.25), inset 0 -3px 0 rgba(255,255,255, 0.05), 0 1px 2px rgba(0,0,0,0.3);
  212. font-weight: bold;
  213. text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  214. &:active {
  215. -webkit-box-shadow: inset 0 10px 30px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.3);
  216. }
  217. &.default {
  218. background: #2c4579;
  219. &:active, &.active { background: #213761;}
  220. }
  221. }
  222. /* @end */
  223. /* @group <form> */
  224. @box-shadow-form: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  225. @box-shadow-form-big: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  226. form, .form {
  227. font-weight: bold;
  228. & li { min-height: 27px; }
  229. & label {
  230. color: #999;
  231. }
  232. }
  233. input, textarea, select {
  234. border: 1px solid #e1e1e1;
  235. .border-radius(@border-radius);
  236. color: #858585;
  237. font-family: 'Roboto', Helvetica, Arial, sans-serif;
  238. box-shadow: @box-shadow-form;
  239. &.underline {
  240. border: none;
  241. box-shadow: none;
  242. border-bottom: 2px solid #e1e1e1;
  243. }
  244. }
  245. input:focus, textarea:focus, select:focus {
  246. color: @color-border-light;
  247. border-color: @color-border-light;
  248. }
  249. .select:after {
  250. background: #858585;
  251. color: white;
  252. border-top-right-radius: @border-radius;
  253. border-bottom-right-radius: @border-radius;
  254. }
  255. /* @group .range */
  256. input[type="checkbox"] + span, input[type="radio"] + span {
  257. color: #fff;
  258. background: #a0a0a0;
  259. .border-radius(@border-radius);
  260. }
  261. input[type="checkbox"] + span::before,
  262. input[type="radio"] + span::before {
  263. background: #c1c1c1;
  264. .border-radius(@border-radius);
  265. }
  266. input[type="checkbox"]:checked + span,
  267. input[type="radio"]:checked + span {
  268. background: @background-main;
  269. .border-radius(@border-radius);
  270. }
  271. /* @end */
  272. /* @group range */
  273. input[type="range"] {
  274. background-color: #c7c7c7;
  275. .border-radius(@border-radius);
  276. box-shadow: @box-shadow-form-big;
  277. &:active {
  278. box-shadow: none;
  279. background: @background-main;
  280. }
  281. &::-webkit-slider-thumb {
  282. //border: solid 7px rgba(255,255,255, 0.5);
  283. box-shadow: 0 0 4px #333;
  284. background: #fff;
  285. }
  286. &:active::-webkit-slider-thumb {
  287. box-shadow: 0px 0px 4px #34b7dc;
  288. }
  289. }
  290. /* @end */
  291. /* @group .progress */
  292. .progress {
  293. .labels {
  294. font-size: 12px;
  295. font-weight: bold;
  296. line-height: 18px;
  297. color: #858585;
  298. }
  299. & .bar {
  300. background: #c7c7c7;
  301. box-shadow: @box-shadow-form-big;
  302. .border-radius(@border-radius);
  303. & .value {
  304. background: @background-main;
  305. .border-radius(@border-radius);
  306. & .label {
  307. float: right;
  308. margin-right: 3px;
  309. font-weight: bold;
  310. color: rgba(0,0,0,0.6);
  311. text-shadow: 0 1px 0 rgba(255,255,255,0.2) !important;
  312. font-size: 12px;
  313. }
  314. }
  315. }
  316. }
  317. /* @end */
  318. /* @end */
  319. .bubble {
  320. color: #fff;
  321. .border-radius(7px);
  322. text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  323. font-weight: bold !important;
  324. //border: solid 1px @white;
  325. box-shadow: 0 0 6px #000;
  326. &.count { background: @background-main; }
  327. }
  328. header .bubble.count {
  329. background: @theme-secondary;
  330. }
  331. /* @end */