Index: chrome/browser/resources/bluetooth_internals/bluetooth_internals.css |
diff --git a/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css b/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css |
index 0f4812e4303665280190b0d205c59f33f3801c0c..b33ee950239a13b9d5f9ec8226ea3ddc89a26896 100644 |
--- a/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css |
+++ b/chrome/browser/resources/bluetooth_internals/bluetooth_internals.css |
@@ -3,93 +3,206 @@ |
* found in the LICENSE file. |
*/ |
-html { |
- margin: 0; |
- padding: 0; |
+:root { |
+ --md-timing-function: cubic-bezier(.4, 0, .6, 1); |
+ --sidebar-width: 155px; |
+ --sidebar-neg-width: calc(var(--sidebar-width) * -1); |
} |
+html, |
body { |
margin: 0; |
padding: 0; |
} |
+h1 { |
+ color: rgb(92, 97, 102); |
+} |
-/* Header bar */ |
+/* Page container */ |
+#page-container { |
+ -webkit-margin-start: var(--sidebar-width); |
+} |
-header { |
+@media screen and (max-width: 600px) { |
+ #page-container { |
+ -webkit-margin-start: 0; |
+ } |
+} |
+ |
+/* Page content */ |
+#page-container section { |
+ padding: 24px 16px; |
+} |
+ |
+/* Page header */ |
+.page-header { |
align-items: center; |
- background-color: rgb(33, 150, 243); |
+ background-color: white; |
+ border-bottom: 1px solid #eee; |
display: flex; |
- flex-direction: row; |
- font-size: 20pt; |
- height: 56px; |
- justify-content: flex-start; |
- padding: 0 16px; |
+ height: 48px; |
+ padding-top: 8px; |
+ position: sticky; |
+ top: 0; |
} |
-.title { |
- color: white; |
- display: inline-block; |
- margin-left: 8px; |
+.page-header > h1 { |
+ margin: 13px 0; |
} |
+#menu-btn { |
+ background-color: transparent; |
+ background-image: url(../../../../ui/webui/resources/images/menu.svg); |
+ background-position: center; |
+ background-repeat: no-repeat; |
+ border: 0; |
+ display: none; |
+ height: 48px; |
+ margin: 0; |
+ width: 48px; |
+} |
-/* Device table */ |
+@media screen and (max-width: 600px) { |
+ #menu-btn { |
+ display: block; |
+ } |
-table { |
- border: 1px solid #ccc; |
- border-collapse: collapse; |
+ .page-header > h1 { |
+ margin: 13px 0 13px 24px; |
+ } |
+} |
+ |
+/* Sidebar */ |
+#sidebar { |
+ --transform-duration: 195ms; |
+ bottom: 0; |
+ left: 0; |
+ position: fixed; |
+ right: 0; |
+ top: 0; |
+ transition: visibility var(--transform-duration); |
+ width: var(--sidebar-width); |
+} |
+ |
+@media screen and (max-width: 600px) { |
+ #sidebar { |
+ width: auto; |
+ visibility: hidden; |
+ } |
+ |
+ #sidebar.open { |
+ visibility: visible; |
+ } |
+} |
+ |
+/* Sidebar Contents */ |
+.sidebar-content { |
+ background-color: white; |
+ height: 100%; |
+ transition-timing-function: var(--md-timing-function); |
+ width: var(--sidebar-width); |
+} |
+ |
+.sidebar-content > header > h1 { |
margin: 0; |
+ padding: 21px 0 18px 23px; |
+} |
+ |
+.sidebar-content ul { |
+ list-style-type: none; |
padding: 0; |
+} |
+ |
+.sidebar-content button { |
+ -webkit-padding-start: 16px; |
+ background-color: transparent; |
+ border: 0; |
+ color: #999; |
+ cursor: pointer; |
+ font: inherit; |
+ height: 40px; |
+ text-align: start; |
width: 100%; |
} |
-table tr { |
- border: 1px solid #ddd; |
- padding: 5px; |
+.sidebar-content .selected button { |
+ -webkit-border-start: 6px solid rgb(78, 87, 100); |
+ -webkit-padding-start: 10px; |
+ color: rgb(70, 78, 90); |
+} |
+ |
+.sidebar-content button:hover { |
+ background-color: #E0E0E0; |
+} |
+ |
+.overlay { |
+ --fade-duration: 225ms; |
+ background-color: rgba(0, 0, 0, .5); |
+ bottom: 0; |
+ left: 0; |
+ opacity: 0; |
+ position: absolute; |
+ right: 0; |
+ top: 0; |
+ transition: visibility var(--fade-duration), |
+ opacity var(--fade-duration) var(--md-timing-function); |
+ visibility: hidden; |
+} |
+ |
+@media screen and (max-width: 600px) { |
+ .sidebar-content { |
+ transform: translate3d(var(--sidebar-neg-width), 0, 0); |
+ transition: transform var(--transform-duration); |
+ } |
+ |
+ .open .sidebar-content { |
+ transform: translate3d(0, 0, 0); |
+ transition: transform var(--transform-duration); |
+ } |
+ |
+ .open .overlay { |
+ opacity: 1; |
+ visibility: visible; |
+ } |
+} |
+ |
+/* Device table */ |
+table { |
+ border-collapse: collapse; |
+ margin: 0; |
+ padding: 0; |
+ width: 100%; |
} |
table th, |
table td { |
- padding: 10px; |
- text-align: center; |
+ border: 1px solid #D9D9D9; |
+ padding: 7px; |
} |
table th { |
- font-size: 14px; |
- letter-spacing: 1px; |
- text-transform: uppercase; |
+ background-color: #F0F0F0; |
+ font-weight: normal; |
+} |
+ |
+table .removed { |
+ background-color: #BDBDBD; |
} |
@media screen and (max-width: 600px) { |
- table { |
- border: 0; |
- } |
table thead { |
display: none; |
} |
- table tr { |
- border-bottom: 2px solid #ddd; |
- display: block; |
- } |
+ |
table td { |
- border-bottom: 1px dotted #ccc; |
display: block; |
- font-size: 13px; |
- text-align: right; |
- } |
- table td:last-child { |
- border-bottom: 0; |
+ text-align: end; |
} |
+ |
table td::before { |
content: attr(data-label); |
float: left; |
font-weight: bold; |
- text-transform: uppercase; |
} |
} |
- |
-/* Device Row */ |
-table .removed { |
- background-color: #BDBDBD; |
-} |