Line 80: | Line 80: | ||
/******** circle nav ********/ | /******** circle nav ********/ | ||
+ | |||
.csstransforms .cn-wrapper { | .csstransforms .cn-wrapper { | ||
− | + | position: absolute; | |
− | + | top: 100%; | |
− | + | left: 50%; | |
− | + | ||
− | + | ||
z-index: 10; | z-index: 10; | ||
− | + | margin-top: -13em; | |
− | left: | + | margin-left: -13.5em; |
+ | width: 27em; | ||
+ | height: 27em; | ||
border-radius: 50%; | border-radius: 50%; | ||
− | + | background: transparent; | |
+ | opacity: 0; | ||
+ | transition: all .3s ease 0.3s; | ||
transform: scale(0.1); | transform: scale(0.1); | ||
− | + | pointer-events: none; | |
− | + | overflow: hidden; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | .cn- | + | /*cover to prevent extra space of anchors from being clickable*/ |
− | + | .csstransforms .cn-wrapper:after{ | |
− | + | color: transparent; | |
− | + | content:"."; | |
− | + | display:block; | |
− | font-size: | + | font-size:2em; |
− | + | width:6.2em; | |
− | height: | + | height:6.2em; |
− | + | position: absolute; | |
− | + | ||
− | position: | + | |
left: 50%; | left: 50%; | ||
− | margin-left: - | + | margin-left: -3.1em; |
− | + | top:50%; | |
+ | margin-top: -3.1em; | ||
border-radius: 50%; | border-radius: 50%; | ||
− | + | z-index:10; | |
− | z-index: | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
.csstransforms .cn-wrapper li { | .csstransforms .cn-wrapper li { | ||
position: absolute; | position: absolute; | ||
− | + | top: 50%; | |
+ | left: 50%; | ||
+ | overflow: hidden; | ||
+ | margin-top: -1.3em; | ||
+ | margin-left: -10em; | ||
width: 10em; | width: 10em; | ||
height: 10em; | height: 10em; | ||
+ | font-size: 1.5em; | ||
+ | transition: all .3s ease; | ||
+ | transform: rotate(76deg) skew(60deg); | ||
transform-origin: 100% 100%; | transform-origin: 100% 100%; | ||
− | + | pointer-events: none; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
.csstransforms .cn-wrapper li a { | .csstransforms .cn-wrapper li a { | ||
− | |||
− | |||
− | |||
− | |||
position: absolute; | position: absolute; | ||
− | + | position: fixed; /* fix the "displacement" bug in webkit browsers when using tab key */ | |
right: -7.25em; | right: -7.25em; | ||
+ | bottom: -7.25em; | ||
+ | display: block; | ||
+ | width: 14.5em; | ||
+ | height: 14.5em; | ||
border-radius: 50%; | border-radius: 50%; | ||
− | + | background: #429a67; | |
+ | background: radial-gradient(transparent 35%, #429a67 35%); | ||
color: #fff; | color: #fff; | ||
− | |||
text-align: center; | text-align: center; | ||
− | transform: skew(- | + | text-decoration: none; |
− | + | font-size: 1.2em; | |
+ | line-height: 2; | ||
+ | transition: all .3s ease; | ||
+ | transform: skew(-60deg) rotate(-75deg) scale(1); | ||
+ | pointer-events: auto; | ||
} | } | ||
.csstransforms .cn-wrapper li a span { | .csstransforms .cn-wrapper li a span { | ||
− | font-size: | + | position: relative; |
− | + | top: 1.8em; | |
+ | display: block; | ||
+ | font-size: .5em; | ||
+ | font-weight: 700; | ||
+ | text-transform: uppercase; | ||
} | } | ||
− | |||
− | |||
− | |||
− | .csstransforms .cn-wrapper li: | + | .csstransforms .cn-wrapper li a:hover, |
− | + | .csstransforms .cn-wrapper li a:active, | |
+ | .csstransforms .cn-wrapper li a:focus { | ||
+ | background: radial-gradient(transparent 35%, #449e6a 35%); | ||
} | } | ||
− | .csstransforms . | + | .csstransforms .opened-nav { |
− | transform: | + | border-radius: 50%; |
+ | opacity: 1; | ||
+ | transition: all .3s ease; | ||
+ | transform: scale(1); | ||
+ | pointer-events: auto; | ||
} | } | ||
− | .csstransforms . | + | .csstransforms .opened-nav li { |
− | + | transition: all .3s ease .3s; | |
} | } | ||
− | .csstransforms . | + | .csstransforms .opened-nav li:first-child { |
− | transform: rotate( | + | transform: rotate(-20deg) skew(60deg); |
} | } | ||
− | .csstransforms . | + | .csstransforms .opened-nav li:nth-child(2) { |
− | transform: rotate( | + | transform: rotate(12deg) skew(60deg); |
} | } | ||
− | .csstransforms . | + | .csstransforms .opened-nav li:nth-child(3) { |
− | + | transform: rotate(44deg) skew(60deg); | |
− | + | ||
} | } | ||
− | .csstransforms . | + | .csstransforms .opened-nav li:nth-child(4) { |
− | + | transform: rotate(76deg) skew(60deg); | |
− | + | ||
} | } | ||
− | + | .csstransforms .opened-nav li:nth-child(5) { | |
− | .csstransforms . | + | transform: rotate(108deg) skew(60deg); |
− | + | ||
− | + | ||
} | } | ||
− | + | .csstransforms .opened-nav li:nth-child(6) { | |
− | .csstransforms . | + | transform: rotate(140deg) skew(60deg); |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | .csstransforms . | + | |
− | + | .csstransforms .opened-nav li:nth-child(7) { | |
+ | transform: rotate(172deg) skew(60deg); | ||
} | } | ||
.no-csstransforms .cn-wrapper{ | .no-csstransforms .cn-wrapper{ | ||
− | + | margin:10em auto; | |
− | + | overflow:hidden; | |
− | + | text-align:center; | |
− | + | padding:1em; | |
− | margin | + | |
− | overflow: hidden; | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | .no-csstransforms .cn-wrapper ul{ | |
− | .no-csstransforms .cn- | + | display:inline-block; |
− | display: | + | |
} | } | ||
− | + | .no-csstransforms li{ | |
− | .no-csstransforms | + | |
− | + | ||
− | + | ||
font-size:1em; | font-size:1em; | ||
+ | width:5em; | ||
height:5em; | height:5em; | ||
− | + | float:left; | |
− | + | line-height:5em; | |
text-align:center; | text-align:center; | ||
− | + | background-color: #fff; | |
} | } | ||
− | + | .no-csstransforms li a{ | |
− | .no-csstransforms | + | |
display:block; | display:block; | ||
+ | height:100%; | ||
width:100%; | width:100%; | ||
− | + | text-decoration: none; | |
− | text-decoration:none; | + | color: inherit; |
− | color:inherit | + | |
− | + | ||
− | + | ||
} | } | ||
− | |||
− | |||
− | |||
− | |||
− | |||
.no-csstransforms .cn-wrapper li a:hover, | .no-csstransforms .cn-wrapper li a:hover, | ||
.no-csstransforms .cn-wrapper li a:active, | .no-csstransforms .cn-wrapper li a:active, | ||
.no-csstransforms .cn-wrapper li a:focus{ | .no-csstransforms .cn-wrapper li a:focus{ | ||
− | background-color: | + | background-color: #f8f8f8; |
} | } | ||
− | |||
.no-csstransforms .cn-wrapper li.active a { | .no-csstransforms .cn-wrapper li.active a { | ||
background-color: #6F325C; | background-color: #6F325C; | ||
color: #fff; | color: #fff; | ||
+ | } | ||
+ | .no-csstransforms .cn-button{ | ||
+ | display:none; | ||
} | } | ||
− | @media screen and (max-width:480px){ | + | @media only screen and (max-width: 620px) { |
+ | .no-csstransforms li{ | ||
+ | width:4em; | ||
+ | height:4em; | ||
+ | line-height:4em; | ||
+ | } | ||
+ | } | ||
+ | @media only screen and (max-width: 500px) { | ||
+ | .no-ccstransforms .cn-wrapper{ | ||
+ | padding:.5em; | ||
+ | } | ||
+ | .no-csstransforms .cn-wrapper li{ | ||
+ | font-size:.9em; | ||
+ | width:4em; | ||
+ | height:4em; | ||
+ | line-height:4em; | ||
+ | } | ||
+ | } | ||
+ | @media only screen and (max-width: 480px) { | ||
.csstransforms .cn-wrapper{ | .csstransforms .cn-wrapper{ | ||
− | font-size:.68em; | + | font-size: .68em; |
} | } | ||
.cn-button{ | .cn-button{ | ||
font-size:1em; | font-size:1em; | ||
− | |||
− | |||
− | |||
} | } | ||
} | } | ||
− | + | @media only screen and (max-width:420px){ | |
− | @media screen and (max-width: | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
.no-csstransforms .cn-wrapper li{ | .no-csstransforms .cn-wrapper li{ | ||
+ | width:100%; | ||
height:3em; | height:3em; | ||
− | + | line-height:3em; | |
} | } | ||
} | } |
Revision as of 20:46, 20 July 2017