mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-18 19:40:55 +01:00
d4d620fa6d
Summary: The original intention was to hugely improve the UX interaction on Workboards for Microsoft Windows users, since they have BIG GIANT SCROLLBARS. So we adopted thin scrollbars, that are graphically pleasant for all other "normal" browsers too. Note that this can be really thin now. The premise is: probably you will never notice this, since you never try to click on the scrollbar. In case, if you have problems, contact us. But note: - you can use the mouse wheel as usual - you can use keyboard navigation (try the tab key - it auto-scrolls!) - you can use usual touch movements on relevant devices. The non-standard CSS version is kept for compatibility. Scrollbar examples in Microsoft Windows with Chromium-based browser: | Before | After | |-----------|-----------| | {F312321} | {F312323} | Scrollbar examples in GNU/Linux with KDE, on mouse hover: | Before | After | |-----------|-----------| | {F313082} | {F313083} | ... on bar selected: | Before | After | |-----------|-----------| | {F313084} | {F313085} | Ref T15488 Test Plan: View a Workboard and a Differential side panel on Firefox with static scrollbars enabled. Reviewers: O1 Blessed Committers, valerio.bozzolan Reviewed By: O1 Blessed Committers, valerio.bozzolan Subscribers: aklapper, speck, tobiaswiese, valerio.bozzolan, Matthew, Cigaryno Maniphest Tasks: T15488 Differential Revision: https://we.phorge.it/D25305
222 lines
4.3 KiB
CSS
222 lines
4.3 KiB
CSS
/**
|
|
* @provides phui-formation-view-css
|
|
*/
|
|
|
|
.phui-formation-view {
|
|
table-layout: fixed;
|
|
width: 100%;
|
|
}
|
|
|
|
.phui-formation-view-expander {
|
|
position: fixed;
|
|
width: 24px;
|
|
height: 36px;
|
|
top: 64px;
|
|
border-style: solid;
|
|
box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.1);
|
|
border-color: {$lightgreyborder};
|
|
background: {$lightgreybackground};
|
|
z-index: 4;
|
|
|
|
display: none;
|
|
}
|
|
|
|
.device-desktop .phui-formation-view-expander {
|
|
display: block;
|
|
}
|
|
|
|
.phui-formation-desktop-only {
|
|
display: none;
|
|
}
|
|
|
|
.device-desktop .phui-formation-desktop-only {
|
|
display: table-cell;
|
|
}
|
|
|
|
.phui-formation-view-expander-left {
|
|
border-radius: 0 12px 12px 0;
|
|
border-width: 1px 1px 1px 0;
|
|
cursor: e-resize;
|
|
}
|
|
|
|
.phui-formation-view-expander-right {
|
|
border-radius: 12px 0 0 12px;
|
|
border-width: 1px 0 1px 1px;
|
|
cursor: w-resize;
|
|
}
|
|
|
|
.phui-formation-view-expander-icon {
|
|
position: absolute;
|
|
width: 18px;
|
|
height: 18px;
|
|
top: 9px;
|
|
left: 3px;
|
|
text-align: center;
|
|
}
|
|
|
|
.device-desktop .phui-formation-view-expander:hover {
|
|
box-shadow: 2px 2px 2px rgba(0, 0, 0, 0.1);
|
|
background: {$darkgreybackground};
|
|
transition: 0.1s;
|
|
}
|
|
|
|
.device-desktop .phui-formation-view-expander:hover
|
|
.phui-icon-view {
|
|
color: {$bluetext};
|
|
transition: 0.1s;
|
|
}
|
|
|
|
.phui-flank-header {
|
|
padding: 8px;
|
|
background: {$bluebackground};
|
|
border-bottom: 1px solid {$lightgreyborder};
|
|
}
|
|
|
|
.phui-flank-header-text {
|
|
color: {$darkgreytext};
|
|
font-weight: bold;
|
|
}
|
|
|
|
.phui-flank-header-hide {
|
|
font-size: {$normalfontsize};
|
|
position: absolute;
|
|
display: inline-block;
|
|
top: 6px;
|
|
right: 6px;
|
|
width: 20px;
|
|
height: 20px;
|
|
text-align: center;
|
|
border: 1px solid {$lightgreyborder};
|
|
border-radius: 4px;
|
|
line-height: 20px;
|
|
}
|
|
|
|
.phui-flank-header-hide-left {
|
|
cursor: w-resize;
|
|
}
|
|
|
|
|
|
.device-desktop .phui-flank-header-hide:hover {
|
|
box-shadow: inset 1px 1px 1px rgba(0, 0, 0, 0.05);
|
|
background: {$darkgreybackground};
|
|
transition: 0.1s;
|
|
}
|
|
|
|
.device-desktop .phui-flank-header-hide:hover
|
|
.phui-icon-view {
|
|
color: {$bluetext};
|
|
transition: 0.1s;
|
|
}
|
|
|
|
.phui-formation-resizer {
|
|
position: fixed;
|
|
top: 0;
|
|
bottom: 0;
|
|
|
|
cursor: col-resize;
|
|
background: #f5f5f5;
|
|
border-style: solid;
|
|
border-width: 0 1px 0 1px;
|
|
border-color: #fff #999c9e #fff #999c9e;
|
|
box-sizing: border-box;
|
|
|
|
box-shadow: inset -1px 0px 1px rgba({$alphablack}, 0.15);
|
|
|
|
background-image: url(/rsrc/image/divot.png);
|
|
background-position: center;
|
|
background-repeat: no-repeat;
|
|
|
|
display: none;
|
|
z-index: 4;
|
|
}
|
|
|
|
.device-desktop .phui-formation-resizer {
|
|
display: block;
|
|
}
|
|
|
|
.phui-flank-view-fixed {
|
|
position: fixed;
|
|
top: {$menu.main.height};
|
|
bottom: 0;
|
|
overflow: hidden;
|
|
background: {$lightgreybackground};
|
|
z-index: 4;
|
|
}
|
|
|
|
.phui-flank-view-fixed .phui-flank-view-body {
|
|
overflow: hidden auto;
|
|
}
|
|
|
|
.device-desktop .phui-flank-view-fixed .phui-flank-view-body {
|
|
scrollbar-width: thin;
|
|
}
|
|
|
|
/* Alternative thin scrollbar when `scrollbar-width: thin` is not supported */
|
|
/* (Use the same selector as above for consistent behavior on Chrome/Firefox) */
|
|
.device-desktop .phui-flank-view-fixed
|
|
.phui-flank-view-body::-webkit-scrollbar {
|
|
height: 6px;
|
|
width: 6px;
|
|
background: rgba(0, 0, 0, 0.1);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.device-desktop .phui-flank-view-fixed
|
|
.phui-flank-view-body::-webkit-scrollbar-thumb {
|
|
background: rgba(0, 0, 0, 0.25);
|
|
border-radius: 4px;
|
|
}
|
|
|
|
.phui-flank-view-fixed .phui-flank-view-tail {
|
|
position: absolute;
|
|
bottom: 0;
|
|
width: 100%;
|
|
}
|
|
|
|
.phui-flank-view .phui-list-view {
|
|
margin: 4px;
|
|
}
|
|
|
|
.phui-flank-view .phui-list-item-view {
|
|
height: 20px;
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.phui-flank-view .phui-list-item-view .phui-icon-view {
|
|
width: 20px;
|
|
height: 20px;
|
|
text-align: center;
|
|
margin-right: 4px;
|
|
}
|
|
|
|
.phui-flank-view .phui-list-item-view .phui-list-item-href {
|
|
display: block;
|
|
color: {$darkbluetext};
|
|
text-decoration: none;
|
|
}
|
|
|
|
.device-desktop .phui-flank-view .phui-list-item-view:hover {
|
|
background: {$lightblueborder};
|
|
transition: 0.1s;
|
|
}
|
|
|
|
.phui-flank-view .keyboard-shortcut-key {
|
|
position: absolute;
|
|
right: 4px;
|
|
top: 4px;
|
|
height: 18px;
|
|
width: 18px;
|
|
line-height: 18px;
|
|
padding: 0;
|
|
color: {$lightgreytext};
|
|
}
|
|
|
|
.phui-flank-view-head .phui-list-view {
|
|
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
|
|
padding-bottom: 4px;
|
|
}
|
|
|
|
.phui-flank-view-tail .phui-list-view {
|
|
box-shadow: 0 -1px 1px rgba(0, 0, 0, 0.1);
|
|
padding-top: 4px;
|
|
}
|