Lungo.theme.default.less 6.8 KB

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