1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-26 07:20:57 +01:00
phorge-phorge/webroot/rsrc/css/application/pholio/pholio.css
epriestley 0efa1ca643 Make the Pholio download button actually download
Summary:
  - When the button is clicked, actually download the file or image.
  - Add aural hints for the icon-only buttons.
  - Use a "photo" icon for "view raw image", so the "arrows pointing outward" icon can be used for "fullscreen" some day.

Test Plan: Clicked link, got a download.

Reviewers: chad

Reviewed By: chad

Subscribers: epriestley

Differential Revision: https://secure.phabricator.com/D9574
2014-06-16 09:15:25 -07:00

224 lines
4 KiB
CSS

/**
* @provides pholio-css
*/
.pholio-mock-image-container {
text-align: center;
vertical-align: middle;
position: relative;
background: url('/rsrc/image/checker_lighter.png');
}
.pholio-mock-thumb-grid-container {
padding: 12px;
overflow-x: auto;
overflow-y: hidden;
}
.pholio-mock-thumb-grid {
margin: 0 auto;
}
.pholio-mock-thumb-grid-item {
display: inline-block;
cursor: pointer;
width: 100px;
height: 100px;
padding: 4px;
margin: 4px;
vertical-align: middle;
border: 1px solid {$lightgreyborder};
position: relative;
background: url('/rsrc/image/checker_lighter.png');
}
.device-desktop .pholio-mock-thumb-grid-item:hover {
border-color: {$indigo};
}
.pholio-mock-thumb-grid-current {
border-color: {$sky};
}
.pholio-mock-thumb-grid-item-obsolete {
opacity: 0.5;
}
.pholio-mock-thumb-grid-image {
margin: auto;
position: relative;
}
.pholio-mock-image {
margin: auto;
cursor: crosshair;
}
.pholio-mock-image-viewport {
position: relative;
margin: auto;
display: inline-block;
}
.pholio-image-loading img {
opacity: 0.50;
}
.pholio-image-info-item {
padding: 0 8px;
margin: 8px 0;
}
.pholio-visible-size {
color: {$sky};
font-weight: bold;
}
.pholio-device-lightbox {
position: absolute;
overflow: auto;
}
.pholio-device-lightbox img {
display: block;
margin: auto;
}
.pholio-device-lightbox-loading {
background: url(/rsrc/image/darkload.gif) no-repeat center;
}
.pholio-transaction-inline-comment {
display: table-row;
}
.pholio-transaction-inline-comment img {
display: table-cell;
padding-bottom: 2px;
}
.pholio-transaction-inline-comment .transaction-comment {
display: table-cell;
vertical-align: middle;
padding-left: 8px;
}
.pholio-mock-reticle {
position: absolute;
display: none;
box-sizing: border-box;
}
.pholio-mock-reticle-selection {
background-color: rgba(255, 255, 255, 0.50);
border: 1px dashed #000;
}
.pholio-mock-reticle-draft {
font-size: 2.2em;
color: {$yellow};
text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
-webkit-text-stroke: 1px white;
}
.pholio-mock-reticle-final {
font-size: 2.2em;
color: {$indigo};
text-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
-webkit-text-stroke: 1px white;
}
.pholio-mock-reticle-draft:hover,
.pholio-mock-reticle-final:hover {
background-color: rgba(255, 255, 255, 0.50);
cursor: pointer;
}
.device-desktop .mock-has-cursor .pholio-mock-reticle {
display: block;
}
.pholio-mock-image-header {
position: absolute;
top: 0;
right: 0;
font-size: 14px;
padding: 4px 8px;
background: rgba(255,255,255,.6);
color: {$greytext};
}
.pholio-image-title {
font-weight: bold;
color: {$bluetext};
font-size: 15px;
}
.mock-image-description {
background: #fff;
border-top: 1px solid {$thinblueborder};
text-align: left;
}
.pholio-mock-thumb-grid-comment-count {
position: absolute;
top: -4px;
right: -4px;
width: 20px;
height: 17px;
font-weight: bold;
text-align: center;
line-height: 16px;
border-radius: 2px;
color: #fff;
text-decoration: none;
background: {$indigo};
}
.pholio-image-button {
float: right;
margin-left: 2px;
}
.pholio-image-button-link {
width: 56px;
height: 56px;
overflow: hidden;
display: block;
position: relative;
background: {$lightgreybackground};
text-align: center;
line-height: 56px;
font-size: 24px;
}
button.pholio-image-button-link,
button.pholio-image-button-link:active {
/* Remove button styles. */
box-shadow: none;
text-shadow: none;
border: none;
border-radius: 0;
}
.pholio-image-button-active .pholio-image-button-link .phui-icon-view {
color: {$lightgreytext};
}
.pholio-image-button-disabled .pholio-image-button-link .phui-icon-view {
color: {$darkgreybackground};
}
.pholio-image-button-active .pholio-image-button-link:hover {
background: {$darkgreybackground};
}
.device-desktop .pholio-image-button-active
.pholio-image-button-link:hover .phui-icon-view {
color: {$sky};
}
.pholio-image-description {
padding: 12px 8px;
border-top: 1px solid {$thinblueborder};
}