From 7e6845e954da409b07d9e8ccb8c1e1ea6df6cfde Mon Sep 17 00:00:00 2001 From: Kohei Yoshino Date: Mon, 1 Oct 2018 11:46:40 -0400 Subject: Bug 1418378 - Use Material Icons on Bugzilla home page instead of low-res images --- skins/standard/global.css | 2 +- skins/standard/index.css | 144 +++++++++++++++++------------------ skins/standard/index/file-a-bug.png | Bin 3534 -> 0 bytes skins/standard/index/help.png | Bin 4111 -> 0 bytes skins/standard/index/new-account.png | Bin 4082 -> 0 bytes skins/standard/index/search.png | Bin 4828 -> 0 bytes 6 files changed, 72 insertions(+), 74 deletions(-) delete mode 100644 skins/standard/index/file-a-bug.png delete mode 100644 skins/standard/index/help.png delete mode 100644 skins/standard/index/new-account.png delete mode 100644 skins/standard/index/search.png (limited to 'skins') diff --git a/skins/standard/global.css b/skins/standard/global.css index 81a420077..adea088a0 100644 --- a/skins/standard/global.css +++ b/skins/standard/global.css @@ -243,7 +243,7 @@ } #header .link-file .icon::before { - content: '\E254'; + content: '\E89C'; } #header .link-dashboard .icon::before { diff --git a/skins/standard/index.css b/skins/standard/index.css index 9fe9202db..62b7deb3f 100644 --- a/skins/standard/index.css +++ b/skins/standard/index.css @@ -50,34 +50,6 @@ font-weight: bold; } - .bz_common_actions { - text-align: center; - } - .bz_common_actions ul { - list-style-type: none; - padding: 0; - } - .bz_common_actions ul li { - display: inline; - vertical-align: top; - } - .bz_common_actions ul li a { - display: inline-block; - height: 170px; - width: 145px; - margin: 0 2ex 2em 0; - } - .bz_common_actions ul li a span { - position: relative; - top: 90%; - font-weight: bold; - } - .bz_common_actions a, - .bz_common_actions a:visited, - .bz_common_actions a:hover { - text-decoration: none; - } - #quicksearchForm { clear: both; @@ -110,6 +82,76 @@ padding: 0; } + #tiles { + display: flex; + margin: 32px 0; + padding: 0; + list-style-type: none; + } + + #tiles li { + flex: none; + margin: 0; + padding: 0; + } + + #tiles a { + display: flex; + flex-direction: column; + align-items: center; + justify-content: center; + border-radius: 8px; + width: 160px; + height: 160px; + } + + #tiles a:hover, + #tiles a:focus, + #tiles a:active { + background-color: rgba(0, 0, 0, .05); + text-decoration: none; + } + + #tiles span { + display: block; + } + + #tiles .icon { + width: 120px; + height: 120px; + font-size: 120px; + line-height: 120px; + font-family: "Material Icons"; + color: #777; + } + + #tile-docs .icon::before { + content: "\E887"; + } + + #tile-search .icon::before { + content: "\E8A0"; + } + + #tile-new-bug .icon::before { + content: "\E89C"; + } + + #tile-prefs .icon::before { + content: "\E8B8"; + } + + #tile-new-account .icon::before, + #tile-login .icon::before { + content: "\E853"; + } + + #tiles .label { + margin-top: 4px; + font-size: 14px; + color: #555; + } + ul.additional_links { list-style: none; @@ -135,49 +177,5 @@ { color: #ccc; } -/* index page (end) */ - - - #enter_bug - { - background: url(../../images/bugzilla-papericon.png) no-repeat; - } - #query - { - background: url(../../images/bugzilla-magnifier.png) no-repeat; - } - #account - { - background: url(../../images/bugzilla-person-alternate.png) no-repeat; - margin-right: 0; - } - #docs - { - background: url(../../images/bugzilla-questionmark2.png) no-repeat !important; - } - - #page-index .intro { display: inline; } - #docs { background: url(../standard/index/help.png) no-repeat; } - - .bz_common_actions - { - display: block; - height: 170px; - width: 145px; - float: left; - margin: 0 2ex 2em 0; - text-align: center; - } - .bz_common_actions span - { - position: relative; - top: 95%; - font-weight: bold; - } - .bz_common_actions, - .bz_common_actions:visited, - .bz_common_actions:hover - { - text-decoration: none; - } +/* index page (end) */ diff --git a/skins/standard/index/file-a-bug.png b/skins/standard/index/file-a-bug.png deleted file mode 100644 index cf4c941b6..000000000 Binary files a/skins/standard/index/file-a-bug.png and /dev/null differ diff --git a/skins/standard/index/help.png b/skins/standard/index/help.png deleted file mode 100644 index 6f9035b64..000000000 Binary files a/skins/standard/index/help.png and /dev/null differ diff --git a/skins/standard/index/new-account.png b/skins/standard/index/new-account.png deleted file mode 100644 index 4ad9ff203..000000000 Binary files a/skins/standard/index/new-account.png and /dev/null differ diff --git a/skins/standard/index/search.png b/skins/standard/index/search.png deleted file mode 100644 index 8d33ebd1e..000000000 Binary files a/skins/standard/index/search.png and /dev/null differ -- cgit v1.2.3-24-g4f1b