2012-07-31 01:09:14 +02:00
|
|
|
/**
|
|
|
|
* @provides phabricator-main-menu-view
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
|
|
/* - Main Menu -----------------------------------------------------------------
|
|
|
|
|
|
|
|
Main menu at the top of every page that has chrome. It reacts to resolution
|
|
|
|
changes in order to behave reasonably on tablets and phones.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.phabricator-main-menu {
|
2012-08-21 01:02:36 +02:00
|
|
|
background: #2d3236;
|
|
|
|
background-image: url(/rsrc/image/main_texture.png);
|
2012-07-31 01:09:14 +02:00
|
|
|
position: relative;
|
|
|
|
box-shadow: 0px 1px 1px rgba(0, 0, 0, 0.25);
|
|
|
|
height: 44px;
|
2012-10-23 04:06:56 +02:00
|
|
|
z-index: 6;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu a:hover {
|
|
|
|
text-decoration: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-desktop .phabricator-main-menu {
|
|
|
|
text-align: right;
|
|
|
|
width: 100%;
|
|
|
|
}
|
|
|
|
|
|
|
|
/* - Main Menu Group -----------------------------------------------------------
|
|
|
|
|
|
|
|
Container representing a single item on the main menu. For desktops these lay
|
|
|
|
out horizontally; on phones they switch to vertical.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2012-08-01 02:58:21 +02:00
|
|
|
.phabricator-main-menu-group {
|
|
|
|
height: 44px;
|
|
|
|
position: relative;
|
|
|
|
}
|
|
|
|
|
2012-07-31 01:09:14 +02:00
|
|
|
.device-desktop .phabricator-main-menu-group {
|
|
|
|
display: inline-block;
|
|
|
|
text-align: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-tablet .phabricator-main-menu-group,
|
|
|
|
.device-phone .phabricator-main-menu-group {
|
|
|
|
width: 100%;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
2012-08-01 02:58:21 +02:00
|
|
|
.device-tablet .phabricator-main-menu-group + .phabricator-main-menu-group,
|
|
|
|
.device-phone .phabricator-main-menu-group + .phabricator-main-menu-group {
|
|
|
|
margin-top: 1px;
|
|
|
|
}
|
|
|
|
|
2012-07-31 01:09:14 +02:00
|
|
|
|
|
|
|
/* - Logo ----------------------------------------------------------------------
|
|
|
|
|
|
|
|
The "Phabricator" logo group in the main menu. On tablet and phone devices,
|
|
|
|
this shows a "reveal" button to expand/collapse the rest of the menu.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2012-08-01 02:58:21 +02:00
|
|
|
.device-desktop .phabricator-main-menu-group-logo {
|
2012-07-31 01:09:14 +02:00
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-logo {
|
|
|
|
display: inline-block;
|
|
|
|
height: 44px;
|
2012-08-21 01:02:36 +02:00
|
|
|
width: 170px;
|
2012-07-31 01:09:14 +02:00
|
|
|
margin-right: 12px;
|
2012-11-07 22:36:38 +01:00
|
|
|
background: 6px 9px url(/rsrc/image/header_logo.png) no-repeat;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-logo span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* - Expand/Collapse Button ----------------------------------------------------
|
|
|
|
|
|
|
|
On phones, the menu switches to a vertical layout and uses a button to expand
|
|
|
|
or collapse the items.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.phabricator-main-menu-expand-button {
|
|
|
|
position: absolute;
|
|
|
|
right: 10px;
|
|
|
|
top: 10px;
|
|
|
|
display: block;
|
|
|
|
width: 40px;
|
|
|
|
height: 28px;
|
|
|
|
text-align: center;
|
|
|
|
background: #22292d url(/rsrc/image/lines.png) no-repeat 8px 6px;
|
|
|
|
border-radius: 6px;
|
|
|
|
|
|
|
|
border: 1px solid #111111;
|
|
|
|
box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1),
|
|
|
|
0 1px 0 rgba(255, 255, 255, 0.075);
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-desktop .phabricator-main-menu-expand-button {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-tablet .phabricator-main-menu-expand-button,
|
|
|
|
.device-phone .phabricator-main-menu-expand-button {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-expand-button span {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-reveal .phabricator-main-menu-expand-button {
|
|
|
|
background-color: #55595d;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* - Icon Menus ----------------------------------------------------------------
|
|
|
|
|
|
|
|
These are the small icons for actions like "Settings" and "Log Out" which
|
|
|
|
appear on the right side of the main menu. On tablets and phones these layout
|
|
|
|
vertically.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.phabricator-main-menu-icon {
|
|
|
|
width: 26px;
|
|
|
|
height: 26px;
|
2012-08-10 21:11:24 +02:00
|
|
|
margin: 9px 6px;
|
2012-07-31 01:09:14 +02:00
|
|
|
display: inline-block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-desktop .phabricator-main-menu-icon-label {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-tablet .phabricator-main-menu-icon-label,
|
|
|
|
.device-phone .phabricator-main-menu-icon-label {
|
|
|
|
font-weight: bold;
|
2012-08-06 00:07:12 +02:00
|
|
|
color: #eeeeee;
|
2012-08-01 02:58:21 +02:00
|
|
|
position: absolute;
|
2012-07-31 01:09:14 +02:00
|
|
|
display: block;
|
2012-08-06 00:07:12 +02:00
|
|
|
line-height: 44px;
|
2012-08-01 02:58:21 +02:00
|
|
|
left: 60px;
|
|
|
|
right: 0px;
|
|
|
|
top: 0px;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.device-tablet .phabricator-main-menu-icon,
|
|
|
|
.device-phone .phabricator-main-menu-icon {
|
2012-08-06 00:07:12 +02:00
|
|
|
margin-left: 20px;
|
2012-07-31 01:09:14 +02:00
|
|
|
position: absolute;
|
|
|
|
}
|
|
|
|
|
2012-08-10 21:11:24 +02:00
|
|
|
.main-menu-item-icon-profile {
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
background-size: 26px 26px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-desktop .main-menu-item-icon-profile {
|
|
|
|
background-position: 12px 9px;
|
|
|
|
margin: 0 6px;
|
|
|
|
padding: 0 12px;
|
|
|
|
height: 44px;
|
|
|
|
border-width: 0 1px;
|
|
|
|
border-style: solid;
|
|
|
|
border-color: #44494d;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-menu-item-icon-profile-not-selected:hover {
|
|
|
|
background-color: #44494d;
|
|
|
|
}
|
|
|
|
|
|
|
|
.main-menu-item-icon-profile-selected {
|
|
|
|
background-color: #44494d;
|
|
|
|
}
|
2012-07-31 01:09:14 +02:00
|
|
|
|
|
|
|
/* - Search --------------------------------------------------------------------
|
|
|
|
|
|
|
|
The main search input in the menu bar.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.device-desktop .phabricator-main-menu-search {
|
|
|
|
width: 220px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-search-container {
|
|
|
|
padding: 10px 0;
|
|
|
|
position: relative;
|
|
|
|
height: 24px;
|
|
|
|
}
|
|
|
|
|
2012-08-01 02:58:21 +02:00
|
|
|
.phabricator-main-menu-search-target {
|
|
|
|
position: absolute;
|
|
|
|
top: 46px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-desktop .phabricator-main-menu-search-target {
|
|
|
|
width: 320px;
|
|
|
|
margin-left: -150px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-tablet .phabricator-main-menu-search-target,
|
|
|
|
.device-phone .phabricator-main-menu-search-target {
|
|
|
|
width: 100%;
|
|
|
|
margin-left: -25px;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
2012-07-31 01:09:14 +02:00
|
|
|
.device-desktop .phabricator-main-menu-search-container {
|
|
|
|
margin: 0 8px 0 50px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-tablet .phabricator-main-menu-search-container,
|
|
|
|
.device-phone .phabricator-main-menu-search-container {
|
|
|
|
margin: 0 18px 0 60px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-search input {
|
|
|
|
outline: 0;
|
|
|
|
margin: 0;
|
|
|
|
|
|
|
|
width: 100%;
|
|
|
|
right: 0;
|
|
|
|
position: absolute;
|
|
|
|
|
|
|
|
border: 1px solid #333333;
|
|
|
|
border-radius: 12px;
|
2012-08-21 01:02:36 +02:00
|
|
|
background: #555555;
|
2012-07-31 01:09:14 +02:00
|
|
|
height: 12px;
|
|
|
|
line-height: 12px;
|
|
|
|
box-shadow: 0px 1px 1px rgba(128, 128, 128, 0.25);
|
|
|
|
padding: 6px 32px 6px 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-search input:focus {
|
|
|
|
background: #c9c9c9;
|
|
|
|
}
|
|
|
|
|
2012-08-06 00:07:12 +02:00
|
|
|
.phabricator-main-menu-search input.jx-typeahead-placeholder {
|
2012-08-21 01:02:36 +02:00
|
|
|
color: #999999;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-search button {
|
|
|
|
position: absolute;
|
|
|
|
color: transparent;
|
|
|
|
background: transparent 5px 6px url(/rsrc/image/search.png) no-repeat;
|
|
|
|
border: none;
|
|
|
|
outline: none;
|
|
|
|
box-shadow: none;
|
2012-11-09 00:47:11 +01:00
|
|
|
text-shadow: none;
|
|
|
|
min-width: 0;
|
2012-07-31 01:09:14 +02:00
|
|
|
|
|
|
|
height: 20px;
|
|
|
|
width: 20px;
|
|
|
|
top: 11px;
|
|
|
|
right: 6px;
|
|
|
|
}
|
|
|
|
|
2012-08-01 02:58:21 +02:00
|
|
|
.phabricator-main-menu-search-target div.jx-typeahead-results {
|
|
|
|
border-radius: 4px;
|
|
|
|
box-shadow: 1px 1px 4px rgba(0, 0, 0, 0.35);
|
|
|
|
border: 1px solid #33393d;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-search-target div.jx-typeahead-results a.jx-result {
|
|
|
|
border: 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-search-target div.jx-typeahead-results a.focused,
|
|
|
|
.phabricator-main-menu-search-target div.jx-typeahead-results a:hover {
|
|
|
|
background: #3875d7;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-search-typeahead-result {
|
|
|
|
display: block;
|
|
|
|
padding: 4px 4px 4px 38px;
|
|
|
|
background-position: 4px 4px;
|
|
|
|
background-size: 25px 25px;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-search-typeahead-result .result-name {
|
|
|
|
display: block;
|
|
|
|
font-weight: bold;
|
|
|
|
color: #444444;
|
|
|
|
}
|
|
|
|
|
|
|
|
.focused .phabricator-main-search-typeahead-result .result-name,
|
|
|
|
a:hover .phabricator-main-search-typeahead-result .result-name {
|
|
|
|
color: #eeeeee;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-search-typeahead-result .result-type {
|
|
|
|
color: #888888;
|
|
|
|
}
|
|
|
|
|
|
|
|
.focused .phabricator-main-search-typeahead-result .result-type,
|
|
|
|
a:hover .phabricator-main-search-typeahead-result .result-type {
|
|
|
|
color: #dddddd;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2012-07-31 01:09:14 +02:00
|
|
|
|
|
|
|
/* - Collapsible ---------------------------------------------------------------
|
|
|
|
|
|
|
|
By default, groups are collapsible, which means they'll be hidden on phones
|
|
|
|
and respond to the menu toggle button.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
.device-tablet .phabricator-main-menu-collapsible,
|
|
|
|
.device-phone .phabricator-main-menu-collapsible {
|
|
|
|
background: #44494d;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-reveal {
|
|
|
|
height: auto;
|
|
|
|
}
|
|
|
|
|
|
|
|
.device-tablet .phabricator-main-menu-reveal .phabricator-main-menu-collapsible,
|
|
|
|
.device-phone .phabricator-main-menu-reveal .phabricator-main-menu-collapsible {
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/* - Alert ---------------------------------------------------------------------
|
|
|
|
|
|
|
|
Alert menus are like icon menus but don't obey collapse rules.
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2012-11-27 23:03:25 +01:00
|
|
|
.phabricator-main-menu-alert-bubble {
|
2012-07-31 01:09:14 +02:00
|
|
|
display: inline-block;
|
|
|
|
position: relative;
|
|
|
|
width: 26px;
|
|
|
|
height: 26px;
|
2012-11-27 23:03:25 +01:00
|
|
|
margin-bottom: 9px;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
2012-11-27 23:03:25 +01:00
|
|
|
.phabricator-main-menu-alert-bubble.alert-unread {
|
|
|
|
width: 46px;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|
|
|
|
|
2012-11-27 23:03:25 +01:00
|
|
|
.phabricator-main-menu-alert-icon {
|
2012-07-31 01:09:14 +02:00
|
|
|
position: absolute;
|
2012-11-27 23:03:25 +01:00
|
|
|
width: 14px;
|
|
|
|
height: 14px;
|
|
|
|
top: 4px;
|
|
|
|
left: 5px;
|
|
|
|
}
|
2012-07-31 01:09:14 +02:00
|
|
|
|
2012-11-27 23:03:25 +01:00
|
|
|
.phabricator-main-menu-alert-count {
|
|
|
|
position: absolute;
|
2012-07-31 01:09:14 +02:00
|
|
|
font-weight: bold;
|
2012-11-27 23:03:25 +01:00
|
|
|
line-height: 22px;
|
|
|
|
top: 1px;
|
|
|
|
right: 8px;
|
|
|
|
left: 20px;
|
2012-07-31 01:09:14 +02:00
|
|
|
color: #ffffff;
|
2012-11-27 23:03:25 +01:00
|
|
|
text-align: center;
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
.phabricator-main-menu-alert-item {
|
|
|
|
width: 26px;
|
|
|
|
height: 26px;
|
|
|
|
margin: 9px;
|
|
|
|
display: block;
|
|
|
|
}
|
|
|
|
|
|
|
|
.alert-unread .phabricator-main-menu-alert-count {
|
|
|
|
display: block;
|
2012-07-31 01:09:14 +02:00
|
|
|
}
|