_base.less 5.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340
  1. /* Basic Settings */
  2. * {
  3. box-sizing: border-box;
  4. outline: none;
  5. margin: 0;
  6. padding: 0;
  7. }
  8. /* My Base */
  9. html {
  10. width: 100%;
  11. height: 100%;
  12. padding-top: @header-height;
  13. font-family: @base-font-family;
  14. font-size: @base-font-size;
  15. line-height: 1.5rem;
  16. color: @text-color;
  17. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  18. -webkit-text-size-adjust: 100%;
  19. -ms-text-size-adjust: 100%;
  20. text-rendering: optimizelegibility;
  21. }
  22. body {
  23. background-color: @background-color;
  24. &.modal-active {
  25. overflow: hidden;
  26. @media (max-width: @modal-threshold) {
  27. position: fixed;
  28. top: 0;
  29. right: 0;
  30. bottom: 0;
  31. left: 0;
  32. }
  33. }
  34. &.z_menu-open {
  35. .menu-phone {
  36. transform: translate3d(0, 0, 0);
  37. }
  38. }
  39. }
  40. // //reset ::-webkit-scrollbar
  41. // /* Let's get this party started */
  42. // ::-webkit-scrollbar {
  43. // width: 8px;
  44. // height: 8px;
  45. // }
  46. // /* Track */
  47. // ::-webkit-scrollbar-track-piece {
  48. // background: transparent;
  49. // }
  50. // /* Handle */
  51. // ::-webkit-scrollbar-thumb {
  52. // background: #c1c1c1;
  53. // cursor: pointer;
  54. // transition: all .2s ease-out;
  55. // &:hover {
  56. // background: darken(#c1c1c1, 10%);
  57. // }
  58. // }
  59. .z-depth-0 {
  60. box-shadow: 0 1px 4px 0 rgba(0, 0, 0, 0.14);
  61. }
  62. .z-depth-1 {
  63. box-shadow: 0 2px 5px 0 rgba(0, 0, 0, 0.16), 0 2px 10px 0 rgba(0, 0, 0, 0.12);
  64. }
  65. .z-depth-1-half {
  66. box-shadow: 0 5px 11px 0 rgba(0, 0, 0, 0.18), 0 4px 15px 0 rgba(0, 0, 0, 0.15);
  67. }
  68. .z-depth-2 {
  69. box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  70. }
  71. .z-depth-3 {
  72. box-shadow: 0 12px 15px 0 rgba(0, 0, 0, 0.24), 0 17px 50px 0 rgba(0, 0, 0, 0.19);
  73. }
  74. .z-depth-4 {
  75. box-shadow: 0 16px 28px 0 rgba(0, 0, 0, 0.22), 0 25px 55px 0 rgba(0, 0, 0, 0.21);
  76. }
  77. .z-depth-5 {
  78. box-shadow: 0 27px 24px 0 rgba(0, 0, 0, 0.2), 0 40px 77px 0 rgba(0, 0, 0, 0.22);
  79. }
  80. .hoverable {
  81. transition: box-shadow .25s;
  82. box-shadow: 0;
  83. }
  84. .hoverable:hover {
  85. transition: box-shadow .25s;
  86. box-shadow: 0 8px 17px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  87. }
  88. ::-moz-selection {
  89. background: fade(lighten(@accent-color, 15%), 70%);
  90. color: @black;
  91. }
  92. ::selection {
  93. background: fade(lighten(@accent-color, 15%), 70%);
  94. color: @black;
  95. }
  96. h1,
  97. h2,
  98. h3,
  99. h4,
  100. h5,
  101. h6 {
  102. -webkit-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
  103. -moz-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
  104. -o-font-feature-settings: 'dlig' 1, 'liga' 1, 'lnum' 1, 'kern' 1;
  105. text-rendering: geometricPrecision;
  106. margin: 0 0 0.4em 0;
  107. }
  108. h1 {
  109. font-size: 1.8em;
  110. }
  111. h2 {
  112. font-size: 1.6em;
  113. }
  114. h3 {
  115. font-size: 1.4em;
  116. }
  117. h4 {
  118. font-size: 1.2em;
  119. }
  120. h5 {
  121. font-size: 1em;
  122. }
  123. h6 {
  124. font-size: 1em;
  125. }
  126. a {
  127. color: @black;
  128. cursor: pointer;
  129. text-decoration: none;
  130. transition: all 0.24s ease;
  131. &:hover {
  132. text-decoration: none;
  133. }
  134. }
  135. pre {
  136. tab-size: 2;
  137. -moz-tab-size: 2;
  138. -o-tab-size: 2;
  139. -webkit-tab-size: 2;
  140. }
  141. img {
  142. max-width: 100%;
  143. }
  144. /**
  145. * Util
  146. */
  147. .clearfix {
  148. zoom: 1;
  149. &:before,
  150. &:after {
  151. content: " "; // 1
  152. display: table; // 2
  153. }
  154. &:after {
  155. clear: both;
  156. }
  157. }
  158. .hidden {
  159. text-indent: -9999px;
  160. visibility: hidden;
  161. display: none;
  162. }
  163. .inner {
  164. position: relative;
  165. width: 80%;
  166. max-width: 710px;
  167. margin: 0 auto;
  168. }
  169. .vertical {
  170. display: table-cell;
  171. vertical-align: middle;
  172. }
  173. .right {
  174. float: right;
  175. }
  176. .left {
  177. float: left;
  178. }
  179. .disable-trans {
  180. -moz-transition: none !important;
  181. -webkit-transition: none !important;
  182. -o-transition: color 0 ease-in !important;
  183. transition: none !important;
  184. }
  185. .dark-btn {
  186. display: inline-block;
  187. background: rgba(0, 0, 0, 0.3);
  188. border: 1px solid black;
  189. padding: 0px 15px;
  190. font-size: 13px;
  191. font-family: @base-font-family;
  192. text-align: center;
  193. color: lighten(#8f8f8f, 20%);
  194. &:hover {
  195. color: lighten(#8f8f8f, 40%);
  196. background-color: @brand-color;
  197. }
  198. .icon {
  199. margin-right: 5px;
  200. font-size: 16px;
  201. vertical-align: middle;
  202. line-height: 44px;
  203. }
  204. .text {
  205. vertical-align: middle;
  206. line-height: 44px;
  207. }
  208. }
  209. .txt-ellipsis {
  210. white-space: nowrap;
  211. overflow: hidden;
  212. text-overflow: ellipsis;
  213. }
  214. ul,
  215. ol {
  216. padding-left: 0;
  217. }
  218. li {
  219. list-style: none;
  220. }
  221. .mark {
  222. position: relative;
  223. a {
  224. display: inline-block;
  225. padding: 0 8px;
  226. color: @black;
  227. border-left: 3px solid transparent;
  228. background: transparent;
  229. transition: all ease 0.24s;
  230. &:hover {
  231. border-left-color: @accent-color;
  232. background: lighten(@background-color, 2%);
  233. }
  234. }
  235. }
  236. ul.h-list {
  237. display: flex;
  238. align-items: center;
  239. &>li {
  240. flex: none;
  241. }
  242. }
  243. /**
  244. * Loading bar
  245. */
  246. #loading-bar-wrapper {
  247. position: absolute;
  248. width: 100%;
  249. top: 0;
  250. left: 0;
  251. overflow: visible;
  252. z-index: 999;
  253. }
  254. #loading-bar {
  255. position: relative;
  256. width: 0;
  257. height: 2px;
  258. background-color: fade(lighten(@secondary-color, 2%), 100%);
  259. transition: all 0.5s ease;
  260. }
  261. .container {
  262. position: relative;
  263. width: 100%;
  264. max-width: @container-width;
  265. margin: 0 auto;
  266. }
  267. .container--flex {
  268. display: flex;
  269. flex-wrap: nowrap;
  270. justify-content: space-between;
  271. align-items: center;
  272. }
  273. .l_body {
  274. position: relative;
  275. padding: 2 * @gap 0 @gap;
  276. @media(max-width: @on-phone) {
  277. padding: @gap @gap/2 @gap/2;
  278. }
  279. }
  280. .reveal {
  281. visibility: hidden;
  282. }