123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819 |
-
- a {
- color: #9acd91;
- text-decoration: none;
- }
-
- img {
- max-width: 100%;
- }
-
- /* --------------------------------
-
- Stretchy Nav style - common to:
- - basic navigation
- - add-content navigation
- - edit-content navigation
-
- -------------------------------- */
- .cd-stretchy-nav {
- /* position: fixed; */
- position: absolute;
- z-index: 2;
- top: 55%;
- /* left:5%; */
- /* top:50%; */
- right: 5%;
- }
- .cd-stretchy-nav .stretchy-nav-bg {
- /* this is the stretching navigation background */
- position: absolute;
- z-index: 1;
- top: 0;
- right: 0;
- width: 60px;
- height: 60px;
- border-radius: 30px;
- /* border-bottom-left-radius: 0;
- border-bottom-right-radius: 0; */
- background: #9acd91;
- box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
- -webkit-transition: height 0.2s, box-shadow 0.2s;
- -moz-transition: height 0.2s, box-shadow 0.2s;
- transition: height 0.2s, box-shadow 0.2s;
- }
- .cd-stretchy-nav.nav-is-visible .stretchy-nav-bg {
- height: 100%;
- box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
- }
-
- .cd-nav-trigger {
- position: absolute;
- z-index: 3;
- top: 0;
- right: 0;
- height: 60px;
- width: 60px;
- border-radius: 50%;
- /* replace text with image */
- overflow: hidden;
- white-space: nowrap;
- color: transparent;
- }
- .cd-nav-trigger span, .cd-nav-trigger span::after, .cd-nav-trigger span::before {
- /* this is the hamburger icon */
- position: absolute;
- width: 16px;
- height: 2px;
- background-color: #ffffff;
- }
- .cd-nav-trigger span {
- /* middle line of the hamburger icon */
- left: 50%;
- top: 50%;
- bottom: auto;
- right: auto;
- -webkit-transform: translateX(-50%) translateY(-50%);
- -moz-transform: translateX(-50%) translateY(-50%);
- -ms-transform: translateX(-50%) translateY(-50%);
- -o-transform: translateX(-50%) translateY(-50%);
- transform: translateX(-50%) translateY(-50%);
- -webkit-transition: background-color 0.2s;
- -moz-transition: background-color 0.2s;
- transition: background-color 0.2s;
- }
- .cd-nav-trigger span::after, .cd-nav-trigger span::before {
- /* top and bottom lines of the hamburger icon */
- content: '';
- top: 0;
- left: 0;
- -webkit-backface-visibility: hidden;
- backface-visibility: hidden;
- -webkit-transition: -webkit-transform 0.2s;
- -moz-transition: -moz-transform 0.2s;
- transition: transform 0.2s;
- }
- .cd-nav-trigger span::before {
- -webkit-transform: translateY(-6px);
- -moz-transform: translateY(-6px);
- -ms-transform: translateY(-6px);
- -o-transform: translateY(-6px);
- transform: translateY(-6px);
- }
- .cd-nav-trigger span::after {
- -webkit-transform: translateY(6px);
- -moz-transform: translateY(6px);
- -ms-transform: translateY(6px);
- -o-transform: translateY(6px);
- transform: translateY(6px);
- }
- .no-touch .cd-nav-trigger:hover ~ .stretchy-nav-bg {
- box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
- }
- .nav-is-visible .cd-nav-trigger span {
- background-color: transparent;
- }
- .nav-is-visible .cd-nav-trigger span::before {
- -webkit-transform: rotate(-45deg);
- -moz-transform: rotate(-45deg);
- -ms-transform: rotate(-45deg);
- -o-transform: rotate(-45deg);
- transform: rotate(-45deg);
- }
- .nav-is-visible .cd-nav-trigger span::after {
- -webkit-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- transform: rotate(45deg);
- }
-
- .cd-stretchy-nav ul {
- position: relative;
- z-index: 2;
- padding: 60px 0 0;
- /* visibility: hidden; */
- display: none;
- /* -webkit-transition: visibility 0.3s; */
- /* -moz-transition: visibility 0.3s;
- transition: visibility 0.3s; */
- -webkit-transition: display 0.3s;
- -moz-transition: display 0.3s;
- transition: display 0.3s;
- text-align: right;
- }
- .cd-stretchy-nav ul a {
- position: relative;
- display: inline-block;
- height: 42px;
- line-height: 42px;
- /* padding: 0 calc(1em + 60px) 0 1em; */
- /* padding: 0 0.8em; */
- /* color: rgba(255, 255, 255, 0.7); */
- color:#fff;
- font-size: 1.4rem;
- -webkit-transition: color 0.2s;
- -moz-transition: color 0.2s;
- transition: color 0.2s;
- background: rgba(0,0,0,.7);
- width:170px;
- text-align:center;
- margin-right: 20px;
- border-bottom:1px solid #fff;
- }
- .cd-stretchy-nav ul a::after {
- /* navigation item icons */
- content: '';
- position: absolute;
- height: 16px;
- width: 16px;
- right: 22px;
- top: 50%;
- -webkit-transform: translateY(-50%) scale(0);
- -moz-transform: translateY(-50%) scale(0);
- -ms-transform: translateY(-50%) scale(0);
- -o-transform: translateY(-50%) scale(0);
- transform: translateY(-50%) scale(0);
- opacity: .6;
- /* background: url(../img/cd-sprite-1.svg) no-repeat 0 0; */
- }
- .cd-stretchy-nav ul a::before {
- /* line visible next to the active navigation item */
- content: '';
- position: absolute;
- width: 3px;
- height: 16px;
- top: 50%;
- /* right: 60px; */
- /* right:20px; */
- right:3px;
- -webkit-transform: translateX(3px) translateY(-50%) scaleY(0);
- -moz-transform: translateX(3px) translateY(-50%) scaleY(0);
- -ms-transform: translateX(3px) translateY(-50%) scaleY(0);
- -o-transform: translateX(3px) translateY(-50%) scaleY(0);
- transform: translateX(3px) translateY(-50%) scaleY(0);
- background-color: #0a9581;
- }
- .cd-stretchy-nav ul li:first-of-type a::after {
- /* change custom icon using image sprites */
- background-position: -32px 0;
- }
- .cd-stretchy-nav ul li:nth-of-type(2) a::after {
- background-position: -64px 0;
- }
- .cd-stretchy-nav ul li:nth-of-type(3) a::after {
- background-position: -48px 0;
- }
- .cd-stretchy-nav ul li:nth-of-type(4) a::after {
- background-position: 0 0;
- }
- .cd-stretchy-nav ul li:nth-of-type(5) a::after {
- background-position: -16px 0;
- }
- .cd-stretchy-nav ul span {
- /* navigation item labels */
- display: block;
- opacity: 0;
- -webkit-transform: translateX(-25px);
- -moz-transform: translateX(-25px);
- -ms-transform: translateX(-25px);
- -o-transform: translateX(-25px);
- transform: translateX(-25px);
- }
-
- .cd-stretchy-nav.nav-is-visible ul {
- /* visibility: visible; */
- display: block;
- }
- .cd-stretchy-nav.nav-is-visible ul a::after {
- /* navigation item icons */
- -webkit-transform: translateY(-50%) scale(1);
- -moz-transform: translateY(-50%) scale(1);
- -ms-transform: translateY(-50%) scale(1);
- -o-transform: translateY(-50%) scale(1);
- transform: translateY(-50%) scale(1);
- -webkit-animation: scaleIn 0.15s backwards;
- -moz-animation: scaleIn 0.15s backwards;
- animation: scaleIn 0.15s backwards;
- -webkit-transition: opacity 0.2s;
- -moz-transition: opacity 0.2s;
- transition: opacity 0.2s;
- }
- .cd-stretchy-nav.nav-is-visible ul a.active {
- color: #ffffff;
-
- }
- .cd-stretchy-nav.nav-is-visible ul a.active::after {
- opacity: 1;
- }
- .cd-stretchy-nav.nav-is-visible ul a.active::before {
- -webkit-transform: translateX(3px) translateY(-50%) scaleY(1);
- -moz-transform: translateX(3px) translateY(-50%) scaleY(1);
- -ms-transform: translateX(3px) translateY(-50%) scaleY(1);
- -o-transform: translateX(3px) translateY(-50%) scaleY(1);
- transform: translateX(3px) translateY(-50%) scaleY(1);
- -webkit-transition: -webkit-transform 0.15s 0.3s;
- -moz-transition: -moz-transform 0.15s 0.3s;
- transition: transform 0.15s 0.3s;
- }
- .cd-stretchy-nav.nav-is-visible ul span {
- opacity: 1;
- -webkit-transform: translateX(0);
- -moz-transform: translateX(0);
- -ms-transform: translateX(0);
- -o-transform: translateX(0);
- transform: translateX(0);
- -webkit-animation: slideIn 0.15s backwards;
- -moz-animation: slideIn 0.15s backwards;
- animation: slideIn 0.15s backwards;
- -webkit-transition: -webkit-transform 0.2s;
- -moz-transition: -moz-transform 0.2s;
- transition: transform 0.2s;
- }
- .no-touch .cd-stretchy-nav.nav-is-visible ul a:hover {
- color: #ffffff;
- }
- .no-touch .cd-stretchy-nav.nav-is-visible ul a:hover::after {
- opacity: 1;
- }
- .no-touch .cd-stretchy-nav.nav-is-visible ul a:hover span {
- -webkit-transform: translateX(-5px);
- -moz-transform: translateX(-5px);
- -ms-transform: translateX(-5px);
- -o-transform: translateX(-5px);
- transform: translateX(-5px);
- }
- .cd-stretchy-nav.nav-is-visible ul li:first-of-type a::after,
- .cd-stretchy-nav.nav-is-visible ul li:first-of-type span {
- -webkit-animation-delay: 0.05s;
- -moz-animation-delay: 0.05s;
- animation-delay: 0.05s;
- }
- .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(2) a::after,
- .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(2) span {
- -webkit-animation-delay: 0.1s;
- -moz-animation-delay: 0.1s;
- animation-delay: 0.1s;
- }
- .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(3) a::after,
- .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(3) span {
- -webkit-animation-delay: 0.15s;
- -moz-animation-delay: 0.15s;
- animation-delay: 0.15s;
- }
- .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(4) a::after,
- .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(4) span {
- -webkit-animation-delay: 0.2s;
- -moz-animation-delay: 0.2s;
- animation-delay: 0.2s;
- }
- .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(5) a::after,
- .cd-stretchy-nav.nav-is-visible ul li:nth-of-type(5) span {
- -webkit-animation-delay: 0.25s;
- -moz-animation-delay: 0.25s;
- animation-delay: 0.25s;
- }
-
- /* --------------------------------
-
- add-content navigation style
-
- -------------------------------- */
- .cd-stretchy-nav.add-content {
- bottom: 50px;
- top: auto;
- left: 50%;
- right: auto;
- -webkit-transform: translateX(-50%);
- -moz-transform: translateX(-50%);
- -ms-transform: translateX(-50%);
- -o-transform: translateX(-50%);
- transform: translateX(-50%);
- width: 300px;
- }
- .cd-stretchy-nav.add-content .stretchy-nav-bg {
- left: 50%;
- right: auto;
- -webkit-transform: translateX(-50%);
- -moz-transform: translateX(-50%);
- -ms-transform: translateX(-50%);
- -o-transform: translateX(-50%);
- transform: translateX(-50%);
- background-color: #8ac57f;
- -webkit-transition: width 0.2s, box-shadow 0.2s;
- -moz-transition: width 0.2s, box-shadow 0.2s;
- transition: width 0.2s, box-shadow 0.2s;
- }
- .cd-stretchy-nav.add-content.nav-is-visible .stretchy-nav-bg {
- width: 100%;
- box-shadow: 0 6px 30px rgba(0, 0, 0, 0.2);
- }
-
- .cd-stretchy-nav.add-content .cd-nav-trigger {
- left: 50%;
- right: auto;
- -webkit-transform: translateX(-50%);
- -moz-transform: translateX(-50%);
- -ms-transform: translateX(-50%);
- -o-transform: translateX(-50%);
- transform: translateX(-50%);
- background-color: #9acd91;
- }
- .cd-stretchy-nav.add-content .cd-nav-trigger span {
- background-color: transparent;
- }
- .cd-stretchy-nav.add-content .cd-nav-trigger span::before {
- /* used to create the plus icon */
- -webkit-transform: rotate(90deg);
- -moz-transform: rotate(90deg);
- -ms-transform: rotate(90deg);
- -o-transform: rotate(90deg);
- transform: rotate(90deg);
- }
- .cd-stretchy-nav.add-content .cd-nav-trigger span::after {
- /* used to create the plus icon */
- -webkit-transform: rotate(0deg);
- -moz-transform: rotate(0deg);
- -ms-transform: rotate(0deg);
- -o-transform: rotate(0deg);
- transform: rotate(0deg);
- }
-
- .cd-stretchy-nav.add-content.nav-is-visible .cd-nav-trigger {
- box-shadow: 0 4px 30px rgba(0, 0, 0, 0.2);
- }
- .cd-stretchy-nav.add-content.nav-is-visible .cd-nav-trigger span::before {
- -webkit-transform: rotate(-135deg);
- -moz-transform: rotate(-135deg);
- -ms-transform: rotate(-135deg);
- -o-transform: rotate(-135deg);
- transform: rotate(-135deg);
- }
- .cd-stretchy-nav.add-content.nav-is-visible .cd-nav-trigger span::after {
- -webkit-transform: rotate(-225deg);
- -moz-transform: rotate(-225deg);
- -ms-transform: rotate(-225deg);
- -o-transform: rotate(-225deg);
- transform: rotate(-225deg);
- }
-
- .cd-stretchy-nav.add-content ul {
- padding-top: 0;
- }
- .cd-stretchy-nav.add-content ul::after {
- clear: both;
- content: "";
- display: table;
- }
- .cd-stretchy-nav.add-content ul li {
- display: inline-block;
- float: left;
- width: 60px;
- }
- .cd-stretchy-nav.add-content ul li:nth-of-type(2) {
- /* space occupied by the navigation trigger */
- margin-right: 60px;
- }
- .cd-stretchy-nav.add-content ul a {
- padding: 0;
- height: 60px;
- width: 100%;
- }
- .cd-stretchy-nav.add-content ul a::after {
- top: 50%;
- left: 22px;
- right: auto;
- -webkit-transform: translateY(-50%) scale(0);
- -moz-transform: translateY(-50%) scale(0);
- -ms-transform: translateY(-50%) scale(0);
- -o-transform: translateY(-50%) scale(0);
- transform: translateY(-50%) scale(0);
- /* background-image: url(../img/cd-sprite-2.svg); */
- }
- .cd-stretchy-nav.add-content ul li:first-of-type a::after {
- background-position: -16px 0px;
- }
- .cd-stretchy-nav.add-content ul li:nth-of-type(2) a::after {
- background-position: 0px 0px;
- }
- .cd-stretchy-nav.add-content ul li:nth-of-type(3) a::after {
- background-position: -48px 0px;
- }
- .cd-stretchy-nav.add-content ul li:nth-of-type(4) a::after {
- background-position: -32px 0px;
- }
- .cd-stretchy-nav.add-content ul li:first-of-type a::after,
- .cd-stretchy-nav.add-content ul li:nth-of-type(4) a::after {
- -webkit-animation-delay: 0.2s;
- -moz-animation-delay: 0.2s;
- animation-delay: 0.2s;
- }
- .cd-stretchy-nav.add-content ul li:nth-of-type(2) a::after,
- .cd-stretchy-nav.add-content ul li:nth-of-type(3) a::after {
- -webkit-animation-delay: 0.1s;
- -moz-animation-delay: 0.1s;
- animation-delay: 0.1s;
- }
-
- .cd-stretchy-nav.add-content.nav-is-visible ul a::after {
- -webkit-animation-name: scaleIn;
- -moz-animation-name: scaleIn;
- animation-name: scaleIn;
- -webkit-transform: translateY(-50%) scale(1);
- -moz-transform: translateY(-50%) scale(1);
- -ms-transform: translateY(-50%) scale(1);
- -o-transform: translateY(-50%) scale(1);
- transform: translateY(-50%) scale(1);
- }
-
- .cd-stretchy-nav.add-content ul span {
- position: absolute;
- left: 0;
- top: -20px;
- width: 100%;
- padding: 0.6em 0;
- opacity: 0;
- visibility: hidden;
- background-color: rgba(0, 0, 0, 0.8);
- border-radius: 2px;
- font-size: 1.2rem;
- line-height: 1;
- white-space: nowrap;
- text-align: center;
- -webkit-transition: opacity 0.2s, visibility 0.2s;
- -moz-transition: opacity 0.2s, visibility 0.2s;
- transition: opacity 0.2s, visibility 0.2s;
- /* reset default style */
- -webkit-transform: translateX(0);
- -moz-transform: translateX(0);
- -ms-transform: translateX(0);
- -o-transform: translateX(0);
- transform: translateX(0);
- }
- .cd-stretchy-nav.add-content ul span::after {
- /* triangle below the tooltip */
- content: '';
- position: absolute;
- top: 100%;
- left: 50%;
- right: auto;
- -webkit-transform: translateX(-50%);
- -moz-transform: translateX(-50%);
- -ms-transform: translateX(-50%);
- -o-transform: translateX(-50%);
- transform: translateX(-50%);
- height: 0;
- width: 0;
- border: 4px solid transparent;
- border-top-color: rgba(0, 0, 0, 0.8);
- }
-
- .cd-stretchy-nav.add-content.nav-is-visible ul span {
- /* reset default style */
- -webkit-animation: none;
- -moz-animation: none;
- animation: none;
- }
-
- .no-touch .cd-stretchy-nav.add-content.nav-is-visible ul a:hover span {
- opacity: 1;
- visibility: visible;
- /* reset default style */
- -webkit-transform: translateX(0);
- -moz-transform: translateX(0);
- -ms-transform: translateX(0);
- -o-transform: translateX(0);
- transform: translateX(0);
- }
-
- /* --------------------------------
-
- edit content
-
- -------------------------------- */
- .cd-editable-content {
- /* used to wrap the image and the navigation */
- position: relative;
- width: 90%;
- max-width: 400px;
- margin: 4em auto;
- }
- .cd-editable-content img {
- display: block;
- border-radius: .25em;
- }
-
- .cd-stretchy-nav.edit-content {
- position: absolute;
- top: 15px;
- right: 15px;
- }
- .cd-stretchy-nav.edit-content .stretchy-nav-bg {
- height: 30px;
- width: 30px;
- background-color: rgba(0, 0, 0, 0.4);
- box-shadow: none;
- -webkit-transition: background 0.2s, height 0.2s;
- -moz-transition: background 0.2s, height 0.2s;
- transition: background 0.2s, height 0.2s;
- }
- .cd-stretchy-nav.edit-content.nav-is-visible .stretchy-nav-bg {
- height: 100%;
- background-color: rgba(0, 0, 0, 0.8);
- /* reset default style */
- box-shadow: none;
- }
-
- .cd-stretchy-nav.edit-content .cd-nav-trigger {
- height: 30px;
- width: 30px;
- }
- .cd-stretchy-nav.edit-content .cd-nav-trigger span {
- opacity: 0;
- background-color: transparent;
- }
- .cd-stretchy-nav.edit-content .cd-nav-trigger span::before {
- -webkit-transform: rotate(-45deg);
- -moz-transform: rotate(-45deg);
- -ms-transform: rotate(-45deg);
- -o-transform: rotate(-45deg);
- transform: rotate(-45deg);
- }
- .cd-stretchy-nav.edit-content .cd-nav-trigger span::after {
- -webkit-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- transform: rotate(45deg);
- }
- .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 {
- /* used to create the 'X' icon when the navigation is open */
- width: 12px;
- }
- .cd-stretchy-nav.edit-content .cd-nav-trigger::after {
- /* edit icon */
- content: '';
- position: absolute;
- height: 16px;
- width: 16px;
- left: 50%;
- top: 50%;
- bottom: auto;
- right: auto;
- -webkit-transform: translateX(-50%) translateY(-50%);
- -moz-transform: translateX(-50%) translateY(-50%);
- -ms-transform: translateX(-50%) translateY(-50%);
- -o-transform: translateX(-50%) translateY(-50%);
- transform: translateX(-50%) translateY(-50%);
- /* background: url(../img/cd-sprite-3.svg) no-repeat 0 0; */
- }
- .cd-stretchy-nav.edit-content .cd-nav-trigger span, .cd-stretchy-nav.edit-content .cd-nav-trigger::after {
- -webkit-transition: opacity 0.2s;
- -moz-transition: opacity 0.2s;
- transition: opacity 0.2s;
- }
- .no-touch .cd-stretchy-nav.edit-content .cd-nav-trigger:hover ~ .stretchy-nav-bg {
- box-shadow: none;
- background-color: rgba(0, 0, 0, 0.8);
- }
-
- .cd-stretchy-nav.edit-content.nav-is-visible .cd-nav-trigger span {
- opacity: 1;
- }
- .cd-stretchy-nav.edit-content.nav-is-visible .cd-nav-trigger span::before {
- -webkit-transform: rotate(45deg);
- -moz-transform: rotate(45deg);
- -ms-transform: rotate(45deg);
- -o-transform: rotate(45deg);
- transform: rotate(45deg);
- }
- .cd-stretchy-nav.edit-content.nav-is-visible .cd-nav-trigger span::after {
- -webkit-transform: rotate(135deg);
- -moz-transform: rotate(135deg);
- -ms-transform: rotate(135deg);
- -o-transform: rotate(135deg);
- transform: rotate(135deg);
- }
-
- .cd-stretchy-nav.edit-content.nav-is-visible .cd-nav-trigger::after {
- /* hide edit icon */
- opacity: 0;
- }
-
- .cd-stretchy-nav.edit-content ul {
- padding-top: 30px;
- }
-
- .cd-stretchy-nav.edit-content ul a {
- width: 30px;
- height: 30px;
- line-height: 30px;
- padding: 0;
- }
- .cd-stretchy-nav.edit-content ul a::after {
- right: 7px;
- /* background-image: url(../img/cd-sprite-3.svg); */
- }
-
- .cd-stretchy-nav.edit-content ul li:first-of-type a::after {
- background-position: -16px 0;
- }
-
- .cd-stretchy-nav.edit-content ul li:nth-of-type(2) a::after {
- background-position: -32px 0;
- }
-
- .cd-stretchy-nav.edit-content ul li:nth-of-type(3) a::after {
- background-position: -48px 0;
- }
-
- .cd-stretchy-nav.edit-content ul li:nth-of-type(4) a::after {
- background-position: -64px 0;
- }
-
- .cd-stretchy-nav.edit-content ul span {
- position: absolute;
- top: 0;
- right: 35px;
- height: 30px;
- line-height: 30px;
- padding: 0 1em;
- opacity: 0;
- visibility: hidden;
- background-color: rgba(0, 0, 0, 0.55);
- border-radius: 2px;
- text-align: center;
- -webkit-transition: opacity 0.2s, visibility 0.2s;
- -moz-transition: opacity 0.2s, visibility 0.2s;
- transition: opacity 0.2s, visibility 0.2s;
- }
- .cd-stretchy-nav.edit-content ul span::after {
- /* triangle below the tooltip */
- content: '';
- position: absolute;
- left: 100%;
- top: 50%;
- bottom: auto;
- -webkit-transform: translateY(-50%);
- -moz-transform: translateY(-50%);
- -ms-transform: translateY(-50%);
- -o-transform: translateY(-50%);
- transform: translateY(-50%);
- height: 0;
- width: 0;
- border: 4px solid transparent;
- border-left-color: rgba(0, 0, 0, 0.55);
- }
-
- .cd-stretchy-nav.edit-content.nav-is-visible ul span {
- /* reset default style */
- -webkit-animation: none;
- -moz-animation: none;
- animation: none;
- }
- .no-touch .cd-stretchy-nav.edit-content.nav-is-visible ul a:hover span {
- opacity: 1;
- visibility: visible;
- /* reset default style */
- -webkit-transform: translateX(0);
- -moz-transform: translateX(0);
- -ms-transform: translateX(0);
- -o-transform: translateX(0);
- transform: translateX(0);
- }
-
- /* --------------------------------
-
- main content basic style
-
- -------------------------------- */
- .cd-main-content {
- position: relative;
- z-index: 1;
- min-height: 100vh;
- padding: 100px 0;
- background-color: #003c5d;
- }
-
- /* --------------------------------
-
- keyframes
-
- -------------------------------- */
- @-webkit-keyframes scaleIn {
- from {
- -webkit-transform: translateY(-50%) scale(0);
- }
- to {
- -webkit-transform: translateY(-50%) scale(1);
- }
- }
- @-moz-keyframes scaleIn {
- from {
- -moz-transform: translateY(-50%) scale(0);
- }
- to {
- -moz-transform: translateY(-50%) scale(1);
- }
- }
- @keyframes scaleIn {
- from {
- -webkit-transform: translateY(-50%) scale(0);
- -moz-transform: translateY(-50%) scale(0);
- -ms-transform: translateY(-50%) scale(0);
- -o-transform: translateY(-50%) scale(0);
- transform: translateY(-50%) scale(0);
- }
- to {
- -webkit-transform: translateY(-50%) scale(1);
- -moz-transform: translateY(-50%) scale(1);
- -ms-transform: translateY(-50%) scale(1);
- -o-transform: translateY(-50%) scale(1);
- transform: translateY(-50%) scale(1);
- }
- }
- @-webkit-keyframes slideIn {
- from {
- opacity: 0;
- -webkit-transform: translateX(-25px);
- }
- to {
- opacity: 1;
- -webkit-transform: translateX(0);
- }
- }
- @-moz-keyframes slideIn {
- from {
- opacity: 0;
- -moz-transform: translateX(-25px);
- }
- to {
- opacity: 1;
- -moz-transform: translateX(0);
- }
- }
- @keyframes slideIn {
- from {
- opacity: 0;
- -webkit-transform: translateX(-25px);
- -moz-transform: translateX(-25px);
- -ms-transform: translateX(-25px);
- -o-transform: translateX(-25px);
- transform: translateX(-25px);
- }
- to {
- opacity: 1;
- -webkit-transform: translateX(0);
- -moz-transform: translateX(0);
- -ms-transform: translateX(0);
- -o-transform: translateX(0);
- transform: translateX(0);
- }
- }
-
- .demo{ width: 100%; height: 50px; position: absolute; bottom: 0px; z-index: 100; box-shadow: 0px 0px 5px #012e47;}
- .demo a{ display: block; width: 33.3%; height: 50px; line-height: 50px; float: left; display: block; text-align: center; background: #003c5d; color: #FFFFFF;}
- .demo a:hover{ background: #9acd91;}
-
|