Forked from
Stud.IP / Stud.IP
651 commits behind the upstream repository.
-
Closes #4643 Merge request studip/studip!3463
Closes #4643 Merge request studip/studip!3463
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
opengraph.scss 2.05 KiB
.opengraph-area {
margin: 10px auto 5px;
max-width: 700px;
.switcher {
list-style: none;
text-align: right;
li {
border-top: thin solid var(--dark-gray-color-20);
display: inline-block;
padding: 5px;
&:first-child {
border-left: thin solid var(--dark-gray-color-20);
}
&:last-child {
border-right: thin solid var(--dark-gray-color-20);
}
}
.switch-left, .switch-right {
@include hide-text();
@include square(20px);
background-position: center;
background-repeat: no-repeat;
padding: 0;
&:not([disabled]) {
cursor: pointer;
}
}
.switch-left {
@include background-icon('arr_1left', 'clickable');
&[disabled] {
@include background-icon('arr_1left', 'inactive');
}
}
.switch-right {
@include background-icon('arr_1right', 'clickable');
&[disabled] {
@include background-icon('arr_1right', 'inactive');
}
}
}
.js & .opengraph.hidden,
.js &:not(.handled) .opengraph:not(:first-of-type) {
// The second selector prevents flash of content before everything
// is setup
display: none;
}
}
.opengraph {
$padding: 10px;
$height: 120px;
@include clearfix();
font-size: 0.8em;
border: 1px solid var(--dark-gray-color-20);
padding: $padding;
min-height: $height;
a.info {
box-sizing: border-box;
color: var(--black);
display: block;
word-break: normal !important;
&:hover {
color: var(--black);
}
}
.image {
@include square($height);
background-size: contain;
background-position: left center;
background-repeat: no-repeat;
display: inline-block;
float: left;
margin-right: $padding;
}
}