passman/sass/public-page.scss
2025-03-09 19:10:25 +01:00

166 lines
3.3 KiB
SCSS

/**
* Nextcloud - passman
*
* @copyright Copyright (c) 2016, Sander Brand (brantje@gmail.com)
* @copyright Copyright (c) 2016, Marcos Zuriaga Miguel (wolfi@wolfi.es)
* @license GNU AGPL version 3 or any later version
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU Affero 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 Affero General Public License for more details.
*
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*/
@import 'variables';
@import 'mixins';
header {
display: none;
}
#content-wrapper {
padding-top: 0;
}
.share-controller {
width: 100%;
overflow-y: scroll;
align-items: center;
.share-container {
width: 100%;
padding: 20px;
.credential_container {
max-width: 800px;
width: 90%;
margin: 20px auto;
padding: 30px;
filter: drop-shadow(0 2px 4px var(--color-box-shadow));
background: var(--color-main-background);
@include border-radius(8px);
.text {
text-align: center;
font-size: 1.1em;
margin: 15px 0;
}
h2 {
font-weight: bold;
text-align: center;
margin-bottom: 25px;
color: var(--color-primary);
}
button {
margin: 15px auto;
display: block;
padding: 8px 20px;
font-size: 1.1em;
i {
margin-right: 8px;
}
}
table {
width: 100%;
margin: 20px 0;
td:first-child {
width: 140px;
font-weight: 600;
padding-right: 15px;
}
td {
padding: 12px 8px;
word-break: break-word;
}
td.whitespace_normal_field > span > div > span {
white-space: normal;
}
}
}
}
}
.credential_field {
/* overflow: hidden; */
display: flex;
flex-wrap: wrap;
align-items: center;
.cell, .value {
margin-right: 10px;
}
.tools {
display: flex;
gap: 8px;
.cell {
cursor: pointer;
opacity: 0.8;
transition: opacity 0.2s;
&:hover {
opacity: 1;
}
}
}
}
.tags {
gap: 6px;
display: flex;
flex-wrap: wrap;
.tag {
background-color: var(--color-background-dark);
color: var(--color-text-maxcontrast);
padding: 6px 12px;
font-size: 0.9em;
margin-right: 6px;
margin-bottom: 6px;
display: inline-block;
@include border-radius(20px);
}
}
.footer {
font-size: 0.9em;
margin-top: 30px;
text-align: center;
a.link {
color: var(--color-primary);
text-decoration: none;
margin: 0 8px;
&:hover {
text-decoration: underline;
}
}
}
// Add responsive styles
@media (max-width: 768px) {
.share-controller .share-container .credential_container {
width: 95%;
padding: 20px;
table td:first-child {
width: 100px;
}
}
}