Lungo.theme.default.less 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235
  1. /**
  2. * Stylesheet
  3. *
  4. * @namespace LUNGO.Theme
  5. * @class Default
  6. *
  7. * @author Javier Jimenez Villar <javi@tapquo.com> || @soyjavi
  8. */
  9. @import "mixins.less";
  10. @theme: #91bd09;
  11. @theme-light: #B7DE3F;
  12. @theme-dark: #758E29;
  13. @theme-highlight: #C1DE6A;
  14. @theme-highlight-color: #5D7B03;
  15. @theme-highlight-text-shadow: 0 1px 0 rgba(255,255,255,0.2);
  16. @theme-secondary: #2c2c2d;
  17. @theme-secondary-dark: #1c1c1c;
  18. .app {
  19. background: @black;
  20. }
  21. /* @group <header> & <footer> & <article> */
  22. header {
  23. background-color: @theme;
  24. border-top: 1px solid @theme-light;
  25. border-bottom: 1px solid @theme-dark;
  26. box-shadow: 0px 1px 1px rgba(0,0,0,0.2);
  27. }
  28. footer {
  29. background: @theme-secondary -webkit-gradient(linear, left top, left bottom, color-stop(0.25, @theme-secondary), color-stop(1, @theme-secondary-dark));
  30. border-top: 1px inset @theme-secondary-dark;
  31. }
  32. .title {
  33. color: @white;
  34. text-shadow: 0px 1px 0px rgba(0,0,0,0.2);
  35. }
  36. article {
  37. background-color: #f9f9f9;
  38. & .title {
  39. color: #797979;
  40. text-shadow: 0px 1px 0px #fff;
  41. }
  42. }
  43. /* @end */
  44. /* @group <nav> */
  45. nav a {
  46. color: rgba(255,255,255,0.5);
  47. &.current, &:active {
  48. color: @white;
  49. }
  50. }
  51. .toolbar a {
  52. color: rgba(255,255,255,0.2);
  53. &.current, &:active {
  54. background: #1c1c1c;
  55. box-shadow: inset 0px 0px 8px #101010;
  56. text-shadow: 0px 1px 4px #000;
  57. }
  58. }
  59. /* @end */
  60. /* @group <aside> */
  61. aside {
  62. background: #252525;
  63. & a {
  64. color: #fff;
  65. text-shadow: 0px 1px 0px #000;
  66. border-bottom: 1px inset #101010;
  67. border-top: 1px inset #868686;
  68. &.current {
  69. background: #1c1c1c;
  70. box-shadow: inset 0px 0px 8px #101010;
  71. border-top: 1px inset #1c1c1c;
  72. }
  73. & .icon {
  74. text-shadow: none;
  75. color: #7a7a7a;
  76. }
  77. }
  78. & .anchor {
  79. background: #101010;
  80. color: #7a7a7a;
  81. }
  82. & ~ article {
  83. box-shadow: -1px 0px 4px #000;
  84. }
  85. }
  86. /* @end */
  87. /* @group .list */
  88. .list {
  89. &, & li:not(.toolbar) a {
  90. color: #2a2a2a;
  91. }
  92. & li {
  93. background: #fff;
  94. border-bottom: 1px inset #e1e1e1;
  95. &:last-child { border-bottom: none; }
  96. &.selectable:active {
  97. background: @theme-highlight;
  98. color: @theme-highlight-color;
  99. text-shadow: @theme-highlight-text-shadow;
  100. & small, & .onright:not(.bubble) {
  101. color: @white;
  102. text-shadow: none;
  103. }
  104. }
  105. & small, & .onright:not(.bubble) { color: #888; }
  106. }
  107. & .indented ul { border: 1px solid #e1e1e1; }
  108. & .anchor {
  109. background: @theme-highlight;
  110. color: @theme-highlight-color;
  111. text-shadow: @theme-highlight-text-shadow;
  112. border: none;
  113. }
  114. & .tip { color: #7a7a7a;
  115. &.darker {
  116. background-color: #2c2c2d;
  117. color: #fff;
  118. text-shadow: 0px 1px 0px #000;
  119. & a { color: #fff !important; }
  120. }
  121. &.dark {
  122. background-color: #f4f4f4;
  123. box-shadow: inset 0px 1px 0px #fff;
  124. text-shadow: 0px 1px 0px #fff;
  125. }
  126. }
  127. & .toolbar {
  128. border-bottom-color: rgba(0,0,0,0.2);
  129. & .toolbar a {
  130. box-shadow: 1px 0px 0px #d9d9d9;
  131. &:last-child { box-shadow: none; }
  132. &.current {
  133. background: transparent;
  134. color: #333;
  135. text-shadow: none !important;
  136. }
  137. }
  138. }
  139. }
  140. /* @end */
  141. /* @group widgets */
  142. .splash {
  143. background: @theme;
  144. color: #fff;
  145. text-shadow: 0px 1px 0px rgba(0,0,0,0.2);
  146. }
  147. /* @group .button */
  148. a.button {
  149. box-shadow: inset 0 1px 0 rgba(0,0,0,0.3), inset 0 2px 0px rgba(255,255,255,0.2), inset 1px 0 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), 0 1px 1px rgba(0,0,0,0.1);
  150. &:active { box-shadow: inset 0 0 8px rgba(0,0,0,0.4); }
  151. }
  152. /* @end */
  153. /* @group <inputs> */
  154. input, textarea, select {
  155. border: 1px solid #e1e1e1;
  156. color: #858585;
  157. font-family: 'Roboto', Helvetica, Arial, sans-serif;
  158. }
  159. input:focus, textarea:focus, select:focus {
  160. border-color: @theme;
  161. color: @theme;
  162. }
  163. label {
  164. color: @theme;
  165. text-transform: uppercase;
  166. font-weight: bold;
  167. }
  168. .select:after {
  169. background: #858585;
  170. color: white;
  171. }
  172. input[type="checkbox"] + span, input[type="radio"] + span {
  173. color: #fff;
  174. background: #a0a0a0;
  175. }
  176. input[type="checkbox"] + span::before,
  177. input[type="radio"] + span::before {
  178. background: #c1c1c1;
  179. }
  180. input[type="checkbox"]:checked + span,
  181. input[type="radio"]:checked + span {
  182. background: @theme-dark;
  183. }
  184. /* @end */
  185. .bubble {
  186. color: #fff;
  187. .border-radius(2px);
  188. text-shadow: none;
  189. font-weight: bold !important;
  190. }
  191. header .bubble.count {background: @theme-secondary;}
  192. .bubble.count { background: @theme; }
  193. /* @end */