style.css 23 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819
  1. a {
  2. color: #9acd91;
  3. text-decoration: none;
  4. }
  5. img {
  6. max-width: 100%;
  7. }
  8. /* --------------------------------
  9. Stretchy Nav style - common to:
  10. - basic navigation
  11. - add-content navigation
  12. - edit-content navigation
  13. -------------------------------- */
  14. .cd-stretchy-nav {
  15. /* position: fixed; */
  16. position: absolute;
  17. z-index: 2;
  18. top: 55%;
  19. /* left:5%; */
  20. /* top:50%; */
  21. right: 5%;
  22. }
  23. .cd-stretchy-nav .stretchy-nav-bg {
  24. /* this is the stretching navigation background */
  25. position: absolute;
  26. z-index: 1;
  27. top: 0;
  28. right: 0;
  29. width: 60px;
  30. height: 60px;
  31. border-radius: 30px;
  32. /* border-bottom-left-radius: 0;
  33. border-bottom-right-radius: 0; */
  34. background: #9acd91;
  35. box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
  36. -webkit-transition: height 0.2s, box-shadow 0.2s;
  37. -moz-transition: height 0.2s, box-shadow 0.2s;
  38. transition: height 0.2s, box-shadow 0.2s;
  39. }
  40. .cd-stretchy-nav.nav-is-visible .stretchy-nav-bg {
  41. height: 100%;
  42. box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  43. }
  44. .cd-nav-trigger {
  45. position: absolute;
  46. z-index: 3;
  47. top: 0;
  48. right: 0;
  49. height: 60px;
  50. width: 60px;
  51. border-radius: 50%;
  52. /* replace text with image */
  53. overflow: hidden;
  54. white-space: nowrap;
  55. color: transparent;
  56. }
  57. .cd-nav-trigger span, .cd-nav-trigger span::after, .cd-nav-trigger span::before {
  58. /* this is the hamburger icon */
  59. position: absolute;
  60. width: 16px;
  61. height: 2px;
  62. background-color: #ffffff;
  63. }
  64. .cd-nav-trigger span {
  65. /* middle line of the hamburger icon */
  66. left: 50%;
  67. top: 50%;
  68. bottom: auto;
  69. right: auto;
  70. -webkit-transform: translateX(-50%) translateY(-50%);
  71. -moz-transform: translateX(-50%) translateY(-50%);
  72. -ms-transform: translateX(-50%) translateY(-50%);
  73. -o-transform: translateX(-50%) translateY(-50%);
  74. transform: translateX(-50%) translateY(-50%);
  75. -webkit-transition: background-color 0.2s;
  76. -moz-transition: background-color 0.2s;
  77. transition: background-color 0.2s;
  78. }
  79. .cd-nav-trigger span::after, .cd-nav-trigger span::before {
  80. /* top and bottom lines of the hamburger icon */
  81. content: '';
  82. top: 0;
  83. left: 0;
  84. -webkit-backface-visibility: hidden;
  85. backface-visibility: hidden;
  86. -webkit-transition: -webkit-transform 0.2s;
  87. -moz-transition: -moz-transform 0.2s;
  88. transition: transform 0.2s;
  89. }
  90. .cd-nav-trigger span::before {
  91. -webkit-transform: translateY(-6px);
  92. -moz-transform: translateY(-6px);
  93. -ms-transform: translateY(-6px);
  94. -o-transform: translateY(-6px);
  95. transform: translateY(-6px);
  96. }
  97. .cd-nav-trigger span::after {
  98. -webkit-transform: translateY(6px);
  99. -moz-transform: translateY(6px);
  100. -ms-transform: translateY(6px);
  101. -o-transform: translateY(6px);
  102. transform: translateY(6px);
  103. }
  104. .no-touch .cd-nav-trigger:hover ~ .stretchy-nav-bg {
  105. box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  106. }
  107. .nav-is-visible .cd-nav-trigger span {
  108. background-color: transparent;
  109. }
  110. .nav-is-visible .cd-nav-trigger span::before {
  111. -webkit-transform: rotate(-45deg);
  112. -moz-transform: rotate(-45deg);
  113. -ms-transform: rotate(-45deg);
  114. -o-transform: rotate(-45deg);
  115. transform: rotate(-45deg);
  116. }
  117. .nav-is-visible .cd-nav-trigger span::after {
  118. -webkit-transform: rotate(45deg);
  119. -moz-transform: rotate(45deg);
  120. -ms-transform: rotate(45deg);
  121. -o-transform: rotate(45deg);
  122. transform: rotate(45deg);
  123. }
  124. .cd-stretchy-nav ul {
  125. position: relative;
  126. z-index: 2;
  127. padding: 60px 0 0;
  128. /* visibility: hidden; */
  129. display: none;
  130. /* -webkit-transition: visibility 0.3s; */
  131. /* -moz-transition: visibility 0.3s;
  132. transition: visibility 0.3s; */
  133. -webkit-transition: display 0.3s;
  134. -moz-transition: display 0.3s;
  135. transition: display 0.3s;
  136. text-align: right;
  137. }
  138. .cd-stretchy-nav ul a {
  139. position: relative;
  140. display: inline-block;
  141. height: 42px;
  142. line-height: 42px;
  143. /* padding: 0 calc(1em + 60px) 0 1em; */
  144. /* padding: 0 0.8em; */
  145. /* color: rgba(255, 255, 255, 0.7); */
  146. color:#fff;
  147. font-size: 1.4rem;
  148. -webkit-transition: color 0.2s;
  149. -moz-transition: color 0.2s;
  150. transition: color 0.2s;
  151. background: rgba(0,0,0,.7);
  152. width:170px;
  153. text-align:center;
  154. margin-right: 20px;
  155. border-bottom:1px solid #fff;
  156. }
  157. .cd-stretchy-nav ul a::after {
  158. /* navigation item icons */
  159. content: '';
  160. position: absolute;
  161. height: 16px;
  162. width: 16px;
  163. right: 22px;
  164. top: 50%;
  165. -webkit-transform: translateY(-50%) scale(0);
  166. -moz-transform: translateY(-50%) scale(0);
  167. -ms-transform: translateY(-50%) scale(0);
  168. -o-transform: translateY(-50%) scale(0);
  169. transform: translateY(-50%) scale(0);
  170. opacity: .6;
  171. /* background: url(../img/cd-sprite-1.svg) no-repeat 0 0; */
  172. }
  173. .cd-stretchy-nav ul a::before {
  174. /* line visible next to the active navigation item */
  175. content: '';
  176. position: absolute;
  177. width: 3px;
  178. height: 16px;
  179. top: 50%;
  180. /* right: 60px; */
  181. /* right:20px; */
  182. right:3px;
  183. -webkit-transform: translateX(3px) translateY(-50%) scaleY(0);
  184. -moz-transform: translateX(3px) translateY(-50%) scaleY(0);
  185. -ms-transform: translateX(3px) translateY(-50%) scaleY(0);
  186. -o-transform: translateX(3px) translateY(-50%) scaleY(0);
  187. transform: translateX(3px) translateY(-50%) scaleY(0);
  188. background-color: #0a9581;
  189. }
  190. .cd-stretchy-nav ul li:first-of-type a::after {
  191. /* change custom icon using image sprites */
  192. background-position: -32px 0;
  193. }
  194. .cd-stretchy-nav ul li:nth-of-type(2) a::after {
  195. background-position: -64px 0;
  196. }
  197. .cd-stretchy-nav ul li:nth-of-type(3) a::after {
  198. background-position: -48px 0;
  199. }
  200. .cd-stretchy-nav ul li:nth-of-type(4) a::after {
  201. background-position: 0 0;
  202. }
  203. .cd-stretchy-nav ul li:nth-of-type(5) a::after {
  204. background-position: -16px 0;
  205. }
  206. .cd-stretchy-nav ul span {
  207. /* navigation item labels */
  208. display: block;
  209. opacity: 0;
  210. -webkit-transform: translateX(-25px);
  211. -moz-transform: translateX(-25px);
  212. -ms-transform: translateX(-25px);
  213. -o-transform: translateX(-25px);
  214. transform: translateX(-25px);
  215. }
  216. .cd-stretchy-nav.nav-is-visible ul {
  217. /* visibility: visible; */
  218. display: block;
  219. }
  220. .cd-stretchy-nav.nav-is-visible ul a::after {
  221. /* navigation item icons */
  222. -webkit-transform: translateY(-50%) scale(1);
  223. -moz-transform: translateY(-50%) scale(1);
  224. -ms-transform: translateY(-50%) scale(1);
  225. -o-transform: translateY(-50%) scale(1);
  226. transform: translateY(-50%) scale(1);
  227. -webkit-animation: scaleIn 0.15s backwards;
  228. -moz-animation: scaleIn 0.15s backwards;
  229. animation: scaleIn 0.15s backwards;
  230. -webkit-transition: opacity 0.2s;
  231. -moz-transition: opacity 0.2s;
  232. transition: opacity 0.2s;
  233. }
  234. .cd-stretchy-nav.nav-is-visible ul a.active {
  235. color: #ffffff;
  236. }
  237. .cd-stretchy-nav.nav-is-visible ul a.active::after {
  238. opacity: 1;
  239. }
  240. .cd-stretchy-nav.nav-is-visible ul a.active::before {
  241. -webkit-transform: translateX(3px) translateY(-50%) scaleY(1);
  242. -moz-transform: translateX(3px) translateY(-50%) scaleY(1);
  243. -ms-transform: translateX(3px) translateY(-50%) scaleY(1);
  244. -o-transform: translateX(3px) translateY(-50%) scaleY(1);
  245. transform: translateX(3px) translateY(-50%) scaleY(1);
  246. -webkit-transition: -webkit-transform 0.15s 0.3s;
  247. -moz-transition: -moz-transform 0.15s 0.3s;
  248. transition: transform 0.15s 0.3s;
  249. }
  250. .cd-stretchy-nav.nav-is-visible ul span {
  251. opacity: 1;
  252. -webkit-transform: translateX(0);
  253. -moz-transform: translateX(0);
  254. -ms-transform: translateX(0);
  255. -o-transform: translateX(0);
  256. transform: translateX(0);
  257. -webkit-animation: slideIn 0.15s backwards;
  258. -moz-animation: slideIn 0.15s backwards;
  259. animation: slideIn 0.15s backwards;
  260. -webkit-transition: -webkit-transform 0.2s;
  261. -moz-transition: -moz-transform 0.2s;
  262. transition: transform 0.2s;
  263. }
  264. .no-touch .cd-stretchy-nav.nav-is-visible ul a:hover {
  265. color: #ffffff;
  266. }
  267. .no-touch .cd-stretchy-nav.nav-is-visible ul a:hover::after {
  268. opacity: 1;
  269. }
  270. .no-touch .cd-stretchy-nav.nav-is-visible ul a:hover span {
  271. -webkit-transform: translateX(-5px);
  272. -moz-transform: translateX(-5px);
  273. -ms-transform: translateX(-5px);
  274. -o-transform: translateX(-5px);
  275. transform: translateX(-5px);
  276. }
  277. .cd-stretchy-nav.nav-is-visible ul li:first-of-type a::after,
  278. .cd-stretchy-nav.nav-is-visible ul li:first-of-type span {
  279. -webkit-animation-delay: 0.05s;
  280. -moz-animation-delay: 0.05s;
  281. animation-delay: 0.05s;
  282. }
  283. .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(2) a::after,
  284. .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(2) span {
  285. -webkit-animation-delay: 0.1s;
  286. -moz-animation-delay: 0.1s;
  287. animation-delay: 0.1s;
  288. }
  289. .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(3) a::after,
  290. .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(3) span {
  291. -webkit-animation-delay: 0.15s;
  292. -moz-animation-delay: 0.15s;
  293. animation-delay: 0.15s;
  294. }
  295. .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(4) a::after,
  296. .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(4) span {
  297. -webkit-animation-delay: 0.2s;
  298. -moz-animation-delay: 0.2s;
  299. animation-delay: 0.2s;
  300. }
  301. .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(5) a::after,
  302. .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(5) span {
  303. -webkit-animation-delay: 0.25s;
  304. -moz-animation-delay: 0.25s;
  305. animation-delay: 0.25s;
  306. }
  307. /* --------------------------------
  308. add-content navigation style
  309. -------------------------------- */
  310. .cd-stretchy-nav.add-content {
  311. bottom: 50px;
  312. top: auto;
  313. left: 50%;
  314. right: auto;
  315. -webkit-transform: translateX(-50%);
  316. -moz-transform: translateX(-50%);
  317. -ms-transform: translateX(-50%);
  318. -o-transform: translateX(-50%);
  319. transform: translateX(-50%);
  320. width: 300px;
  321. }
  322. .cd-stretchy-nav.add-content .stretchy-nav-bg {
  323. left: 50%;
  324. right: auto;
  325. -webkit-transform: translateX(-50%);
  326. -moz-transform: translateX(-50%);
  327. -ms-transform: translateX(-50%);
  328. -o-transform: translateX(-50%);
  329. transform: translateX(-50%);
  330. background-color: #8ac57f;
  331. -webkit-transition: width 0.2s, box-shadow 0.2s;
  332. -moz-transition: width 0.2s, box-shadow 0.2s;
  333. transition: width 0.2s, box-shadow 0.2s;
  334. }
  335. .cd-stretchy-nav.add-content.nav-is-visible .stretchy-nav-bg {
  336. width: 100%;
  337. box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
  338. }
  339. .cd-stretchy-nav.add-content .cd-nav-trigger {
  340. left: 50%;
  341. right: auto;
  342. -webkit-transform: translateX(-50%);
  343. -moz-transform: translateX(-50%);
  344. -ms-transform: translateX(-50%);
  345. -o-transform: translateX(-50%);
  346. transform: translateX(-50%);
  347. background-color: #9acd91;
  348. }
  349. .cd-stretchy-nav.add-content .cd-nav-trigger span {
  350. background-color: transparent;
  351. }
  352. .cd-stretchy-nav.add-content .cd-nav-trigger span::before {
  353. /* used to create the plus icon */
  354. -webkit-transform: rotate(90deg);
  355. -moz-transform: rotate(90deg);
  356. -ms-transform: rotate(90deg);
  357. -o-transform: rotate(90deg);
  358. transform: rotate(90deg);
  359. }
  360. .cd-stretchy-nav.add-content .cd-nav-trigger span::after {
  361. /* used to create the plus icon */
  362. -webkit-transform: rotate(0deg);
  363. -moz-transform: rotate(0deg);
  364. -ms-transform: rotate(0deg);
  365. -o-transform: rotate(0deg);
  366. transform: rotate(0deg);
  367. }
  368. .cd-stretchy-nav.add-content.nav-is-visible .cd-nav-trigger {
  369. box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
  370. }
  371. .cd-stretchy-nav.add-content.nav-is-visible .cd-nav-trigger span::before {
  372. -webkit-transform: rotate(-135deg);
  373. -moz-transform: rotate(-135deg);
  374. -ms-transform: rotate(-135deg);
  375. -o-transform: rotate(-135deg);
  376. transform: rotate(-135deg);
  377. }
  378. .cd-stretchy-nav.add-content.nav-is-visible .cd-nav-trigger span::after {
  379. -webkit-transform: rotate(-225deg);
  380. -moz-transform: rotate(-225deg);
  381. -ms-transform: rotate(-225deg);
  382. -o-transform: rotate(-225deg);
  383. transform: rotate(-225deg);
  384. }
  385. .cd-stretchy-nav.add-content ul {
  386. padding-top: 0;
  387. }
  388. .cd-stretchy-nav.add-content ul::after {
  389. clear: both;
  390. content: "";
  391. display: table;
  392. }
  393. .cd-stretchy-nav.add-content ul li {
  394. display: inline-block;
  395. float: left;
  396. width: 60px;
  397. }
  398. .cd-stretchy-nav.add-content ul li:nth-of-type(2) {
  399. /* space occupied by the navigation trigger */
  400. margin-right: 60px;
  401. }
  402. .cd-stretchy-nav.add-content ul a {
  403. padding: 0;
  404. height: 60px;
  405. width: 100%;
  406. }
  407. .cd-stretchy-nav.add-content ul a::after {
  408. top: 50%;
  409. left: 22px;
  410. right: auto;
  411. -webkit-transform: translateY(-50%) scale(0);
  412. -moz-transform: translateY(-50%) scale(0);
  413. -ms-transform: translateY(-50%) scale(0);
  414. -o-transform: translateY(-50%) scale(0);
  415. transform: translateY(-50%) scale(0);
  416. /* background-image: url(../img/cd-sprite-2.svg); */
  417. }
  418. .cd-stretchy-nav.add-content ul li:first-of-type a::after {
  419. background-position: -16px 0px;
  420. }
  421. .cd-stretchy-nav.add-content ul li:nth-of-type(2) a::after {
  422. background-position: 0px 0px;
  423. }
  424. .cd-stretchy-nav.add-content ul li:nth-of-type(3) a::after {
  425. background-position: -48px 0px;
  426. }
  427. .cd-stretchy-nav.add-content ul li:nth-of-type(4) a::after {
  428. background-position: -32px 0px;
  429. }
  430. .cd-stretchy-nav.add-content ul li:first-of-type a::after,
  431. .cd-stretchy-nav.add-content ul li:nth-of-type(4) a::after {
  432. -webkit-animation-delay: 0.2s;
  433. -moz-animation-delay: 0.2s;
  434. animation-delay: 0.2s;
  435. }
  436. .cd-stretchy-nav.add-content ul li:nth-of-type(2) a::after,
  437. .cd-stretchy-nav.add-content ul li:nth-of-type(3) a::after {
  438. -webkit-animation-delay: 0.1s;
  439. -moz-animation-delay: 0.1s;
  440. animation-delay: 0.1s;
  441. }
  442. .cd-stretchy-nav.add-content.nav-is-visible ul a::after {
  443. -webkit-animation-name: scaleIn;
  444. -moz-animation-name: scaleIn;
  445. animation-name: scaleIn;
  446. -webkit-transform: translateY(-50%) scale(1);
  447. -moz-transform: translateY(-50%) scale(1);
  448. -ms-transform: translateY(-50%) scale(1);
  449. -o-transform: translateY(-50%) scale(1);
  450. transform: translateY(-50%) scale(1);
  451. }
  452. .cd-stretchy-nav.add-content ul span {
  453. position: absolute;
  454. left: 0;
  455. top: -20px;
  456. width: 100%;
  457. padding: 0.6em 0;
  458. opacity: 0;
  459. visibility: hidden;
  460. background-color: rgba(0, 0, 0, 0.8);
  461. border-radius: 2px;
  462. font-size: 1.2rem;
  463. line-height: 1;
  464. white-space: nowrap;
  465. text-align: center;
  466. -webkit-transition: opacity 0.2s, visibility 0.2s;
  467. -moz-transition: opacity 0.2s, visibility 0.2s;
  468. transition: opacity 0.2s, visibility 0.2s;
  469. /* reset default style */
  470. -webkit-transform: translateX(0);
  471. -moz-transform: translateX(0);
  472. -ms-transform: translateX(0);
  473. -o-transform: translateX(0);
  474. transform: translateX(0);
  475. }
  476. .cd-stretchy-nav.add-content ul span::after {
  477. /* triangle below the tooltip */
  478. content: '';
  479. position: absolute;
  480. top: 100%;
  481. left: 50%;
  482. right: auto;
  483. -webkit-transform: translateX(-50%);
  484. -moz-transform: translateX(-50%);
  485. -ms-transform: translateX(-50%);
  486. -o-transform: translateX(-50%);
  487. transform: translateX(-50%);
  488. height: 0;
  489. width: 0;
  490. border: 4px solid transparent;
  491. border-top-color: rgba(0, 0, 0, 0.8);
  492. }
  493. .cd-stretchy-nav.add-content.nav-is-visible ul span {
  494. /* reset default style */
  495. -webkit-animation: none;
  496. -moz-animation: none;
  497. animation: none;
  498. }
  499. .no-touch .cd-stretchy-nav.add-content.nav-is-visible ul a:hover span {
  500. opacity: 1;
  501. visibility: visible;
  502. /* reset default style */
  503. -webkit-transform: translateX(0);
  504. -moz-transform: translateX(0);
  505. -ms-transform: translateX(0);
  506. -o-transform: translateX(0);
  507. transform: translateX(0);
  508. }
  509. /* --------------------------------
  510. edit content
  511. -------------------------------- */
  512. .cd-editable-content {
  513. /* used to wrap the image and the navigation */
  514. position: relative;
  515. width: 90%;
  516. max-width: 400px;
  517. margin: 4em auto;
  518. }
  519. .cd-editable-content img {
  520. display: block;
  521. border-radius: .25em;
  522. }
  523. .cd-stretchy-nav.edit-content {
  524. position: absolute;
  525. top: 15px;
  526. right: 15px;
  527. }
  528. .cd-stretchy-nav.edit-content .stretchy-nav-bg {
  529. height: 30px;
  530. width: 30px;
  531. background-color: rgba(0, 0, 0, 0.4);
  532. box-shadow: none;
  533. -webkit-transition: background 0.2s, height 0.2s;
  534. -moz-transition: background 0.2s, height 0.2s;
  535. transition: background 0.2s, height 0.2s;
  536. }
  537. .cd-stretchy-nav.edit-content.nav-is-visible .stretchy-nav-bg {
  538. height: 100%;
  539. background-color: rgba(0, 0, 0, 0.8);
  540. /* reset default style */
  541. box-shadow: none;
  542. }
  543. .cd-stretchy-nav.edit-content .cd-nav-trigger {
  544. height: 30px;
  545. width: 30px;
  546. }
  547. .cd-stretchy-nav.edit-content .cd-nav-trigger span {
  548. opacity: 0;
  549. background-color: transparent;
  550. }
  551. .cd-stretchy-nav.edit-content .cd-nav-trigger span::before {
  552. -webkit-transform: rotate(-45deg);
  553. -moz-transform: rotate(-45deg);
  554. -ms-transform: rotate(-45deg);
  555. -o-transform: rotate(-45deg);
  556. transform: rotate(-45deg);
  557. }
  558. .cd-stretchy-nav.edit-content .cd-nav-trigger span::after {
  559. -webkit-transform: rotate(45deg);
  560. -moz-transform: rotate(45deg);
  561. -ms-transform: rotate(45deg);
  562. -o-transform: rotate(45deg);
  563. transform: rotate(45deg);
  564. }
  565. .cd-stretchy-nav.edit-content .cd-nav-trigger span, .cd-stretchy-nav.edit-content .cd-nav-trigger span::before, .cd-stretchy-nav.edit-content .cd-nav-trigger span::after {
  566. /* used to create the 'X' icon when the navigation is open */
  567. width: 12px;
  568. }
  569. .cd-stretchy-nav.edit-content .cd-nav-trigger::after {
  570. /* edit icon */
  571. content: '';
  572. position: absolute;
  573. height: 16px;
  574. width: 16px;
  575. left: 50%;
  576. top: 50%;
  577. bottom: auto;
  578. right: auto;
  579. -webkit-transform: translateX(-50%) translateY(-50%);
  580. -moz-transform: translateX(-50%) translateY(-50%);
  581. -ms-transform: translateX(-50%) translateY(-50%);
  582. -o-transform: translateX(-50%) translateY(-50%);
  583. transform: translateX(-50%) translateY(-50%);
  584. /* background: url(../img/cd-sprite-3.svg) no-repeat 0 0; */
  585. }
  586. .cd-stretchy-nav.edit-content .cd-nav-trigger span, .cd-stretchy-nav.edit-content .cd-nav-trigger::after {
  587. -webkit-transition: opacity 0.2s;
  588. -moz-transition: opacity 0.2s;
  589. transition: opacity 0.2s;
  590. }
  591. .no-touch .cd-stretchy-nav.edit-content .cd-nav-trigger:hover ~ .stretchy-nav-bg {
  592. box-shadow: none;
  593. background-color: rgba(0, 0, 0, 0.8);
  594. }
  595. .cd-stretchy-nav.edit-content.nav-is-visible .cd-nav-trigger span {
  596. opacity: 1;
  597. }
  598. .cd-stretchy-nav.edit-content.nav-is-visible .cd-nav-trigger span::before {
  599. -webkit-transform: rotate(45deg);
  600. -moz-transform: rotate(45deg);
  601. -ms-transform: rotate(45deg);
  602. -o-transform: rotate(45deg);
  603. transform: rotate(45deg);
  604. }
  605. .cd-stretchy-nav.edit-content.nav-is-visible .cd-nav-trigger span::after {
  606. -webkit-transform: rotate(135deg);
  607. -moz-transform: rotate(135deg);
  608. -ms-transform: rotate(135deg);
  609. -o-transform: rotate(135deg);
  610. transform: rotate(135deg);
  611. }
  612. .cd-stretchy-nav.edit-content.nav-is-visible .cd-nav-trigger::after {
  613. /* hide edit icon */
  614. opacity: 0;
  615. }
  616. .cd-stretchy-nav.edit-content ul {
  617. padding-top: 30px;
  618. }
  619. .cd-stretchy-nav.edit-content ul a {
  620. width: 30px;
  621. height: 30px;
  622. line-height: 30px;
  623. padding: 0;
  624. }
  625. .cd-stretchy-nav.edit-content ul a::after {
  626. right: 7px;
  627. /* background-image: url(../img/cd-sprite-3.svg); */
  628. }
  629. .cd-stretchy-nav.edit-content ul li:first-of-type a::after {
  630. background-position: -16px 0;
  631. }
  632. .cd-stretchy-nav.edit-content ul li:nth-of-type(2) a::after {
  633. background-position: -32px 0;
  634. }
  635. .cd-stretchy-nav.edit-content ul li:nth-of-type(3) a::after {
  636. background-position: -48px 0;
  637. }
  638. .cd-stretchy-nav.edit-content ul li:nth-of-type(4) a::after {
  639. background-position: -64px 0;
  640. }
  641. .cd-stretchy-nav.edit-content ul span {
  642. position: absolute;
  643. top: 0;
  644. right: 35px;
  645. height: 30px;
  646. line-height: 30px;
  647. padding: 0 1em;
  648. opacity: 0;
  649. visibility: hidden;
  650. background-color: rgba(0, 0, 0, 0.55);
  651. border-radius: 2px;
  652. text-align: center;
  653. -webkit-transition: opacity 0.2s, visibility 0.2s;
  654. -moz-transition: opacity 0.2s, visibility 0.2s;
  655. transition: opacity 0.2s, visibility 0.2s;
  656. }
  657. .cd-stretchy-nav.edit-content ul span::after {
  658. /* triangle below the tooltip */
  659. content: '';
  660. position: absolute;
  661. left: 100%;
  662. top: 50%;
  663. bottom: auto;
  664. -webkit-transform: translateY(-50%);
  665. -moz-transform: translateY(-50%);
  666. -ms-transform: translateY(-50%);
  667. -o-transform: translateY(-50%);
  668. transform: translateY(-50%);
  669. height: 0;
  670. width: 0;
  671. border: 4px solid transparent;
  672. border-left-color: rgba(0, 0, 0, 0.55);
  673. }
  674. .cd-stretchy-nav.edit-content.nav-is-visible ul span {
  675. /* reset default style */
  676. -webkit-animation: none;
  677. -moz-animation: none;
  678. animation: none;
  679. }
  680. .no-touch .cd-stretchy-nav.edit-content.nav-is-visible ul a:hover span {
  681. opacity: 1;
  682. visibility: visible;
  683. /* reset default style */
  684. -webkit-transform: translateX(0);
  685. -moz-transform: translateX(0);
  686. -ms-transform: translateX(0);
  687. -o-transform: translateX(0);
  688. transform: translateX(0);
  689. }
  690. /* --------------------------------
  691. main content basic style
  692. -------------------------------- */
  693. .cd-main-content {
  694. position: relative;
  695. z-index: 1;
  696. min-height: 100vh;
  697. padding: 100px 0;
  698. background-color: #003c5d;
  699. }
  700. /* --------------------------------
  701. keyframes
  702. -------------------------------- */
  703. @-webkit-keyframes scaleIn {
  704. from {
  705. -webkit-transform: translateY(-50%) scale(0);
  706. }
  707. to {
  708. -webkit-transform: translateY(-50%) scale(1);
  709. }
  710. }
  711. @-moz-keyframes scaleIn {
  712. from {
  713. -moz-transform: translateY(-50%) scale(0);
  714. }
  715. to {
  716. -moz-transform: translateY(-50%) scale(1);
  717. }
  718. }
  719. @keyframes scaleIn {
  720. from {
  721. -webkit-transform: translateY(-50%) scale(0);
  722. -moz-transform: translateY(-50%) scale(0);
  723. -ms-transform: translateY(-50%) scale(0);
  724. -o-transform: translateY(-50%) scale(0);
  725. transform: translateY(-50%) scale(0);
  726. }
  727. to {
  728. -webkit-transform: translateY(-50%) scale(1);
  729. -moz-transform: translateY(-50%) scale(1);
  730. -ms-transform: translateY(-50%) scale(1);
  731. -o-transform: translateY(-50%) scale(1);
  732. transform: translateY(-50%) scale(1);
  733. }
  734. }
  735. @-webkit-keyframes slideIn {
  736. from {
  737. opacity: 0;
  738. -webkit-transform: translateX(-25px);
  739. }
  740. to {
  741. opacity: 1;
  742. -webkit-transform: translateX(0);
  743. }
  744. }
  745. @-moz-keyframes slideIn {
  746. from {
  747. opacity: 0;
  748. -moz-transform: translateX(-25px);
  749. }
  750. to {
  751. opacity: 1;
  752. -moz-transform: translateX(0);
  753. }
  754. }
  755. @keyframes slideIn {
  756. from {
  757. opacity: 0;
  758. -webkit-transform: translateX(-25px);
  759. -moz-transform: translateX(-25px);
  760. -ms-transform: translateX(-25px);
  761. -o-transform: translateX(-25px);
  762. transform: translateX(-25px);
  763. }
  764. to {
  765. opacity: 1;
  766. -webkit-transform: translateX(0);
  767. -moz-transform: translateX(0);
  768. -ms-transform: translateX(0);
  769. -o-transform: translateX(0);
  770. transform: translateX(0);
  771. }
  772. }
  773. .demo{ width: 100%; height: 50px; position: absolute; bottom: 0px; z-index: 100; box-shadow: 0px 0px 5px #012e47;}
  774. .demo a{ display: block; width: 33.3%; height: 50px; line-height: 50px; float: left; display: block; text-align: center; background: #003c5d; color: #FFFFFF;}
  775. .demo a:hover{ background: #9acd91;}