diff options
author | Dylan William Hardison <dylan@hardison.net> | 2018-08-04 18:24:15 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2018-08-04 18:24:15 +0200 |
commit | f44392e8cdbea85ac308b2472f813ee605ebae4b (patch) | |
tree | 6e7adaf99a0e5a43eb1bf5a0d673d86b60f34f99 /skins/standard | |
parent | 5be3a7fd0061aa0bc3059e09079741873b9b833f (diff) | |
parent | 4528b21bc922f8b1e0ba8581d230a492aa43c9cf (diff) | |
download | bugzilla-f44392e8cdbea85ac308b2472f813ee605ebae4b.tar.gz bugzilla-f44392e8cdbea85ac308b2472f813ee605ebae4b.tar.xz |
Merge branch 'mojo-poc'
Diffstat (limited to 'skins/standard')
-rw-r--r-- | skins/standard/describecomponents.css | 97 | ||||
-rw-r--r-- | skins/standard/global.css | 465 | ||||
-rw-r--r-- | skins/standard/reports.css | 97 |
3 files changed, 358 insertions, 301 deletions
diff --git a/skins/standard/describecomponents.css b/skins/standard/describecomponents.css new file mode 100644 index 000000000..cf5c1a98d --- /dev/null +++ b/skins/standard/describecomponents.css @@ -0,0 +1,97 @@ +/* This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this file, + * You can obtain one at http://mozilla.org/MPL/2.0/. + * + * This Source Code Form is "Incompatible With Secondary Licenses", as + * defined by the Mozilla Public License, v. 2.0. */ + +.product { + margin: 40px auto; + max-width: 960px; + font-size: 14px; + line-height: 1.5; +} + +.product > header, +.product .instructions { + margin: 0 auto; + max-width: 800px; + text-align: center; +} + +.product h1 { + margin: 0; + font-size: 48px; + font-weight: normal; +} + +.product > header p { + font-size: 16px; +} + +.product .instructions p { + font-size: 14px; + font-style: italic; +} + +.component { + display: flex; + align-items: center; + margin: 8px 0; + border: 1px solid #CCC; + border-radius: 4px; + padding: 16px; + background-color: #FFF; + box-shadow: 0 0 4px #CCC; +} + +.component.highlight { + margin: 0; + padding: 1em 0; + background-color: lightgreen; +} + +.component header { + flex: none; + margin-right: 16px; + width: 240px; +} + +.component h2 { + margin: 0; + font-size: 24px; + font-weight: normal; +} + +.component div { + flex: auto; +} + +.component p { + margin: 0; + font-size: 16px; +} + +.component ul { + display: flex; + margin: 8px 0 0; + border-top: 1px solid #DDD; + padding: 8px 0 0; + list-style: none; + font-size: 14px; + color: #999; +} + +.component li { + margin: 0 16px 0 0; + padding: 0; +} + +.component footer { + flex: none; + margin-left: 16px; +} + +.component footer:empty { + display: none; +} diff --git a/skins/standard/global.css b/skins/standard/global.css index 48d79366a..d004f3fbe 100644 --- a/skins/standard/global.css +++ b/skins/standard/global.css @@ -162,15 +162,13 @@ #header .links a:hover, #header .links a:focus, #header-tools-menu-button:hover, - #header-tools-menu-button:focus, - #header .dropdown-content a.active { + #header-tools-menu-button:focus { background-color: rgba(0, 0, 0, .05) !important; } #header .title a:active, #header .links a:active, - #header-tools-menu-button:active, - #header .dropdown-content a:active { + #header-tools-menu-button:active { background-color: rgba(0, 0, 0, .1) !important; } @@ -266,168 +264,6 @@ transition: none; } - #header .dropdown-content { - top: calc(100% + 4px); - border-color: #BBB #999 #777; - border-radius: 4px; - padding: 4px 0; - min-width: 160px; - max-width: 240px; - background-color: #FCFCFC; - box-shadow: 0 2px 8px rgba(0,0,0,.3); - } - - #header .dropdown-content.right { - left: -4px; - } - - #header .dropdown-content.left { - right: -4px; - } - - #header .dropdown-content::before, - #header .dropdown-content::after { - content: ''; - display: block; - width: 0; - height: 0; - position: absolute; - border-width: 8px; - border-color: transparent; - border-style: solid; - } - - #header .dropdown-content.right::before, - #header .dropdown-content.right::after { - left: 11px; - } - - #header .dropdown-content.left::before, - #header .dropdown-content.left::after { - right: 11px; - } - - #header .dropdown-content::before { - top: -17px; - border-bottom-color: #BBB; - } - - #header .dropdown-content::after { - top: -16px; - border-bottom-color: #FFF; - } - - #header .dropdown-content a, - #header .dropdown-content li > div { - padding: 2px 16px; - line-height: 1.5; - white-space: normal; - color: inherit !important; - background-color: transparent; - } - - #header .dropdown-panel { - padding: 0 !important; - width: 400px; - max-width: none !important; - } - - #header .dropdown-panel header { - border-bottom: 1px solid #CCC; - } - - #header .dropdown-panel h2 { - margin: 0; - padding: 8px 12px; - font-size: 14px; - line-height: 100%; - font-weight: normal; - } - - #header .dropdown-panel ul { - overflow-y: auto; - margin: 0; - padding: 0; - max-height: 480px; - list-style-type: none; - } - - #header .dropdown-panel li:not(:last-child) { - border-bottom: 1px solid #CCC; - } - - #header .dropdown-panel li a { - padding: 12px !important; - } - - #header .dropdown-panel li a:hover { - background-color: rgba(0, 0, 0, .05) !important; - } - - #header .dropdown-panel li a * { - pointer-events: none; - } - - #header .dropdown-panel .notifications a { - overflow: hidden; - } - - #header .dropdown-panel .notifications img { - float: left; - border-radius: 50%; - width: 40px; - height: 40px; - } - - #header .dropdown-panel .notifications img ~ * { - display: block; - margin-left: 52px; - } - - #header .dropdown-panel .notifications label { - overflow: hidden; - max-height: 40px; - } - - #header .dropdown-panel .notifications strong { - font-weight: 600; - } - - #header .dropdown-panel .notifications time { - font-size: 12px; - color: #999; - } - - #header .dropdown-panel .notifications .secure .icon { - display: inline; - font-size: 16px; - vertical-align: text-bottom; - } - - #header .dropdown-panel .notifications .secure .icon::before { - content: '\E88D'; - } - - #header .dropdown-panel .loading, - #header .dropdown-panel .empty { - display: flex; - align-items: center; - justify-content: center; - height: 240px; - line-height: 150%; - text-align: center; - } - - #header .dropdown-panel footer { - border-top: 1px solid #CCC; - text-align: center; - } - - #header .dropdown-panel footer a { - padding: 8px 16px !important; - line-height: 100% !important; - } - #header-search h2 { position: absolute; left: -99999px; @@ -533,12 +369,6 @@ color: #666; } - #header .dropdown-separator { - height: 0; - margin: 4px 0; - border-color: #BBB; - } - #header-login .mini-popup { position: absolute; top: 48px; @@ -1715,7 +1545,31 @@ button[disabled], input[type=submit][disabled], input[type=button][disabled], bu background-image: -webkit-linear-gradient(#bfc7cd,#9ca3aa); background-image: linear-gradient(#bfc7cd,#9ca3aa); box-shadow: 0 1px 0 0 rgba(0,0,0,0.2),inset 0 -1px 0 0 rgba(0,0,0,0.3); - cursor: pointer; + pointer-events: none; +} + +button.minor { + background-color: #eee; + background-image: linear-gradient(#fcfcfc, #eee); + color: #000; + font-size: inherit; + font-weight: 500; + padding: 4px 8px; + margin-bottom: 1px; + text-shadow: none; + -web-kit-box-shadow: 0 1px 0 0 rgba(0,0,0,0.1), inset 0 -1px 0 0 rgba(0,0,0,0.1); + -moz-box-shadow: 0 1px 0 0 rgba(0,0,0,0.1), inset 0 -1px 0 0 rgba(0,0,0,0.1); + box-shadow: 0 1px 0 0 rgba(0,0,0,0.1), inset 0 -1px 0 0 rgba(0,0,0,0.1), inset 0 0 1px 0 rgba(0,0,0,0.1); +} + +button.minor:hover { + -webkit-box-shadow: 0 1px 0 0 rgba(0,0,0,0.2), inset 0 -1px 0 0 rgba(0,0,0,0.3), inset 0 12px 24px 2px #ddd; + -moz-box-shadow: 0 1px 0 0 rgba(0,0,0,0.2), inset 0 -1px 0 0 rgba(0,0,0,0.3), inset 0 12px 24px 2px #ddd; + box-shadow: 0 1px 0 0 rgba(0,0,0,0.1), inset 0 -1px 0 0 rgba(0,0,0,0.1), inset 0 12px 24px 2px #ddd; +} + +button.minor[disabled] { + color: #999; } .notransition { @@ -1861,50 +1715,253 @@ a.controller { /******************/ /* Dropdown Menus */ /******************/ - /* The container <div> - needed to position the dropdown content */ .dropdown { - position: relative; - display: inline-block; + position: relative; + display: inline-block; +} + +.dropdown-button { + cursor: pointer; +} + +.dropdown-button * { + pointer-events: none; } /* Dropdown Content (Hidden by Default) */ .dropdown-content { - position: absolute; - background-color: #eee; - min-width: 120px; - z-index: 1; - text-align: left; - margin: 0; - padding: 0; - border: 1px solid #ddd; - -webkit-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1); - -moz-box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1); - box-shadow: 1px 1px 5px rgba(0, 0, 0, 0.1); - list-style: none; - right: 0px; + position: absolute; + top: calc(100% + 4px); + right: 0; + z-index: 1; + margin: 0; + border-width: 1px; + border-style: solid; + border-color: #BBB #999 #777; + border-radius: 4px; + padding: 4px 0; + min-width: 160px; + max-width: 400px; + background-color: #FCFCFC; + box-shadow: 0 2px 8px rgba(0, 0, 0, .3); + text-align: left; } .dropdown-content.menu-up { - bottom: 100%; + top: auto; + bottom: calc(100% + 4px); } -.dropdown-separator { - border-bottom: 1px solid #ddd; +.dropdown-content.right { + left: -4px; } -/* Links inside the dropdown */ -.dropdown-content a { - white-space: nowrap; - background-color: #eee; - color: black !important; - padding: 4px 8px; - text-decoration: none !important; - display: block; +.dropdown-content.left { + right: -4px; } -/* Change color of dropdown links on hover */ -.dropdown-content li .active { - text-decoration: none; - background-color: #39f; +.dropdown-content::before, +.dropdown-content::after { + content: ''; + display: block; + width: 0; + height: 0; + position: absolute; + border-width: 8px; + border-color: transparent; + border-style: solid; +} + +.dropdown-content.right::before, +.dropdown-content.right::after { + left: 11px; +} + +.dropdown-content.left::before, +.dropdown-content.left::after { + right: 11px; +} + +.dropdown-content:not(.menu-up)::before { + top: -17px; + border-bottom-color: #BBB; +} + +.dropdown-content:not(.menu-up)::after { + top: -16px; + border-bottom-color: #FFF; +} + +.dropdown-content.menu-up::before { + bottom: -17px; + border-top-color: #BBB; +} + +.dropdown-content.menu-up::after { + bottom: -16px; + border-top-color: #FFF; +} + +.dropdown-content ul, +.dropdown-content li { + margin: 0; + padding: 0; + list-style: none; +} + +.dropdown-content [role="menuitem"], +.dropdown-content [role="option"], +.dropdown-content li > div { + display: block; + box-sizing: border-box; + padding: 2px 16px; + width: 100%; + color: #555; + line-height: 1.5; + white-space: nowrap; + background: none transparent; +} + +.dropdown-content [role="menuitem"], +.dropdown-content [role="option"] { + outline: 0; + text-decoration: none; + cursor: pointer; +} + +.dropdown-content [role="menuitem"]:hover, +.dropdown-content [role="menuitem"]:focus, +.dropdown-content [role="menuitem"]:active, +.dropdown-content [role="menuitem"].active, +.dropdown-content [role="option"]:hover, +.dropdown-content [role="option"]:focus, +.dropdown-content [role="option"]:active, +.dropdown-content [role="option"].active { + color: #333; + background-color: rgba(0, 0, 0, .1) !important; +} + +.dropdown-content button[role="menuitem"] { + -moz-appearance: none; + -webkit-appearance: none; + appearance: none; + outline: 0; + border: 0; + border-radius: 0; + box-shadow: none; + font-weight: normal; + text-align: left; +} + +.dropdown-content button[role="menuitem"]::-moz-focus-inner { + border: 0; +} + +.dropdown-content [role="separator"] { + height: 0; + margin: 4px 0 !important; + border-bottom: 1px solid #BBB; +} + +.dropdown-panel { + padding: 0 !important; + width: 400px; + max-width: none !important; +} + +.dropdown-panel header { + border-bottom: 1px solid #CCC; +} + +.dropdown-panel h2 { + margin: 0; + padding: 8px 12px; + font-size: 14px; + line-height: 100%; + font-weight: normal; +} + +.dropdown-panel ul { + overflow-y: auto; + margin: 0; + padding: 0; + max-height: 480px; + list-style-type: none; +} + +.dropdown-panel li:not(:last-child) { + border-bottom: 1px solid #CCC; +} + +.dropdown-panel li a { + padding: 12px !important; +} + +.dropdown-panel li a:hover { + background-color: rgba(0, 0, 0, .05) !important; +} + +.dropdown-panel li a * { + pointer-events: none; +} + +.dropdown-panel .notifications a { + overflow: hidden; +} + +.dropdown-panel .notifications img { + float: left; + border-radius: 50%; + width: 40px; + height: 40px; +} + +.dropdown-panel .notifications img ~ * { + display: block; + margin-left: 52px; +} + +.dropdown-panel .notifications label { + overflow: hidden; + max-height: 40px; +} + +.dropdown-panel .notifications strong { + font-weight: 600; +} + +.dropdown-panel .notifications time { + font-size: 12px; + color: #999; +} + +.dropdown-panel .notifications .secure .icon { + display: inline; + font-size: 16px; + vertical-align: text-bottom; +} + +.dropdown-panel .notifications .secure .icon::before { + content: '\E88D'; +} + +.dropdown-panel .loading, +.dropdown-panel .empty { + display: flex; + align-items: center; + justify-content: center; + height: 240px; + line-height: 150%; + text-align: center; +} + +.dropdown-panel footer { + border-top: 1px solid #CCC; + text-align: center; +} + +.dropdown-panel footer a { + padding: 8px 16px !important; + line-height: 100% !important; } diff --git a/skins/standard/reports.css b/skins/standard/reports.css deleted file mode 100644 index 205946550..000000000 --- a/skins/standard/reports.css +++ /dev/null @@ -1,97 +0,0 @@ -/* The contents of this file are subject to the Mozilla Public - * License Version 1.1 (the "License"); you may not use this file - * except in compliance with the License. You may obtain a copy of - * the License at http://www.mozilla.org/MPL/ - * - * Software distributed under the License is distributed on an "AS - * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or - * implied. See the License for the specific language governing - * rights and limitations under the License. - * - * The Original Code is the Bugzilla Bug Tracking System. - * - * The Initial Developer of the Original Code is Everything Solved, - * Inc. Portions created by the Initial Developer are Copyright (C) - * 2009 the Initial Developer. All Rights Reserved. - * - * Contributor(s): - * Max Kanat-Alexander <mkanat@bugzilla.org> - */ - -/* describecomponents.cgi */ - -#components_header_table { - margin-bottom: 1em; -} - -.product_container { - width: 65%; -} - -.product_name { - font-weight: bold; - font-size: 150%; - margin: 0; -} - -.product_desc { - /* This is padding instead of margin because it looks better - * with the scrollbar. */ - padding: 0 2em; - font-style: italic; - max-height: 5em; - overflow: auto; -} - -.instructions { - font-weight: bold; - font-size: 105%; - padding-right: 1em; -} - -.components_header { - margin: 0; - font-size: 140%; - font-weight: bold; -} - -.component_table { - margin-top: -1em; - margin-left: 2em; -} - -.component_table thead th { - padding-right: 1em; - vertical-align: bottom; - text-align: left; -} - -.component_table td { - border-bottom: 1px dotted gray; -} - -.component_table td.component_assignee, -.component_table td.component_qa_contact -{ - border: none; - padding-top: .5em; -} - -.component_name { - font-size: 115%; - font-weight: bold; - padding-right: 1em; - vertical-align: middle; - min-width: 8em; -} - -.component_description { - padding-bottom: .5em; - color: #333; -} - -.component_hilite { - background-color: lightgreen; - margin: 0; - padding: 1em 0; -} |