mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-25 02:18:00 +01:00
8d47f56917
* Build assets using webpack * Change webpack bundling method, add path aliases, restore deploy script * Remove babel dependencies * Add buble rollup plugin and always attach promise polyfill to window * Fix object formatting for buble rollup plugin config * Remove reference to setImmediate from promise polyfill
114 lines
2.2 KiB
SCSS
114 lines
2.2 KiB
SCSS
$media_border: 1px solid $media_box_color !default;
|
|
$media_over_border: 1px dotted $vote_down_color;
|
|
|
|
.media-box {
|
|
display: inline-block;
|
|
position: relative;
|
|
overflow: hidden;
|
|
border: $media_border;
|
|
margin: 0 6px 6px 0;
|
|
}
|
|
|
|
.media-box.over {
|
|
border: $media_over_border;
|
|
}
|
|
|
|
.media-box__header {
|
|
min-width: 100%;
|
|
background: $media_box_color;
|
|
color: $foreground_color;
|
|
line-height: $media_box_header_height;
|
|
font-size: 12px;
|
|
text-align: center;
|
|
white-space: nowrap;
|
|
}
|
|
|
|
/* Links that take up the whole width of .media-box (title links) should use this class along with .media-box__header (without containers) */
|
|
a.media-box__header--link {
|
|
display: block;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
font-weight: bold;
|
|
color: $media_box_header_link_text_color;
|
|
|
|
&:hover {
|
|
color: $media_box_header_link_text_hover_color;
|
|
background-color: $media_box_hover_color;
|
|
}
|
|
}
|
|
|
|
/* Containers with a row of links (e.g. image thumbnail header) should use this class. */
|
|
.media-box__header--link-row > a {
|
|
display: inline-block;
|
|
}
|
|
|
|
.media-box__header--link-row > a, .media-box__overlay {
|
|
line-height: $media_box_header_height;
|
|
padding: 0 4px;
|
|
}
|
|
|
|
.media-box__header--small {
|
|
width: 150px;
|
|
font-size: 11px;
|
|
a {
|
|
padding: 0 3px;
|
|
}
|
|
}
|
|
|
|
.media-box__header--unselected {
|
|
background-color: $danger_color;
|
|
}
|
|
|
|
.media-box__header--selected {
|
|
background-color: $success_color;
|
|
}
|
|
|
|
// TODO: properly fix this
|
|
.media-box__content {
|
|
.image-container {
|
|
width: 100%;
|
|
height: 100%;
|
|
}
|
|
}
|
|
|
|
.media-box__content--featured {
|
|
width: 326px;
|
|
height: 326px;
|
|
}
|
|
|
|
.media-box__content--large {
|
|
width: 254px;
|
|
height: 254px;
|
|
}
|
|
|
|
.media-box__content--small {
|
|
width: 150px;
|
|
height: 150px;
|
|
}
|
|
|
|
.media-box__overlay {
|
|
display: block;
|
|
position: absolute;
|
|
z-index: 4;
|
|
width: 100%;
|
|
text-align: left;
|
|
font-weight: bold;
|
|
word-wrap: break-word;
|
|
color: $image_overlay_color;
|
|
background: $image_overlay_background_color;
|
|
pointer-events: none;
|
|
}
|
|
|
|
.thumb_small .media-box__overlay {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.thumb_tiny .media-box__overlay {
|
|
font-size: 10px;
|
|
line-height: 16px;
|
|
}
|
|
|
|
/* TODO: replace absolute positioning with a more flexible solution */
|
|
.media-box__overlay:nth-child(2) {
|
|
top: $media_box_header_height;
|
|
}
|