style.css 6.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315
  1. /* --------------------------------
  2. Primary style
  3. -------------------------------- */
  4. *, *::after, *::before {
  5. -webkit-box-sizing: border-box;
  6. -moz-box-sizing: border-box;
  7. box-sizing: border-box;
  8. }
  9. *::after, *::before {
  10. content: '';
  11. }
  12. body {
  13. font-size: 100%;
  14. font-family: "PT Sans", sans-serif;
  15. color: #f8f7ee;
  16. background-color: #29324e;
  17. }
  18. a {
  19. color: #f05451;
  20. text-decoration: none;
  21. }
  22. /* --------------------------------
  23. Main components
  24. -------------------------------- */
  25. header {
  26. position: relative;
  27. height: 160px;
  28. line-height: 180px;
  29. text-align: center;
  30. -webkit-font-smoothing: antialiased;
  31. -moz-osx-font-smoothing: grayscale;
  32. }
  33. header h1 {
  34. font-size: 20px;
  35. font-size: 1.25rem;
  36. }
  37. @media only screen and (min-width: 768px) {
  38. header {
  39. height: 200px;
  40. line-height: 225px;
  41. }
  42. header h1 {
  43. font-size: 26px;
  44. font-size: 1.625rem;
  45. }
  46. }
  47. .cd-tabs {
  48. position: relative;
  49. width: 90%;
  50. max-width: 960px;
  51. margin: 2em auto;
  52. }
  53. .cd-tabs:after {
  54. content: "";
  55. display: table;
  56. clear: both;
  57. }
  58. .cd-tabs::after {
  59. /* subtle gradient layer on top right - to indicate it's possible to scroll */
  60. position: absolute;
  61. top: 0;
  62. right: 0;
  63. height: 60px;
  64. width: 50px;
  65. z-index: 1;
  66. pointer-events: none;
  67. background: -webkit-linear-gradient( right , #f8f7ee, rgba(248, 247, 238, 0));
  68. background: linear-gradient(to left, #f8f7ee, rgba(248, 247, 238, 0));
  69. visibility: visible;
  70. opacity: 1;
  71. -webkit-transition: opacity .3s 0s, visibility 0s 0s;
  72. -moz-transition: opacity .3s 0s, visibility 0s 0s;
  73. transition: opacity .3s 0s, visibility 0s 0s;
  74. }
  75. .no-cssgradients .cd-tabs::after {
  76. display: none;
  77. }
  78. .cd-tabs.is-ended::after {
  79. /* class added in jQuery - remove the gradient layer when it's no longer possible to scroll */
  80. visibility: hidden;
  81. opacity: 0;
  82. -webkit-transition: opacity .3s 0s, visibility 0s .3s;
  83. -moz-transition: opacity .3s 0s, visibility 0s .3s;
  84. transition: opacity .3s 0s, visibility 0s .3s;
  85. }
  86. .cd-tabs nav {
  87. overflow: auto;
  88. -webkit-overflow-scrolling: touch;
  89. background: #f8f7ee;
  90. box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);
  91. }
  92. @media only screen and (min-width: 768px) {
  93. .cd-tabs::after {
  94. display: none;
  95. }
  96. .cd-tabs nav {
  97. position: absolute;
  98. top: 0;
  99. left: 0;
  100. height: 100%;
  101. box-shadow: inset -2px 0 3px rgba(203, 196, 130, 0.06);
  102. z-index: 1;
  103. }
  104. }
  105. @media only screen and (min-width: 960px) {
  106. .cd-tabs nav {
  107. position: relative;
  108. float: none;
  109. background: transparent;
  110. box-shadow: none;
  111. }
  112. }
  113. .cd-tabs-navigation {
  114. width: 360px;
  115. }
  116. .cd-tabs-navigation:after {
  117. content: "";
  118. display: table;
  119. clear: both;
  120. }
  121. .cd-tabs-navigation li {
  122. float: left;
  123. }
  124. .cd-tabs-navigation a {
  125. position: relative;
  126. display: block;
  127. height: 60px;
  128. width: 60px;
  129. text-align: center;
  130. font-size: 12px;
  131. font-size: 0.75rem;
  132. -webkit-font-smoothing: antialiased;
  133. -moz-osx-font-smoothing: grayscale;
  134. font-weight: 700;
  135. color: #c3c2b9;
  136. padding-top: 34px;
  137. }
  138. .no-touch .cd-tabs-navigation a:hover {
  139. color: #29324e;
  140. background-color: rgba(233, 230, 202, 0.3);
  141. }
  142. .cd-tabs-navigation a.selected {
  143. background-color: #ffffff !important;
  144. box-shadow: inset 0 2px 0 #f05451;
  145. color: #29324e;
  146. }
  147. .cd-tabs-navigation a::before {
  148. /* icons */
  149. position: absolute;
  150. top: 12px;
  151. left: 50%;
  152. margin-left: -10px;
  153. display: inline-block;
  154. height: 20px;
  155. width: 20px;
  156. background-image: url("../img/vicons.svg");
  157. background-repeat: no-repeat;
  158. }
  159. .cd-tabs-navigation a[data-content='inbox']::before {
  160. background-position: 0 0;
  161. }
  162. .cd-tabs-navigation a[data-content='new']::before {
  163. background-position: -20px 0;
  164. }
  165. .cd-tabs-navigation a[data-content='gallery']::before {
  166. background-position: -40px 0;
  167. }
  168. .cd-tabs-navigation a[data-content='store']::before {
  169. background-position: -60px 0;
  170. }
  171. .cd-tabs-navigation a[data-content='settings']::before {
  172. background-position: -80px 0;
  173. }
  174. .cd-tabs-navigation a[data-content='trash']::before {
  175. background-position: -100px 0;
  176. }
  177. .cd-tabs-navigation a[data-content='inbox'].selected::before {
  178. background-position: 0 -20px;
  179. }
  180. .cd-tabs-navigation a[data-content='new'].selected::before {
  181. background-position: -20px -20px;
  182. }
  183. .cd-tabs-navigation a[data-content='gallery'].selected::before {
  184. background-position: -40px -20px;
  185. }
  186. .cd-tabs-navigation a[data-content='store'].selected::before {
  187. background-position: -60px -20px;
  188. }
  189. .cd-tabs-navigation a[data-content='settings'].selected::before {
  190. background-position: -80px -20px;
  191. }
  192. .cd-tabs-navigation a[data-content='trash'].selected::before {
  193. background-position: -100px -20px;
  194. }
  195. @media only screen and (min-width: 768px) {
  196. .cd-tabs-navigation {
  197. /* move the nav to the left on medium sized devices */
  198. width: 80px;
  199. float: left;
  200. }
  201. .cd-tabs-navigation a {
  202. height: 80px;
  203. width: 80px;
  204. padding-top: 46px;
  205. }
  206. .cd-tabs-navigation a.selected {
  207. box-shadow: inset 2px 0 0 #f05451;
  208. }
  209. .cd-tabs-navigation a::before {
  210. top: 22px;
  211. }
  212. }
  213. @media only screen and (min-width: 960px) {
  214. .cd-tabs-navigation {
  215. /* tabbed on top on big devices */
  216. width: auto;
  217. background-color: #f8f7ee;
  218. box-shadow: inset 0 -2px 3px rgba(203, 196, 130, 0.06);
  219. }
  220. .cd-tabs-navigation a {
  221. height: 60px;
  222. line-height: 60px;
  223. width: auto;
  224. text-align: left;
  225. font-size: 14px;
  226. font-size: 0.875rem;
  227. padding: 0 2.8em 0 4.6em;
  228. }
  229. .cd-tabs-navigation a.selected {
  230. box-shadow: inset 0 2px 0 #f05451;
  231. }
  232. .cd-tabs-navigation a::before {
  233. top: 50%;
  234. margin-top: -10px;
  235. margin-left: 0;
  236. left: 38px;
  237. }
  238. }
  239. .cd-tabs-content {
  240. background: #ffffff;
  241. }
  242. .cd-tabs-content li {
  243. display: none;
  244. padding: 1.4em;
  245. }
  246. .cd-tabs-content li.selected {
  247. display: block;
  248. -webkit-animation: cd-fade-in 0.5s;
  249. -moz-animation: cd-fade-in 0.5s;
  250. animation: cd-fade-in 0.5s;
  251. }
  252. .cd-tabs-content li p {
  253. font-size: 14px;
  254. font-size: 0.875rem;
  255. line-height: 1.6;
  256. color: #8493bf;
  257. margin-bottom: 2em;
  258. }
  259. @media only screen and (min-width: 768px) {
  260. .cd-tabs-content {
  261. min-height: 480px;
  262. }
  263. .cd-tabs-content li {
  264. padding: 2em 2em 2em 7em;
  265. }
  266. }
  267. @media only screen and (min-width: 960px) {
  268. .cd-tabs-content {
  269. min-height: 0;
  270. }
  271. .cd-tabs-content li {
  272. padding: 3em;
  273. }
  274. .cd-tabs-content li p {
  275. font-size: 16px;
  276. font-size: 1rem;
  277. }
  278. }
  279. @-webkit-keyframes cd-fade-in {
  280. 0% {
  281. opacity: 0;
  282. }
  283. 100% {
  284. opacity: 1;
  285. }
  286. }
  287. @-moz-keyframes cd-fade-in {
  288. 0% {
  289. opacity: 0;
  290. }
  291. 100% {
  292. opacity: 1;
  293. }
  294. }
  295. @keyframes cd-fade-in {
  296. 0% {
  297. opacity: 0;
  298. }
  299. 100% {
  300. opacity: 1;
  301. }
  302. }