You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

802 lines
16 KiB

/*
* # Semantic Menu - Flat
* http://github.com/quirkyinc/semantic
*
*
* Copyright 2013 Contributors
* Released under the MIT license
* http://opensource.org/licenses/MIT
*
* Released: April 17 2013
*/
/*******************************
Standard
*******************************/
/*--------------
Menu
---------------*/
.ui.menu {
background-color: #FFFFFF;
font-size: 0px;
-webkit-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
box-shadow: 0px 0px 0px 1px rgba(0, 0, 0, 0.1);
-webkit-border-radius: 5px;
-moz-border-radius: 5px;
border-radius: 5px;
}
.ui.menu .item,
.ui.menu .item > a {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
vertical-align: middle;
min-height: 1.25em;
-webkit-transition:
opacity 0.1s linear,
background 0.1s linear,
box-shadow 0.1s linear
;
-moz-transition:
opacity 0.1s linear,
background 0.1s linear,
box-shadow 0.1s linear
;
-o-transition:
opacity 0.1s linear,
background 0.1s linear,
box-shadow 0.1s linear
;
-ms-transition:
opacity 0.1s linear,
background 0.1s linear,
box-shadow 0.1s linear
;
transition:
opacity 0.1s linear,
background 0.1s linear,
box-shadow 0.1s linear
;
}
/*--------------
Colors
---------------*/
/* Text Color */
.ui.menu .item,
.ui.menu .item > a {
color: rgba(0, 0, 0, 0.8);
}
.ui.menu .item > a:hover {
background-color: rgba(0, 0, 0, 0.03);
color: rgba(0, 0, 0, 0.95);
}
.ui.menu .item .item,
.ui.menu .item .item > a {
color: rgba(0, 0, 0, 0.6);
}
.ui.menu .item .item > a:hover {
background-color: rgba(0, 0, 0, 0.02);
color: rgba(0, 0, 0, 0.9);
}
/*--------------
Items
---------------*/
.ui.menu .item {
position: relative;
display: inline-block;
padding: 0.75em 0.95em;
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
-moz-user-select: -moz-none;
-khtml-user-select: none;
user-select: none;
}
.ui.menu .item > a {
display: block;
margin: -0.75em -0.95em;
padding: 0.75em 0.95em;
}
.ui.menu .menu.left,
.ui.menu .item.left {
float: left;
}
.ui.menu .menu.right,
.ui.menu .item.right {
float: right;
}
/*--------------
Borders
---------------*/
.ui.menu .item:before {
position: absolute;
content: '';
top: 0%;
right: 0px;
width: 1px;
height: 100%;
background-image: -webkit-linear-gradient(top,
rgba(0, 0, 0, 0.05) 0%,
rgba(0, 0, 0, 0.1) 50%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: -moz-linear-gradient(top,
rgba(0, 0, 0, 0.05) 0%,
rgba(0, 0, 0, 0.1) 50%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: -o-linear-gradient(top,
rgba(0, 0, 0, 0.05) 0%,
rgba(0, 0, 0, 0.1) 50%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: -ms-linear-gradient(top,
rgba(0, 0, 0, 0.05) 0%,
rgba(0, 0, 0, 0.1) 50%,
rgba(0, 0, 0, 0.05) 100%)
;
background-image: linear-gradient(top,
rgba(0, 0, 0, 0.05) 0%,
rgba(0, 0, 0, 0.1) 50%,
rgba(0, 0, 0, 0.05) 100%)
;
}
.ui.menu .menu.right .item:before,
.ui.menu .item.right:before {
right: auto;
left: 0px;
}
/*--------------
Icons
---------------*/
.ui.menu .item > i:only-child,
.ui.menu .item > a > i:only-child {
margin: 0em;
}
/*--------------
Images
---------------*/
.ui.menu .item > img {
display: block;
max-width: 100%;
margin: 0em auto;
}
/*--------------
Dropdowns
---------------*/
.ui.menu .dropdown.item {
box-shadow: none !important;
z-index: 10;
}
.ui.menu .dropdown.item .menu {
overflow: hidden;
height: 0px;
width: 0px;
position: absolute;
top: 100%;
left: 0px;
background-color: #FFFFFF;
opacity: 0;
-moz-border-radius: 5px;
-webkit-border-radius: 5px;
border-radius: 5px;
-webkit-transition: opacity 0.2s ease-out;
-moz-transition: opacity 0.2s ease-out;
-o-transition: opacity 0.2s ease-out;
-ms-transition: opacity 0.2s ease-out;
transition: opacity 0.2s ease-out;
z-index: 11;
}
.ui.menu .dropdown.item .menu .item {
border: none;
border-top: 1px solid rgba(0, 0, 0, 0.1);
font-size: 0.9em;
display: block;
color: rgba(0, 0, 0, 0.75);
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ui.menu .dropdown.item .menu .item:first-child {
border-top: none;
}
.ui.menu .dropdown.item:last-child .menu {
left: auto;
right: 0px;
}
/*--------------
Notification
---------------*/
.ui.menu .item .alert {
position: absolute;
top: -8px;
left: 75%;
background-color: #EEEEEE;
padding: 3px 5px;
background: -webkit-linear-gradient(top, #FFFFFF 0%, #F4F4F4 100%);
background: -moz-linear-gradient(top, #FFFFFF 0%, #F4F4F4 100%);
background: -o-linear-gradient(top, #FFFFFF 0%, #F4F4F4 100%);
background: -ms-linear-gradient(top, #FFFFFF 0%, #F4F4F4 100%);
background: linear-gradient(top, #FFFFFF 0%, #F4F4F4 100%);
border: 1px solid #E5E5E5;
border-radius: 5px;
-webkit-box-shadow:
0px 1px 0px rgba(0, 0, 0, 0.3),
0px 1px 0px rgba(255, 255, 255, 0.6) inset
;
-moz-box-shadow:
0px 1px 0px rgba(0, 0, 0, 0.3),
0px 1px 0px rgba(255, 255, 255, 0.6) inset
;
box-shadow:
0px 1px 0px rgba(0, 0, 0, 0.3),
0px 1px 0px rgba(255, 255, 255, 0.6) inset
;
font-size: 11px;
line-height: 1;
text-transform: uppercase;
color: #555555;
z-index: 100;
}
/*******************************
States
*******************************/
/*--------------
Hover
---------------*/
/* Pseudo states cautiously used for convenience */
.ui.menu .item.hover,
.ui.menu .link.item:hover,
.ui.menu a.item:hover,
.ui.menu .dropdown.item.hover,
.ui.menu .dropdown.item:hover,
.ui.menu .dropdown.item .menu .item.hover,
.ui.menu .dropdown.item .menu .item:hover {
cursor: pointer;
background-color: rgba(0, 0, 0, 0.05);
}
/* Dropdown Display */
.ui.menu .dropdown.item:hover .menu {
display: block;
overflow: visible;
min-width: 150px;
width: 100%;
height: auto;
opacity: 1;
border: 1px solid rgba(0, 0, 0, 0.1);
border-top: none;
-webkit-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
-moz-box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
box-shadow: 0px 1px 2px rgba(0, 0, 0, 0.1);
}
/*--------------
Down
---------------*/
.ui.menu .item.down,
.ui.menu .link.item:active,
.ui.menu a.item:active,
.ui.menu .item > a:active,
.ui.menu .dropdown.item .menu .item:active {
background-color: rgba(0, 0, 0, 0.05);
-webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1) inset;
}
/*--------------
Active
---------------*/
.ui.menu .item.active {
border-top: 0.2em solid #999999;
padding-top: 0.55em;
background-color: rgba(0, 0, 0, 0.05);
text-shadow: 0px 1px 0px rgba(255, 255, 255, 0.8);
-webkit-box-shadow:
0px 0px 0px 1px rgba(0, 0, 0, 0.1),
0px 0px 2px 0px rgba(0, 0, 0, 0.1) inset
;
-moz-box-shadow:
0px 0px 0px 1px rgba(0, 0, 0, 0.1),
0px 0px 2px 0px rgba(0, 0, 0, 0.1) inset
;
box-shadow:
0px 0px 0px 1px rgba(0, 0, 0, 0.1),
0px 0px 2px 0px rgba(0, 0, 0, 0.1) inset
;
}
.ui.vertical.menu .item.active {
border-top: none;
border-left: 0.2em solid #999999;
padding-top: 0.75em;
padding-left: 0.75em;
}
.ui.vertical.menu .item .menu .item.active {
padding-left: 1.35em;
padding-top: 0.5em;
}
/*--------------
Disabled
---------------*/
.ui.menu .item.disabled,
.ui.menu .item.disabled:hover,
.ui.menu .item.disabled.hover {
cursor: default;
opacity: 0.3;
background-color: transparent;
}
/*******************************
Variations
*******************************/
/*--------------
Colors
---------------*/
.ui.black.menu {
background-color: #333333;
}
.ui.black.menu .item,
.ui.black.menu .item > a {
color: rgba(255, 255, 255, 0.95);
}
.ui.black.menu .item > a:hover {
background-color: rgba(255, 255, 255, 0.08);
color: rgba(255, 255, 255, 0.95);
}
.ui.black.menu .item .item,
.ui.black.menu .item .item > a {
color: rgba(255, 255, 255, 0.6);
}
.ui.black.menu .item .item > a:hover {
background-color: rgba(255, 255, 255, 0.05);
color: rgba(255, 255, 255, 0.9);
}
/*--- Border ---*/
.ui.black.menu .item:before {
background-image: -webkit-linear-gradient(top,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
background-image: -moz-linear-gradient(top,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
background-image: -o-linear-gradient(top,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
background-image: -ms-linear-gradient(top,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
background-image: linear-gradient(top,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
}
.ui.vertical.black.menu .item:before {
background-image: -webkit-linear-gradient(left,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
background-image: -moz-linear-gradient(left,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
background-image: -o-linear-gradient(left,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
background-image: -ms-linear-gradient(left,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
background-image: linear-gradient(left,
rgba(255, 255, 255, 0.03) 0%,
rgba(255, 255, 255, 0.1) 50%,
rgba(255, 255, 255, 0.03) 100%)
;
}
/*--- Hover ---*/
.ui.black.menu .link.item.hover,
.ui.black.menu .link.item:hover,
.ui.black.menu .dropdown.item:hover,
.ui.black.menu a.item:hover {
cursor: pointer;
background-color: rgba(255, 255, 255, .15);
}
/*--- Down ---*/
.ui.black.menu .item.down,
.ui.black.menu .dropdown.item:active,
.ui.black.menu .link.item:active,
.ui.black.menu a.item:active {
background-color: rgba(255, 255, 255, .1);
-webkit-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: 1px 1px 1px rgba(0, 0, 0, 0.1) inset;
}
/*--- Active ---*/
.ui.black.menu .item.active {
border-color: transparent;
background-color: rgba(255, 255, 255, 0.05);
text-shadow: 0px 1px 0px rgba(0, 0, 0, 0.8);
-webkit-box-shadow:
0px 0px 1px rgba(0, 0, 0, 0.1) inset
;
-moz-box-shadow:
0px 0px 1px rgba(0, 0, 0, 0.1) inset
;
box-shadow:
0px 0px 1px rgba(0, 0, 0, 0.1) inset
;
}
/*--- Pointers ---*/
.ui.black.pointing.menu .item.active:after {
background-color: #3E3E3E;
}
.ui.black.pointing.menu .item.active:hover:after {
background-color: #3B3B3B;
}
/*--------------
Transparent
---------------*/
.ui.transparent.menu {
opacity: 0.95;
}
/*--------------
Vertical
---------------*/
.ui.vertical.menu {
width: 200px;
}
.ui.vertical.menu .item {
display: block;
border-left: none;
border-right: none;
}
/*--- Border ---*/
.ui.vertical.menu .item:before {
position: absolute;
content: '';
top: 0%;
left: 0px;
width: 100%;
height: 1px;
background-image: -webkit-linear-gradient(left,
rgba(0, 0, 0, 0.03) 0%,
rgba(0, 0, 0, 0.1) 1.5em,
rgba(0, 0, 0, 0.03) 100%)
;
background-image: -moz-linear-gradient(left,
rgba(0, 0, 0, 0.03) 0%,
rgba(0, 0, 0, 0.1) 1.5em,
rgba(0, 0, 0, 0.03) 100%)
;
background-image: -o-linear-gradient(left,
rgba(0, 0, 0, 0.03) 0%,
rgba(0, 0, 0, 0.1) 1.5em,
rgba(0, 0, 0, 0.03) 100%)
;
background-image: -ms-linear-gradient(left,
rgba(0, 0, 0, 0.03) 0%,
rgba(0, 0, 0, 0.1) 1.5em,
rgba(0, 0, 0, 0.03) 100%)
;
background-image: linear-gradient(left,
rgba(0, 0, 0, 0.03) 0%,
rgba(0, 0, 0, 0.1) 1.5em,
rgba(0, 0, 0, 0.03) 100%)
;
}
.ui.vertical.menu .item:first-child:before {
background-image: none;
}
/*--- Dropdown ---*/
.ui.vertical.menu .dropdown.item > i {
float: right;
}
.ui.vertical.menu .dropdown.item .menu {
top: 0%;
left: 100%;
margin: 0px;
border-left: none;
border: 1px solid rgba(0, 0, 0, 0.1);
font-size: 1em;
}
.ui.vertical.menu .dropdown.item .menu .item {
font-size: 1em;
}
/*--- Sub Menu ---*/
.ui.vertical.menu .item > .menu {
margin: 0.5em -1em -0.75em;
}
.ui.vertical.menu .item > .menu > .item {
padding: 0.5em 1.5em;
font-size: 0.85em;
}
.ui.vertical.menu .item > .menu > .item:before {
display: none;
}
.ui.vertical.menu .item > .menu > .item > a {
margin: -0.5em -1.5em;
padding: 0.5em 1.5em;
}
/*--------------
Fitted
---------------*/
.ui.fitted.menu .item,
.ui.fitted.menu .item > a,
.ui.fitted.menu .item .menu .item,
.ui.fitted.menu .item .menu .item > a,
.ui.menu .fitted.item,
.ui.menu .fitted.item > a {
padding-top: 0em;
padding-bottom: 0em;
}
/*--------------
Borderless
---------------*/
.ui.borderless.menu .item:before,
.ui.borderless.menu .item > a:before,
.ui.borderless.menu .item .menu .item:before,
.ui.borderless.menu .item .menu .item > a:before,
.ui.menu .borderless.item:before,
.ui.menu .borderless.item > a:before {
background-image: none;
}
/*--------------
Tight
---------------*/
.ui.tight.menu .item,
.ui.tight.menu .item > a,
.ui.tight.menu .item .menu .item,
.ui.tight.menu .item .menu .item > a,
.ui.menu .tight.item,
.ui.menu .tight.item > a {
padding: 0em;
}
/*--------------
Fixed
---------------*/
.ui.menu.fixed {
position: fixed;
z-index: 10;
width: 100%;
border: none;
}
.ui.menu.fixed.top {
top: 0px;
left: 0px;
right: auto;
bottom: auto;
}
.ui.menu.fixed.right {
top: 0px;
right: 0px;
left: auto;
bottom: auto;
width: auto;
height: 100%;
}
.ui.menu.fixed.bottom {
bottom: 0px;
left: 0px;
top: auto;
right: auto;
}
.ui.menu.fixed.left {
top: 0px;
left: 0px;
right: auto;
bottom: auto;
width: auto;
height: 100%;
}
/*-------------------
Pointing
--------------------*/
.ui.pointing.menu .item.active:after {
position: absolute;
bottom: -0.3em;
left: 50%;
content: "";
margin-left: -0.3em;
width: 0.6em;
height: 0.6em;
-webkit-box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.1) inset;
-moz-box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.1) inset;
box-shadow: -1px -1px 0px 1px rgba(0, 0, 0, 0.1) inset;
background-image: none;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
z-index: 2;
-webkit-transition:
background 0.1s linear
;
-moz-transition:
background 0.1s linear
;
-o-transition:
background 0.1s linear
;
-ms-transition:
background 0.1s linear
;
transition:
background 0.1s linear
;
}
.ui.vertical.pointing.menu .item.active:after {
position: absolute;
top: 50%;
right: -0.22em;
bottom: auto;
left: auto;
-webkit-box-shadow: 1px -1px 0px 1px rgba(0, 0, 0, 0.15);
-moz-box-shadow: 1px -1px 0px 1px rgba(0, 0, 0, 0.15);
box-shadow: 1px -1px 0px 1px rgba(0, 0, 0, 0.15);
margin-top: -0.3em;
}
/* Colors */
.ui.pointing.menu .item.active:after {
background-color: #F3F3F3;
}
.ui.pointing.menu .item.active:hover:after {
background-color: #EAEAEA;
}
/*--------------
Attached
---------------*/
.ui.menu.attached {
-moz-border-radius: 0px;
-webkit-border-radius: 0px;
border-radius: 0px;
/* avoid rgba multiplying */
-moz-box-shadow: 0px 0px 0px 1px #DDDDDD;
-webkit-box-shadow: 0px 0px 0px 1px #DDDDDD;
box-shadow: 0px 0px 0px 1px #DDDDDD;
}
.ui.top.attached.menu {
-moz-border-radius: 5px 5px 0px 0px;
-webkit-border-radius: 5px 5px 0px 0px;
border-radius: 5px 5px 0px 0px;
}
.ui.menu.bottom.attached {
-moz-border-radius: 0px 0px 5px 5px;
-webkit-border-radius: 0px 0px 5px 5px;
border-radius: 0px 0px 5px 5px;
}
/*--------------
Sizes
---------------*/
.ui.small.menu .item {
font-size: 14px;
}
.ui.menu .item {
font-size: 16px;
}
.ui.large.menu .item {
font-size: 18px;
}