Skip to content

Commit d3aed20

Browse files
committed
PHUIList changes for responsive design
Summary: Fixes some issues with lists and tablet/mobile layouts. Test Plan: shrink my screen Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D6148
1 parent 9e591f4 commit d3aed20

File tree

2 files changed

+10
-6
lines changed

2 files changed

+10
-6
lines changed

src/__celerity_resource_map__.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3718,7 +3718,7 @@
37183718
),
37193719
'phui-list-view-css' =>
37203720
array(
3721-
'uri' => '/res/77c3509f/rsrc/css/phui/phui-list.css',
3721+
'uri' => '/res/bdc66aff/rsrc/css/phui/phui-list.css',
37223722
'type' => 'css',
37233723
'requires' =>
37243724
array(

webroot/rsrc/css/phui/phui-list.css

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22
* @provides phui-list-view-css
33
*/
44

5-
.phui-list-item {
6-
line-height: 16px;
7-
}
8-
95
.phui-list-item-header,
106
.phui-list-item-header a {
117
color: #9ca5b5;
@@ -56,6 +52,10 @@
5652
position: relative;
5753
}
5854

55+
.phui-list-sidenav .phui-list-item-view {
56+
overflow: hidden;
57+
}
58+
5959
.phui-list-sidenav .phui-list-item-href {
6060
display: block;
6161
padding: 2px 16px;
@@ -69,7 +69,7 @@
6969
padding: 2px 10px;
7070
}
7171

72-
.phui-list-sidenav .phui-list-item-href:hover {
72+
.device-desktop .phui-list-sidenav .phui-list-item-href:hover {
7373
background: #005588;
7474
background-image: linear-gradient(to bottom, #3b86c4, #2b628f);
7575
background-image: -webkit-linear-gradient(top, #3b86c4, #2b628f);
@@ -123,3 +123,7 @@
123123
width: 14px;
124124
display: block;
125125
}
126+
127+
.device-phone .phui-list-view.phui-list-navbar > li {
128+
float: none;
129+
}

0 commit comments

Comments
 (0)