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