585 lines
12 KiB
SCSS
585 lines
12 KiB
SCSS
@charset "utf-8";
|
|
|
|
@import "../initial";
|
|
|
|
.navbar-collapse.in {
|
|
overflow-y: unset;
|
|
}
|
|
|
|
.modules-menu {
|
|
font-family: $sub-font;
|
|
max-height: none;
|
|
z-index: 1020;
|
|
|
|
li {
|
|
white-space: nowrap;
|
|
}
|
|
.menu-drop.opened {
|
|
transform: rotateX(180deg);
|
|
}
|
|
|
|
.modules-menu-level-0 {
|
|
list-style: none;
|
|
padding-top: 0.9em;
|
|
@media(min-width: 769px)and(max-width: 1100px){
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content:space-between;
|
|
width: 100%;
|
|
padding-left: 0;
|
|
margin: 0;
|
|
}
|
|
@media (min-width: 1200px) {
|
|
display: flex;
|
|
flex-wrap: wrap;
|
|
justify-content: space-between;
|
|
width: 71%;
|
|
}
|
|
@media (min-width: 1101px)and(max-width:1200px){
|
|
width: 100%;
|
|
}
|
|
.has-dropdown.level-1.active {
|
|
.modules-menu-level-1 {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
.has-dropdown.level-2.active {
|
|
.modules-menu-level-2 {
|
|
display: block;
|
|
}
|
|
}
|
|
|
|
// .dropdown-toggle-icon {
|
|
// position: absolute;
|
|
// top: 0.5em;
|
|
// right: 0.3em;
|
|
// width: 2.5em;
|
|
// height: 2.5em;
|
|
// cursor: pointer;
|
|
// line-height: 2.5em;
|
|
// font-size: 1em;
|
|
// text-align: center;
|
|
// border-radius: 0.13em;
|
|
// }
|
|
|
|
.menu-drop {
|
|
position: absolute;
|
|
right: 0.3em;
|
|
width: 2.5em;
|
|
height: 2.5em;
|
|
cursor: pointer;
|
|
line-height: 2.5em;
|
|
font-size: 0.5em;
|
|
text-align: center;
|
|
border-radius: 0.13em;
|
|
top: 2em;
|
|
@media(max-width: 768px){
|
|
font-size: 0.8em;
|
|
top: 1.5em;
|
|
}
|
|
}
|
|
|
|
// .dropdown-toggle-icon.level-1 {
|
|
// background-color: lighten($theme-gray, 10%);
|
|
// }
|
|
|
|
// .dropdown-toggle-icon.level-2 {
|
|
// background-color: lighten($theme-gray, 10%);
|
|
// }
|
|
|
|
& > li {
|
|
position:relative;
|
|
margin: 0;
|
|
padding: 0.5em;
|
|
border-bottom: 0.0625em solid lighten($theme-gray, 5%);
|
|
&:nth-last-child(3){
|
|
a{
|
|
color: $theme-color-third;
|
|
}
|
|
&:hover{
|
|
background: $theme-color-third!important;
|
|
// a{
|
|
// color: #fff!important;
|
|
// }
|
|
|
|
@media(max-width: 768px){
|
|
i{
|
|
color: #fff!important;
|
|
}
|
|
a{
|
|
color: #fff!important;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
&:nth-child(2){
|
|
a{
|
|
color: #FF5A5F;
|
|
&:after{
|
|
content:"•" ;
|
|
color: #FF5A5F;
|
|
margin:0 5px;
|
|
}
|
|
}
|
|
&:hover{
|
|
background: $theme-color-second!important;
|
|
a{
|
|
&:after{
|
|
color: #fff!important;
|
|
}
|
|
}
|
|
|
|
@media(max-width: 768px){
|
|
i{
|
|
color: #fff!important;
|
|
}
|
|
a{
|
|
color: #fff!important;
|
|
}
|
|
}
|
|
}
|
|
|
|
}
|
|
&:nth-child(3){
|
|
.modules-menu-level-1{
|
|
li:nth-child(1){
|
|
a{
|
|
&:before{
|
|
content: "";
|
|
display: block;
|
|
width: 25px;
|
|
height: 25px;
|
|
background-size: contain;
|
|
background-image: url(/assets/xs.jpg);
|
|
background-repeat: no-repeat;
|
|
float: left;
|
|
margin-right: 0.5em;
|
|
}
|
|
&:after{
|
|
content: "3-5歲";
|
|
color: #808080;
|
|
margin: 0;
|
|
float: right;
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
li:nth-child(2){
|
|
a{
|
|
&:before{
|
|
content: "";
|
|
display: block;
|
|
width: 25px;
|
|
height: 25px;
|
|
background-size: contain;
|
|
background-image: url(/assets/s.jpg);
|
|
background-repeat: no-repeat;
|
|
float: left;
|
|
margin-right: 0.5em;
|
|
}
|
|
&:after{
|
|
content: "6-8歲";
|
|
color: #808080;
|
|
margin: 0;
|
|
float: right;
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
li:nth-child(3){
|
|
a{
|
|
&:before{
|
|
content: "";
|
|
display: block;
|
|
width: 25px;
|
|
height: 25px;
|
|
background-size: contain;
|
|
background-image: url(/assets/m.jpg);
|
|
background-repeat: no-repeat;
|
|
float: left;
|
|
margin-right: 0.5em;
|
|
}
|
|
&:after{
|
|
content: "9-12歲";
|
|
color: #808080;
|
|
margin: 0;
|
|
float: right;
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
li:nth-child(4){
|
|
a{
|
|
&:before{
|
|
content: "";
|
|
display: block;
|
|
width: 25px;
|
|
height: 25px;
|
|
background-size: contain;
|
|
background-image: url(/assets/l.jpg);
|
|
background-repeat: no-repeat;
|
|
float: left;
|
|
margin-right: 0.5em;
|
|
}
|
|
&:after{
|
|
content: "13-15歲";
|
|
color: #808080;
|
|
margin: 0;
|
|
float: right;
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
li:nth-child(5){
|
|
a{
|
|
&:before{
|
|
content: "";
|
|
display: block;
|
|
width: 25px;
|
|
height: 25px;
|
|
background-size: contain;
|
|
background-image: url(/assets/xl.jpg);
|
|
background-repeat: no-repeat;
|
|
float: left;
|
|
margin-right: 0.5em;
|
|
}
|
|
&:after{
|
|
content: "16-18歲";
|
|
color: #808080;
|
|
margin: 0;
|
|
float: right;
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
li:nth-child(6){
|
|
a{
|
|
&:before{
|
|
content: "";
|
|
display: block;
|
|
width: 25px;
|
|
height: 25px;
|
|
background-size: contain;
|
|
background-image: url(/assets/h.jpg);
|
|
background-repeat: no-repeat;
|
|
float: left;
|
|
margin-right: 0.5em;
|
|
}
|
|
&:after{
|
|
content: "全年齡";
|
|
color: #808080;
|
|
margin: 0;
|
|
float: right;
|
|
font-weight: normal;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
& > a {
|
|
display: block;
|
|
padding: 1.125em 0;
|
|
font-family: $main-font;
|
|
}
|
|
|
|
&:hover {
|
|
|
|
|
|
& > a {
|
|
color: #fff ;
|
|
}
|
|
|
|
}
|
|
|
|
@media (min-width: $screen-sm) {
|
|
position: static;
|
|
margin: 0;
|
|
padding: 0;
|
|
border-bottom: none;
|
|
|
|
&:first-child {
|
|
margin-left: 0;
|
|
}
|
|
|
|
&:last-child {
|
|
margin-right: 0;
|
|
|
|
.modules-menu-level-1 {
|
|
left: auto;
|
|
|
|
&:before {
|
|
right: 0.625em;
|
|
left: auto;
|
|
}
|
|
|
|
& > li {
|
|
padding-right: 1em;
|
|
padding-left: 1em;
|
|
|
|
& > a {
|
|
padding-left: 0;
|
|
}
|
|
}
|
|
|
|
.modules-menu-level-2 {
|
|
right: 100%;
|
|
left: auto;
|
|
}
|
|
}
|
|
}
|
|
|
|
& > a {
|
|
padding:0.8rem;
|
|
font-size: 20px;
|
|
color: $theme-color-main;
|
|
font-weight: 900;
|
|
}
|
|
|
|
&:hover {
|
|
background: $theme-color-third;
|
|
border-radius: 0 0 20px 20px;
|
|
.modules-menu-level-1 {
|
|
display: block;
|
|
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.modules-menu-level-1 {
|
|
padding: 0;
|
|
display: none;
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
z-index: 1;
|
|
|
|
& > li {
|
|
@media(min-width: 768px){
|
|
width: 320px;
|
|
}
|
|
position: relative;
|
|
// & + li {
|
|
// border-top: 0.0625em solid lighten($theme-gray, 5%);
|
|
// }
|
|
|
|
& > a {
|
|
display: block;
|
|
padding: 1em 1.5em;
|
|
font-family: $main-font;
|
|
font-size: 14px;
|
|
font-weight: 600;
|
|
color: #333;
|
|
}
|
|
|
|
&:hover {
|
|
& > a {
|
|
color: $theme-color-third;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (min-width: $screen-sm) {
|
|
position: absolute;
|
|
background-color: #fff;
|
|
box-shadow: #00000080 0 8px 12px;
|
|
border-radius: 1em;
|
|
behavior: url("/assets/ie_support/PIE2/PIE.htc");
|
|
min-width: 200px;
|
|
|
|
& > li {
|
|
& > a{
|
|
}
|
|
|
|
&:hover {
|
|
.modules-menu-level-2 {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.modules-menu-level-2 {
|
|
margin: 0;
|
|
padding: 0;
|
|
list-style: none;
|
|
& > li {
|
|
& + li {
|
|
// border-top: 0.0625em solid lighten($theme-gray, 5%);
|
|
}
|
|
|
|
& > a {
|
|
display: block;
|
|
padding: 0.8em 3em;
|
|
font-family: $main-font;
|
|
color: #333;
|
|
font-size: 14px;
|
|
font-weight: 500;
|
|
}
|
|
// &:hover {
|
|
// background-color: $theme-color-second;
|
|
// }
|
|
}
|
|
|
|
@media (min-width: $screen-sm) {
|
|
top: 0;
|
|
left: 100%;
|
|
|
|
& > li > a {
|
|
padding-left:0;
|
|
&:hover{
|
|
transition: all 0.3s ease-in-out;
|
|
color: $theme-color-hover;
|
|
margin-left: 0.5rem;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.has-mobile-dropdown {
|
|
.modules-menu {
|
|
.dropdown-toggle-icon {
|
|
display: block;
|
|
}
|
|
}
|
|
}
|
|
|
|
@media (max-width: 767px) {
|
|
.modules-menu .modules-menu-level-0 {
|
|
flex-direction: column;
|
|
width: 100%;
|
|
padding: 0;
|
|
}
|
|
}
|
|
@media (max-width: 769px) {
|
|
.modules-menu .modules-menu-level-0 {
|
|
width: 100%;
|
|
padding: 0;
|
|
}
|
|
}
|
|
|
|
//mobile
|
|
.mobile-menu {
|
|
z-index: 1051;
|
|
width: 100vw;
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
display: none;
|
|
|
|
&.active {
|
|
display: block;
|
|
}
|
|
|
|
.modules-menu {
|
|
width: 80%;
|
|
position: absolute;
|
|
right: 0;
|
|
background: #ffffff;
|
|
height: 100%;
|
|
top: 0;
|
|
padding-top: 40px;
|
|
}
|
|
.modules-menu .modules-menu-level-0 > li > a, .modules-menu .modules-menu-level-0 ,.modules-menu .modules-menu-level-0 > li {color: #000;
|
|
font-size: 18px ;
|
|
font-weight: 500;
|
|
font-weight: bold;
|
|
}
|
|
.menu-drop{
|
|
font-size: 10px ;
|
|
}
|
|
.navbar-toggle {
|
|
position: absolute;
|
|
left: 0;
|
|
background: transparent;
|
|
top: 40px;
|
|
z-index: 1;
|
|
height: 100vh;
|
|
margin: 0;
|
|
width: 20%;
|
|
border: 0;
|
|
}
|
|
.cover {
|
|
position: fixed;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
background-color: rgba(0,0,0,0.8);
|
|
z-index: 0;
|
|
}
|
|
}
|
|
|
|
|
|
//覆蓋bootstrap nav設定
|
|
.mobile-menu .modules-menu.collapsing {
|
|
overflow:unset !important;
|
|
transform: translateX(100%);
|
|
-webkit-transition-timing-function:ease;
|
|
-o-transition-timing-function:ease;
|
|
transition-timing-function:ease;
|
|
-webkit-transition-duration:.35s;
|
|
-o-transition-duration:.35s;
|
|
transition-duration:.35s;
|
|
-webkit-transition-property:transform;
|
|
-o-transition-property:transform;
|
|
transition-property:transform;
|
|
}
|
|
.mobile-menu .modules-menu.collapse.in {
|
|
transform: translateX(100%);
|
|
-webkit-transition-timing-function:ease;
|
|
-o-transition-timing-function:ease;
|
|
transition-timing-function:ease;
|
|
-webkit-transition-duration:.35s;
|
|
-o-transition-duration:.35s;
|
|
transition-duration:.35s;
|
|
-webkit-transition-property:transform;
|
|
-o-transition-property:transform;
|
|
transition-property:transform;
|
|
}
|
|
|
|
.mobile-menu .collapse.navbar-collapse.modules-menu {
|
|
overflow-y: scroll;
|
|
transform: translateX(0%);
|
|
}
|
|
.display-on{
|
|
display:block!important;
|
|
transition-duration: 0.9s;
|
|
}
|
|
.drop-down > a:after{
|
|
content:"\f103";
|
|
color:#fff;
|
|
font-family: FontAwesome;
|
|
font-style: normal;
|
|
margin-left: 5px;
|
|
}
|
|
.dropdown-arrow{
|
|
align-self: center;
|
|
margin-left: 10px;
|
|
z-index: 999;
|
|
@media(max-width: 768px){
|
|
position: absolute;
|
|
right: 0.3em;
|
|
width: 2.5em;
|
|
height: 2.5em;
|
|
cursor: pointer;
|
|
line-height: 2.5em;
|
|
font-size: 1em;
|
|
text-align: center;
|
|
border-radius: 0.13em;
|
|
display: none!important;
|
|
}
|
|
}
|
|
.fa-chevron-right{
|
|
align-self: center;
|
|
margin-left: 10px;
|
|
font-size: 3px;
|
|
font-weight: 100!important;
|
|
}
|