Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
120 changes: 109 additions & 11 deletions css/apps/photos.scss
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,88 @@
display: none;
}
}

.icon-minus {
width: 24px;
height: 24px;
display: inline-grid;
place-items: center;
background: #e5007d;
border: 0;
border-radius: min(30%, 28px);
padding: 0;
cursor: pointer;

box-shadow:
0 1px 2px rgba(0,0,0,.15),
inset 0 0 0 1px rgba(255,255,255,.08);
}

.icon-minus::before{
content: "";
width: 50%;
height: 2px;
background: #fff;
border-radius: 999px;
box-shadow: 0 0 0.5px rgba(0,0,0,.15);
}

&__filters{
padding: 0 2rem;
display: flex;
align-items: center;
gap: 1rem;
&__count {
font-weight: 500;
color: var(--color-text-secondary);
}
.button-vue {
background-color: var(--nmc-ods-blue-primary);
border-radius: 9999px;
margin: 0;
min-height: unset;
min-width: unset;
padding: 5px 24px;

&__icon {
height: 2rem;
min-height: 2rem;
width: 2rem;
min-width: 2rem;
}

&__text{
padding: 0;
font-weight: bold;
font-size: 14px;
}

.material-design-icon{
&.image-multiple-outline-icon {
position: relative;
display: inline-block;
width: 24px;
height: 24px;

svg {
display: none;
}
}
&.image-multiple-outline-icon::before {
content: "";
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-image: var(--icon-albums-dark);
background-repeat: no-repeat;
background-position: center;
background-size: contain;
}
}
}
}
}

.photos-navigation {
Expand Down Expand Up @@ -69,19 +151,17 @@
&__content-buttons {

button {
border-radius: var(--border-radius-pill);
border: 1px solid currentColor;

border-color: var(--color-border);
border-radius: var(--border-radius-rounded);
border: none;

line-height: 1rem;
margin: 0;
min-height: unset;
min-width: unset;
padding-left: 0;
padding-right: 0;
height: 40px;
padding-left: 0.5rem;
padding-right: 0.5rem;
width: auto !important;


.button-vue__icon {
height: 2rem;
min-height: 2rem;
Expand Down Expand Up @@ -124,20 +204,38 @@

.button-vue__text {
padding: 0;
font-weight: normal;
font-size: 14px;
padding-right: 0.5rem;
font-weight: bold;
margin-bottom: 1px;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}

&:hover {
background-color: initial;

svg,
.button-vue__text {
color: var(--color-primary-hover);
color: unset;
}
}
}

&__buttons {
.button-vue {
border: 1px solid var(--color-main-text);
border-radius: 50%;
width: 40px !important;
height: 40px !important;
min-width: 40px !important;
min-height: 40px !important;
box-sizing: border-box;
display: flex;
align-items: center;
justify-content: center;
}
}
}

&__content-buttons {
Expand Down
20 changes: 10 additions & 10 deletions src/fix-ods-tokens.mjs
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
import fs from "fs";
import fs from 'fs'

const SRC = "node_modules/@telekom-ods/design-tokens/dist/design-tokens.css";
const DEST = "css/telekom-design-tokens.ods.css";
const SRC = 'node_modules/@telekom-ods/design-tokens/dist/design-tokens.css'
const DEST = 'css/telekom-design-tokens.ods.css'

let css = fs.readFileSync(SRC, "utf8");
let css = fs.readFileSync(SRC, 'utf8')

// Ersetzungen durchführen
css = css.replace(/:root,\[data-scheme="neutral"\]/g, '[data-scheme="neutral"]');
css = css.replace(/\[data-scheme="macaw"\]/g, ':root,[data-scheme="macaw"]');
css = css.replace(/\[data-mode=/g, '[data-themes*=');
css = css.replace(/:root,\[data-scheme="neutral"\]/g, '[data-scheme="neutral"]')
css = css.replace(/\[data-scheme="macaw"\]/g, ':root,[data-scheme="macaw"]')
css = css.replace(/\[data-mode=/g, '[data-themes*=')

fs.mkdirSync("css", { recursive: true });
fs.writeFileSync(DEST, css);
fs.mkdirSync('css', { recursive: true })
fs.writeFileSync(DEST, css)

console.log("✔ ODS tokens fixed");
process.stdout.write('✔ ODS tokens fixed\n')
2 changes: 1 addition & 1 deletion src/js/filessettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ window.addEventListener('DOMContentLoaded', () => {
const entrySettings = document.querySelector('.app-navigation-entry__settings')
if (!entrySettings) return

let anchor = document.createElement('div')
const anchor = document.createElement('div')
anchor.id = 'storage-quota-app'
entrySettings.appendChild(anchor)

Expand Down
Loading