Lungo.theme.default.less 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405
  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 {
  70. box-shadow: 1px 0 0 rgba(255,255,255,0.2), inset -1px 0 0 rgba(0,0,0,0.2);
  71. &.accept { background: rgba(0, 255, 0, 0.4); }
  72. &.cancel { background: rgba(255, 0, 0, 0.4); }
  73. }
  74. &.onright a { box-shadow: -1px 0 0 rgba(255,255,255,0.2), inset 1px 0 0 rgba(0,0,0,0.2); }
  75. & 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); }
  76. }
  77. &.plain a:active { text-shadow: 0 0 4px rgba(255,255,255,0.5); }
  78. }
  79. .toolbar a {
  80. color: #cdd9e3;
  81. .border-radius(4px);
  82. font-weight: bold;
  83. &.current, &.active {
  84. background: #111;
  85. 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);
  86. }
  87. }
  88. .groupbar {
  89. background: #272a2d;
  90. border-bottom: solid 1px rgba(0,0,0,1);
  91. box-shadow: inset 0 1px 8px rgba(0,0,0,0.3);
  92. & a {
  93. color: #6e6e6e;
  94. &.current {
  95. color: #fff;
  96. border-bottom: solid 3px @color-border;
  97. }
  98. }
  99. }
  100. /* @end */
  101. /* @group <aside> */
  102. aside {
  103. color: #9faab1;
  104. background-color: #2f353a;
  105. & .title { background: #252525; }
  106. & a {
  107. color: #9faab1;
  108. text-shadow: 0px 1px 0px #000;
  109. &.current, &.current .icon { color: @white !important; }
  110. }
  111. &:not(.mini) a {
  112. border-bottom: 1px inset #222;
  113. border-top: 1px inset rgba(255,255,255,0.1);
  114. }
  115. & .anchor {
  116. background: #101010;
  117. color: #7a7a7a;
  118. }
  119. }
  120. section.aside {
  121. box-shadow: -4px 0 8px rgba(0,0,0,0.5);
  122. &.onright { box-shadow: 4px 0 8px rgba(0,0,0,0.5); }
  123. }
  124. @media handheld, only screen and (min-width: 768px) {
  125. section.current, section.show {
  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. }
  130. /* @end */
  131. /* @group .list */
  132. .list, .list li:not(.toolbar) a { color: #2a2a2a; }
  133. .list {
  134. & li {
  135. background: #fff;
  136. border-bottom: 1px inset #e1e1e1;
  137. &:last-child { border-bottom: none; }
  138. &.selectable:active {
  139. background: @theme-highlight;
  140. color: @theme-highlight-color;
  141. text-shadow: @theme-highlight-text-shadow;
  142. & small, & .onright:not(.bubble) {
  143. color: @white;
  144. text-shadow: none;
  145. }
  146. }
  147. & small, & .onright:not(.bubble) { color: #888; }
  148. }
  149. &.indented li {
  150. border-left: solid 1px #e1e1e1;
  151. border-right: solid 1px #e1e1e1;
  152. &:first-child { border-top: solid 1px #e1e1e1; }
  153. &:last-child { border-bottom: solid 1px #e1e1e1; }
  154. }
  155. & .anchor {
  156. color: @white;
  157. background: @background-main;
  158. border: none;
  159. }
  160. & .tip {
  161. color: #7a7a7a;
  162. &.theme {
  163. color: #fff;
  164. background: @background-main;
  165. }
  166. &.dark {
  167. background: @background-secondary;
  168. color: #fff;
  169. text-shadow: 0px -1px 0px rgba(0,0,0,0.5);
  170. & a { color: #fff !important; }
  171. }
  172. }
  173. & .toolbar {
  174. border-bottom-color: rgba(0,0,0,0.2);
  175. & .toolbar a {
  176. box-shadow: 1px 0px 0px #d9d9d9;
  177. &:last-child { box-shadow: none; }
  178. &.current {
  179. background: transparent;
  180. color: #333;
  181. text-shadow: none !important;
  182. }
  183. }
  184. }
  185. }
  186. /* @end */
  187. /* @group widgets */
  188. .splash {
  189. background: @theme-dark;
  190. color: #fff;
  191. text-shadow: 0px 1px 0px rgba(0,0,0,0.2);
  192. }
  193. &.indented {
  194. & ul { .border-radius(5px); }
  195. & li {
  196. &:first-child { .border-radius(5px 5px 0px 0px); }
  197. &:last-child {
  198. .border-radius(0px 0px 5px 5px);
  199. box-shadow: 0 1px 0 rgba(0,0,0,0.05);
  200. }
  201. }
  202. }
  203. /* @group .button */
  204. .button {
  205. .border-radius(@border-radius);
  206. -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);
  207. font-weight: bold;
  208. text-shadow: 0 -1px 0 rgba(0,0,0,0.3);
  209. &:active {
  210. -webkit-box-shadow: inset 0 10px 30px rgba(0,0,0,0.2), inset 0 -2px 4px rgba(0,0,0,0.3);
  211. }
  212. &.default {
  213. background: #2c4579;
  214. &:active, &.active { background: #213761;}
  215. }
  216. }
  217. /* @end */
  218. /* @group <form> */
  219. @box-shadow-form: inset 0 1px 2px rgba(0, 0, 0, 0.1);
  220. @box-shadow-form-big: inset 0 2px 4px rgba(0, 0, 0, 0.2);
  221. form, .form {
  222. font-weight: bold;
  223. & li { min-height: 27px; }
  224. & label { color: #999; }
  225. }
  226. input, textarea, select {
  227. border: 1px solid #e1e1e1;
  228. .border-radius(@border-radius);
  229. color: #858585;
  230. font-family: 'Roboto', Helvetica, Arial, sans-serif;
  231. box-shadow: @box-shadow-form;
  232. &.underline {
  233. border: none;
  234. box-shadow: none;
  235. border-bottom: 2px solid #e1e1e1;
  236. }
  237. }
  238. input:focus, textarea:focus, select:focus {
  239. color: @color-border-light;
  240. border-color: @color-border-light;
  241. }
  242. .select:after {
  243. background: #858585;
  244. color: white;
  245. border-top-right-radius: @border-radius;
  246. border-bottom-right-radius: @border-radius;
  247. }
  248. /* @group .range */
  249. input[type="checkbox"] + span, input[type="radio"] + span {
  250. color: #fff;
  251. background: #a0a0a0;
  252. .border-radius(@border-radius);
  253. }
  254. input[type="checkbox"] + span::before,
  255. input[type="radio"] + span::before {
  256. background: #c1c1c1;
  257. .border-radius(@border-radius);
  258. }
  259. input[type="checkbox"]:checked + span,
  260. input[type="radio"]:checked + span {
  261. background: @background-main;
  262. .border-radius(@border-radius);
  263. }
  264. /* @end */
  265. /* @group range */
  266. input[type="range"] {
  267. background-color: #c7c7c7;
  268. .border-radius(@border-radius);
  269. box-shadow: @box-shadow-form-big;
  270. &:active {
  271. box-shadow: none;
  272. background: @background-main;
  273. }
  274. &::-webkit-slider-thumb {
  275. //border: solid 7px rgba(255,255,255, 0.5);
  276. box-shadow: 0 0 4px #333;
  277. background: #fff;
  278. }
  279. &:active::-webkit-slider-thumb {
  280. box-shadow: 0px 0px 4px #34b7dc;
  281. }
  282. }
  283. /* @end */
  284. /* @group .progress */
  285. .progress {
  286. .labels {
  287. font-size: 12px;
  288. font-weight: bold;
  289. line-height: 18px;
  290. color: #858585;
  291. }
  292. & .bar {
  293. background: #c7c7c7;
  294. box-shadow: @box-shadow-form-big;
  295. .border-radius(@border-radius);
  296. & .value {
  297. background: @background-main;
  298. .border-radius(@border-radius);
  299. & .label {
  300. float: right;
  301. margin-right: 3px;
  302. font-weight: bold;
  303. color: rgba(0,0,0,0.6);
  304. text-shadow: 0 1px 0 rgba(255,255,255,0.2) !important;
  305. font-size: 12px;
  306. }
  307. }
  308. }
  309. }
  310. /* @end */
  311. /* @end */
  312. .bubble {
  313. color: #fff;
  314. .border-radius(7px);
  315. text-shadow: 0 -1px 0 rgba(0,0,0,0.2);
  316. font-weight: bold !important;
  317. box-shadow: 0 0 6px #000;
  318. &.count { background: @background-main; }
  319. }
  320. header .bubble.count {
  321. background: @theme-secondary;
  322. }
  323. /* @end */