Ssccb12040 (Talk | contribs) |
|||
Line 7: | Line 7: | ||
/* NavigationBar */ | /* NavigationBar */ | ||
− | + | @import url("https://fonts.googleapis.com/css?family=Roboto|Open+Sans|Raleway|Montserrat:300|Noto+Sans|Noto+Serif|Kalam"); | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | .navbar{ | |
− | + | /*background-color: transparent;*/ | |
− | + | border: 0px; | |
− | + | ||
− | + | ||
} | } | ||
− | + | @media (min-width: 992px) { | |
− | + | .navbar{ | |
− | + | padding-left: 80px; | |
− | + | padding-right: 80px; | |
− | + | } | |
} | } | ||
− | .navbar { | + | /* Solid class attached on scroll past first section */ |
− | + | /* #E4FDE1 = rgb(228, 253, 225) */ | |
− | background-color: | + | .navbar.solid { |
− | + | background-color: rgba(255, 255, 255, 0.75); | |
− | + | ||
− | + | ||
transition: background-color 1s ease 0s; | transition: background-color 1s ease 0s; | ||
} | } | ||
+ | /*.navbar.solid .navbar-brand { | ||
+ | color: #028090; | ||
+ | transition: color 1s ease 0s; | ||
+ | } | ||
+ | .navbar.solid .navbar-nav > li > a { | ||
+ | color: #028090; | ||
+ | transition: color 1s ease 0s; | ||
+ | }*/ | ||
− | . | + | .dropdown-li{ |
− | + | font-size: 24px; | |
− | + | ||
− | + | ||
} | } | ||
− | + | ||
− | color: # | + | span { |
+ | font-family: 'Kalam', cursive; | ||
+ | font-size: 28px; | ||
+ | font-weight: bold; | ||
+ | color: #333; | ||
} | } | ||
− | . | + | |
− | + | .brand { | |
− | + | font-size: 36px; | |
− | font-size: | + | |
− | + | ||
} | } | ||
− | . | + | |
− | + | .logo { | |
+ | height: 30px; | ||
+ | width: 30px; | ||
+ | display: inline-block; | ||
+ | margin-top: 10px; | ||
+ | margin-left: 10px; | ||
} | } | ||
− | + | ||
− | + | i { | |
+ | font-size: 18px; | ||
+ | vertical-align: middle; | ||
+ | margin-bottom: 5px; | ||
} | } | ||
− | . | + | |
− | + | .dropdown-main:hover .dropdown-sub{ | |
+ | display: block; | ||
} | } | ||
− | . | + | .dropdown-sub { |
− | + | padding-left: 40px; | |
− | + | display: none; | |
} | } | ||
− | . | + | .dropdown-sub:hover { |
− | + | background-color: #f5f5f5; | |
} | } | ||
− | . | + | .dropdown-sub a { |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
text-decoration: none; | text-decoration: none; | ||
} | } | ||
− | . | + | .dropdown-sub .dropdown-li { |
− | + | color: #00b3ea; | |
− | + | opacity: 0.75; | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | . | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
} | } | ||
− | + | @media (max-width:992px) { | |
− | + | .dropdown-sub { | |
− | + | display: block; | |
− | + | } | |
− | + | .dropdown-sub:hover { | |
− | + | background-color: none; | |
− | + | } | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | } | + | |
− | . | + | |
− | + | ||
− | + | ||
} | } | ||
Line 149: | Line 95: | ||
</head> | </head> | ||
<body> | <body> | ||
− | <nav class="navbar navbar-default navbar"> | + | <nav class="navbar navbar-default navbar-fixed-top"> |
− | + | <div class="container-fluid"> | |
− | + | <div class="navbar-header"> | |
− | + | <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> | |
− | + | <span class="sr-only">Toggle navigation</span> | |
− | + | <span class="icon-bar"></span> | |
− | + | <span class="icon-bar"></span> | |
− | + | <span class="icon-bar"></span> | |
− | + | </button> | |
− | + | <a class="pull-left" [routerLink]="['/home']" > | |
− | + | <img src="./assets/img/logo.png" alt="NCKU_Tainan logo" class="logo"> | |
− | + | </a> | |
− | + | <a [routerLink]="['/home']"><span class="pull-left brand"> NCKU Tainan</span></a> | |
− | + | </div> | |
− | + | <div id="navbar" class="collapse navbar-collapse"> | |
− | + | <ul class="nav navbar-nav navbar-right"> | |
− | + | <li class="dropdown"> | |
− | + | <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span>Project</span></a> | |
− | + | <ul class="dropdown-menu"> | |
− | </ | + | <li><a [routerLink]="['/background']"><span class="dropdown-li">Description</span></a></li> |
+ | <li class="dropdown-main"> | ||
+ | <a [routerLink]="['/project']"><span class="dropdown-li">Design</span> <i class="fa fa-chevron-down" aria-hidden="true"></i></a> | ||
+ | <div class="dropdown-sub"><a href="project#regulation"><span class="dropdown-li">Regulation</span></a></div> | ||
+ | <div class="dropdown-sub"><a href="project#sensing"><span class="dropdown-li">Sensing</span></a></div> | ||
</li> | </li> | ||
− | <li | + | <li><a [routerLink]="['/result']"><span class="dropdown-li">Results</span></a></li> |
− | + | <li><a [routerLink]="['/contribution']"><span class="dropdown-li">Contribution</span></a></li> | |
− | + | <li><a [routerLink]="['/improve']"><span class="dropdown-li">Improve</span></a></li> | |
− | + | </ul> | |
− | + | </li> | |
− | + | <li class="dropdown"> | |
− | + | <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span>Device</span></a> | |
− | + | <ul class="dropdown-menu"> | |
− | + | <li><a [routerLink]="['/device']"><span class="dropdown-li">Hardware</span></a></li> | |
− | + | <li><a [routerLink]="['/demonstrate']"><span class="dropdown-li">Demonstrate</span></a></li> | |
− | + | <li><a [routerLink]="['/software']"><span class="dropdown-li">Software</span></a></li> | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | < | + | |
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
− | + | ||
</ul> | </ul> | ||
− | </div><!--/.nav-collapse --> | + | </li> |
− | + | <li class="dropdown"> | |
− | + | <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span>Team</span></a> | |
+ | <ul class="dropdown-menu"> | ||
+ | <li><a [routerLink]="['/team']"><span class="dropdown-li">Team</span></a></li> | ||
+ | <li><a [routerLink]="['/attribution']"><span class="dropdown-li">Attributions</span></a></li> | ||
+ | <li><a><span class="dropdown-li">Sponsors</span></a></li> | ||
+ | <li><a [routerLink]="['/collaboration']"><span class="dropdown-li">Collaboration</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | <li class="dropdown"> | ||
+ | <a class="dropdown-toggle" data-toggle="dropdown" href="#"><span>Human Practice</span></a> | ||
+ | <ul class="dropdown-menu"> | ||
+ | <li><a [routerLink]="['/hp1']"><span class="dropdown-li">Overview</span></a></li> | ||
+ | <li><a [routerLink]="['/hpsilver']"><span class="dropdown-li">Silver</span></a></li> | ||
+ | <li><a [routerLink]="['/hpgold']"><span class="dropdown-li">Gold</span></a></li> | ||
+ | <li><a [routerLink]="['/engagement']"><span class="dropdown-li">Engagement</span></a></li> | ||
+ | </ul> | ||
+ | </li> | ||
+ | |||
+ | </ul> | ||
+ | </div> | ||
+ | <!--/.nav-collapse --> | ||
+ | </div> | ||
+ | </nav> | ||
+ | |||
</body> | </body> | ||
</html> | </html> |
Revision as of 05:04, 18 October 2017