1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-27 01:02:42 +01:00
phorge-phorge/webroot/rsrc/css/phui/phui-pinboard-view.css
Chad Little 7aeefc0cca Add an Experimental Dark Mode to Phabricator
Summary: Mostly this is an exercise to clean up our CSS and Celerity processor by making sure all important color decisions are generatable. It's somewhat resonable to use if you don't review code. Posting it up here mostly so I don't lose the work.

Test Plan: Visit lots and lots of pages with dark mode on and off.

Reviewers: epriestley

Reviewed By: epriestley

Subscribers: Korvin

Differential Revision: https://secure.phabricator.com/D18227
2017-07-18 06:44:32 -07:00

102 lines
1.9 KiB
CSS

/**
* @provides phui-pinboard-view-css
*/
.phui-pinboard-view {
padding: 16px 8px;
overflow: hidden;
text-align: center;
}
.phui-pinboard-list-item {
display: inline;
}
.phui-pinboard-item-view {
margin: 0 12px 16px 0;
text-align: left;
width: 280px;
background: {$page.content};
border: 1px solid {$lightblueborder};
border-radius: 3px;
}
.phui-pinboard-view .phui-pinboard-item-view {
display: inline-block;
}
.device-desktop .phui-pinboard-item-view:hover {
border-color: {$blue};
}
.device-desktop .phui-pinboard-item-view:hover .phui-pinboard-item-header a {
color: {$blue};
}
/* On phones, show a single column of items. */
.device-phone .phui-pinboard-item-view {
float: none;
margin: 0 auto 16px;
}
.phui-pinboard-item-header {
padding: 6px 8px;
display: block;
font-weight: bold;
white-space: nowrap;
overflow: hidden;
border-top: 1px solid {$thinblueborder};
}
.phui-pinboard-item-header a {
color: {$darkbluetext};
}
.phui-pinboard-item-image-link {
display: block;
}
.phui-pinboard-item-image-link img {
border-top-left-radius: 3px;
border-top-right-radius: 3px;
}
.phui-pinboard-item-content {
padding: 0 8px 8px;
overflow: hidden;
color: {$bluetext};
font-size: {$smallerfontsize};
}
.phui-pinboard-item-count {
float: left;
margin-left: 8px;
}
.phui-pinboard-icons {
padding: 4px 8px 4px 0;
color: {$darkbluetext};
overflow: hidden;
}
.phui-pinboard-icon {
margin-right: 4px;
}
.phui-pinboard-item-disabled .phui-pinboard-item-image-link img {
opacity: 0.25;
}
.phui-pinboard-item-disabled .phui-pinboard-item-header a {
color: {$greytext};
text-decoration: line-through;
}
.dashboard-panel .phui-pinboard-view {
margin: 0;
padding: 16px 12px 0 12px;
background: {$page.content};
border-left: 1px solid {$lightblueborder};
border-right: 1px solid {$lightblueborder};
border-bottom: 1px solid {$blueborder};
}