2021-07-13 22:18:53 +00:00
|
|
|
/**
|
|
|
|
* Omegamma - Hugo theme for ad5001.eu and related websites.
|
|
|
|
* Copyright (C) 2021 Ad5001
|
|
|
|
*
|
|
|
|
* This program is free software: you can redistribute it and/or modify
|
|
|
|
* it under the terms of the GNU General Public License as published by
|
|
|
|
* the Free Software Foundation, either version 3 of the License, or
|
|
|
|
* (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This program is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
* GNU General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU General Public License
|
|
|
|
* along with this program. If not, see <https://www.gnu.org/licenses/>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
// Preview blocks used in the apps main page.
|
|
|
|
.block-preview {
|
|
|
|
box-shadow: 0px 0px 2px 0px #000000;
|
|
|
|
width: Min(25em, calc(100vw - 2em));
|
|
|
|
height: 20em;
|
|
|
|
background-size: cover;
|
|
|
|
background-repeat: no-repeat;
|
|
|
|
|
|
|
|
// Base label setting
|
2021-07-16 22:36:59 +00:00
|
|
|
.label-link {
|
|
|
|
text-decoration: none;
|
|
|
|
color: black;
|
2021-09-26 15:39:36 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.label, &.label {
|
|
|
|
transition: max-height 0.15s ease-in;
|
|
|
|
overflow: hidden;
|
|
|
|
bottom: 0;
|
|
|
|
max-height: 20%;
|
|
|
|
background-color: #FFFFFFDD;
|
|
|
|
padding: 0.5em;
|
2021-07-13 22:18:53 +00:00
|
|
|
|
2021-09-26 15:39:36 +00:00
|
|
|
&.expand {
|
|
|
|
max-height: 100%;
|
|
|
|
height: calc(100% - 1em);
|
|
|
|
}
|
|
|
|
|
|
|
|
.app-name {
|
|
|
|
float: left;
|
|
|
|
}
|
|
|
|
|
|
|
|
.right-icon {
|
|
|
|
float: right;
|
|
|
|
line-height: 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
// Hide this information by default
|
|
|
|
.show-on-hover {
|
|
|
|
display: none;
|
|
|
|
transition: opacity 0.15s;
|
|
|
|
opacity: 0;
|
|
|
|
max-height: 0;
|
|
|
|
background: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
p[role=button] {
|
|
|
|
line-height: 1em;
|
|
|
|
width: max-content;
|
2021-07-13 22:18:53 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Used when the block is hovered/toggled
|
|
|
|
&:hover, &.toggled {
|
|
|
|
box-shadow: 0px 0px 4px 0px #000000;
|
|
|
|
|
|
|
|
// Take full height
|
|
|
|
.label {
|
|
|
|
max-height: 100%;
|
|
|
|
height: calc(100% - 1em);
|
|
|
|
|
|
|
|
// Show previously hidden text
|
|
|
|
.show-on-hover {
|
|
|
|
display: block;
|
|
|
|
opacity: 1;
|
|
|
|
max-height: 100%;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|