nfu-iem/assets/stylesheets/template/layout/header.scss

528 lines
9.5 KiB
SCSS

@charset "utf-8";
@import "../initial";
.nav_ul{
padding: 0;
& > li{
position: relative;
list-style:none;
float: left;
display: inline-block;
@media(max-width:480px){
width: 100%;
a{
display: block;
}
}
&:hover{
background-color:transparent;
> a{
text-decoration: underline;
padding: 0.7em;
}
& > ul{
display: block;
a{
color: #fff;
}
}
}
& > ul{
@media(max-width:480px){
position: relative;
box-shadow: none;
display: block;
li{
width: 100%;
}
}
display: none;
width:-webkit-fill-available;
min-width: max-content;
box-shadow: 2px 2px 5px #00000033;
margin: 0;
transition-duration: 0.5s;
background:$theme-color-second;
position: absolute;
padding: 0;
li{
list-style:none;
float: none!important;
a{
color: #fff;
display: block;
padding: 0.7em;
}
&:hover{
background-color: rgba(darken($theme-color-second, 10%), 1);;
& > ul{
display: block;
}
}
}
}
}
}
.orbit-bar-inner{
.orbit-bar-menu{
display: flex;
align-items: center;
}
blockquote{
float: left;
color: #fff;
padding: 0;
margin: 0;
font-size: unset;
border-left: 0;
.menu-item{
@media(max-width:1100px){
span{
display: none;
}
}
}
&:after, &:before{
display: none;
}
a{
color: #fff;
text-decoration: none;
display: inline-block;
height: 40px;
padding: 0.7em;
font-size: 0.85em;
}
li{
list-style: none;
}
}
}
#nfu_logo {
width: 180px;
@media(max-width:1023px){
width:95px;
}
}
#useful-menu ul {
margin: 0;
display: flex;
}
.fc-cal-date-selected-fusion {
font-size: 1em!important;
}
.outdropdowns{
position: relative;
padding:0;
@media(max-width:768px){
}
}
.header-nav {
display: flex !important;
flex-wrap: wrap;
ul{
padding: 0;
}
@media(max-width:768px){
color: #fff;
a{
color: #fff;
}
}
@media(max-width: 769px){
ul{
display: flex!important;
flex-wrap: wrap;
padding: 0;
li{
padding: 0.5em!important;
}
}
}
}
.dropdowns{
padding: 0;
}
.accessibility_mode a:focus{
outline: 0.1em solid !important;
outline: 0.3125em auto -webkit-focus-ring-color !important;
}
.navbar-header{
overflow: hidden;
}
.header-buttombanner{
@media(max-width:768px){
display: none;
}
padding-right: 0.9375em;
padding-left: 0.9375em;
position: absolute;
width: stretch;
z-index: -1;
}
.layout-header {
width: 100%;
z-index: 10;
position: relative;
margin-bottom: 0;
border: none;
border-radius: 0;
@media(max-width:768px){
background: linear-gradient(0deg, #6ed6f7 0%, #00ace2 100%);
}
li{
list-style: none;
}
a[accesskey] {
position:relative;
}
.container {
@extend .response-container;
}
.header-banner { overflow: hidden; }
.header-nav {
padding:0;
font-family: $main-font;
text-transform:uppercase;
display: flex;
align-items: center;
justify-content: flex-end;
ul{
padding: 0;
}
@media(max-width: 820px){
justify-content: space-between;
padding:0;
}
ul{
li{
float: left;
}
}
& > * {
display: inline-block;
padding: 0;
margin-top: 0;
margin-bottom: 0;
color: #666;
z-index: 11!important;
&:hover{
color: #8a2be2;
}
}
a {
color: #666;
text-decoration: none;
padding:5px;
&:hover{
color: #8a2be2;
}
}
@media (min-width:1025px) {
position: relative;
}
}
.navbar-header h1.default_site_h1, .navbar-header h2.default_site_h1{
display: flex;
flex-wrap: wrap;
align-items: center;
width: 100%;
margin-top: 1em;
@media(max-width:$screen-xs){
.site-wrapper{
width: 100%;
}
}
.site-title{
font-size: 1.5em;
font-weight: 700;
background: linear-gradient(90deg, #020024 0%, #aeaec8 0%, #00d4ff 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
filter: drop-shadow(2px 2px #333);
}
.site-description{
color: antiquewhite;
text-shadow: 2px 2px black;
font-size: 15px;
@media(max-width:768px){
display: none;
}
}
}
.navbar-header {
z-index: 10;
padding: 0;
margin: 0;
@media(min-width:769px){
height: 238px;
background: linear-gradient(0.25turn, #ffffff, #00000000, #00000000, #00000000, #00000000, #fff), url(/assets/banner_background.jpg);
}
@media (min-width: 769px){
float: none!important;
}
// @media (max-width: $screen-sm) {
// width: 100%;
// display: flex;
// flex-flow: row-reverse;
// }
.navbar-brand {
line-height: 2.125em;
color: $theme-color-main;
font-family: $main-font;
align-items: center;
display: flex;
height: auto;
@media(max-width:768px){
width: 100%;
background: linear-gradient(0.25turn, #ffffff, #00000000, #00000000, #00000000, #00000000, #fff), url(/assets/banner_background.jpg);
}
@media (min-width: $screen-sm) {
margin:0;
line-height: 3.75em;
height: auto;
h1{
font-size: 1.2em;
display: flex;
align-items: center;
color:#1a66b1;
font-weight: bold;
}
}
@media (max-width: 820px) {
h1{
margin-top: 1em;
font-size: 1em;
display: flex;
align-items: center;
color: #155E75;
font-weight: bold;
}
}
@media (max-width: 480px) {
h1{
margin: 0;
}
width: 100%;
height: auto;
margin: 0;
}
.site-logo {
margin-right: 0.5em;
float: left;
height: 60px;
padding-right: 0.5em;
width: auto!important;
@media(min-width: 1024px){
height: 60px;
}
@media(max-width: $screen-xs){
height: 45px !important;
}
@media(max-width: 820px)and(min-width:$screen-xs ){
height: 45px!important;
}
}
}
}
}
.navbar-toggle {
margin-top: 0.8em;
right: 0;
clear: both;
// border-radius: 0.125em;
// border-width: 0.125em;
// border-color: lighten($theme-color-main, 30%);
.icon-bar {
background-color: #fff;
}
&.collapsed {
.icon-bar-top {
top: 0;
-webkit-transform: rotate(0);
transform: rotate(0);
}
.icon-bar-middle {
opacity: 1;
}
.icon-bar-bottom {
top: 0;
-webkit-transform: rotate(0);
transform: rotate(0);
}
}
// icon bar animation
.icon-bar {
transition: .2s all;
position: relative;
}
.icon-bar-top {
top: 0.375em;
-webkit-transform: rotate(45deg);
transform: rotate(45deg);
}
.icon-bar-middle {
opacity: 0;
}
.icon-bar-bottom {
top: -0.375em;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
}
}
@media (width: 769px) {
.navbar-toggle{
display: block!important;
}
}
.nav-menu{
display:flex!important;
float: right;
li{
padding: 1em 0;
&:hover{
background-color: #C40516;
a{
color: #FFFFFF;
}
}
}
}
.navone ::before{
content: '';
position: absolute;
background: url("/assets/account-icon.png") no-repeat;
width: 23px;
height: 23px;
left: -10px;
top: 10px;
display: inline-block;
left: 5px;
}
.header-buttom{
&:hover{
.headbutton{
background-color: #750016!important;
}
}
}
.search-boxken{
position: relative;
}
.search-boxken {
::placeholder { /* CSS 3 標準 */
opacity: 0;
}
::-webkit-input-placeholder { /* Chrome, Safari */
opacity: 0;
}
:-ms-input-placeholder { /* IE 10+ */
opacity: 0;
}
::-moz-placeholder { /* Firefox 19+ */
opacity: 0;
}
input {
position: relative;
background: none;
z-index: 2;
width: 33px;
height: 33px;
transition: all .25s ease-in .25s;
color: transparent;
font-size: .75rem;
line-height: 25px;
border: 2px solid #33333326;
// box-shadow: #0000000f 0 0px 1px 1px;
border-radius: 3em;
&:hover {
cursor: pointer;
&:focus {
cursor: text;
}
+ span {
background: rgba(255,255,255,0.2);
}
}
&:focus {
width: 200px;
padding: 0 10px;
outline: none;
color: $theme-color-second;
background:none;
@media(max-width: $screen-xs){
width: 100px;
}
+ span {
width: 200px;
&::before {
width:2px;
opacity:1;
transition: all .25s ease-in;
}
}
}
}
.kenspan{
.fa-search{
color: $theme-color-second;
}
z-index: 1;
position: absolute;
font-size: 1.2em;
top: 6px;
right: 4px;
width: 25px;
height: 25px;
transition: all .25s ease-in .25s;
border-radius: 25px;
@media(max-width:820px){
right: 2px;
}
}
}
#useful-menu{
display: flex;
align-items: center;
justify-content: space-between;
@media(max-width:768px){
color: #fff;
a{
color: #fff;
}
}
#nfu_logo{
@media(max-width:768px){
display: none;
}
}
ul{
margin: 0;
}
}