Lungo.theme.default.less 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  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: 0 1px 0 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: #ededed;
  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 { color: @white; }
  48. }
  49. .toolbar a {
  50. color: rgba(255,255,255,0.2);
  51. &.current, &.active {
  52. background: #1c1c1c;
  53. box-shadow: inset 0px 0px 8px #101010;
  54. text-shadow: 0px 1px 4px #000;
  55. }
  56. }
  57. /* @end */
  58. /* @group <aside> */
  59. aside {
  60. background: #252525;
  61. box-shadow: inset -1px 0 4px rgba(0,0,0,0.2);
  62. & a {
  63. color: #fff;
  64. text-shadow: 0px 1px 0px #000;
  65. border-bottom: 1px inset #101010;
  66. border-top: 1px inset #868686;
  67. &.current {
  68. background: #1c1c1c;
  69. box-shadow: inset 0px 0px 8px #101010;
  70. border-top: 1px inset #1c1c1c;
  71. }
  72. & .icon {
  73. text-shadow: none;
  74. color: #7a7a7a;
  75. }
  76. }
  77. & .anchor {
  78. background: #101010;
  79. color: #7a7a7a;
  80. }
  81. }
  82. /* @end */
  83. /* @group .list */
  84. .list {
  85. &, & li:not(.toolbar) a {
  86. color: #2a2a2a;
  87. }
  88. & li {
  89. background: #fff;
  90. border-bottom: 1px inset #e1e1e1;
  91. &:last-child { border-bottom: none; }
  92. &.selectable:active {
  93. background: @theme-highlight;
  94. color: @theme-highlight-color;
  95. text-shadow: @theme-highlight-text-shadow;
  96. & small, & .onright:not(.bubble) {
  97. color: @white;
  98. text-shadow: none;
  99. }
  100. }
  101. & small, & .onright:not(.bubble) { color: #888; }
  102. }
  103. & .indented ul { border: 1px solid #e1e1e1; }
  104. & .anchor {
  105. background: @theme-highlight;
  106. color: @theme-highlight-color;
  107. text-shadow: @theme-highlight-text-shadow;
  108. border: none;
  109. }
  110. & .tip { color: #7a7a7a;
  111. &.darker {
  112. background-color: #2c2c2d;
  113. color: #fff;
  114. text-shadow: 0px 1px 0px #000;
  115. & a { color: #fff !important; }
  116. }
  117. &.dark {
  118. background-color: #f4f4f4;
  119. box-shadow: inset 0px 1px 0px #fff;
  120. text-shadow: 0px 1px 0px #fff;
  121. }
  122. }
  123. & .toolbar {
  124. border-bottom-color: rgba(0,0,0,0.2);
  125. & .toolbar a {
  126. box-shadow: 1px 0px 0px #d9d9d9;
  127. &:last-child { box-shadow: none; }
  128. &.current {
  129. background: transparent;
  130. color: #333;
  131. text-shadow: none !important;
  132. }
  133. }
  134. }
  135. }
  136. /* @end */
  137. /* @group widgets */
  138. .splash {
  139. background: @theme;
  140. color: #fff;
  141. text-shadow: 0px 1px 0px rgba(0,0,0,0.2);
  142. }
  143. /* @group .button */
  144. .button {
  145. border-bottom: 1px inset rgba(0,0,0,0.2);
  146. .border-radius(1px);
  147. -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,0.2), 0 1px 3px rgba(0,0,0,0.2);
  148. font-weight: bold;
  149. &:active, &.active {
  150. -webkit-box-shadow: inset 0 1px 0 rgba(0,0,0,0.1), inset 0 0 2px rgba(0,0,0,0.2);
  151. border-bottom-color: rgba(0,0,0,0);
  152. }
  153. header &:active, footer &:active,
  154. header &:active, footer &:active {
  155. height: 29px;
  156. position: relative;
  157. top: 1px;
  158. }
  159. &.default {
  160. background: #5a5a5a;
  161. &:active, &.active { background: #4b4b4b; }
  162. }
  163. }
  164. /* @end */
  165. /* @group <inputs> */
  166. input, textarea, select {
  167. border: 1px solid #e1e1e1;
  168. color: #858585;
  169. font-family: 'Roboto', Helvetica, Arial, sans-serif;
  170. }
  171. input:focus, textarea:focus, select:focus {
  172. border-color: @theme;
  173. color: @theme;
  174. }
  175. label {
  176. color: @theme;
  177. text-transform: uppercase;
  178. font-weight: bold;
  179. }
  180. .select:after {
  181. background: #858585;
  182. color: white;
  183. }
  184. input[type="checkbox"] + span, input[type="radio"] + span {
  185. color: #fff;
  186. background: #a0a0a0;
  187. }
  188. input[type="checkbox"] + span::before,
  189. input[type="radio"] + span::before {
  190. background: #c1c1c1;
  191. }
  192. input[type="checkbox"]:checked + span,
  193. input[type="radio"]:checked + span {
  194. background: @theme-dark;
  195. }
  196. /* @end */
  197. .bubble {
  198. color: #fff;
  199. .border-radius(2px);
  200. text-shadow: none;
  201. font-weight: bold !important;
  202. }
  203. header .bubble.count {background: @theme-secondary;}
  204. .bubble.count { background: @theme; }
  205. /* @end */