From 8d79da2202b0f0ea7b56253654dbc6d7e26c5bc8 Mon Sep 17 00:00:00 2001 From: Er2 Date: Sun, 7 Aug 2022 14:16:34 +0300 Subject: [PATCH] move fixes --- src/fixes.less | 6 ++++++ src/func.less | 16 ++++++++++++++++ src/profile.less | 6 ------ src/settings.less | 16 ---------------- 4 files changed, 22 insertions(+), 22 deletions(-) diff --git a/src/fixes.less b/src/fixes.less index 24bd659..985d72c 100644 --- a/src/fixes.less +++ b/src/fixes.less @@ -91,3 +91,9 @@ div.inlineMediaEmbed-1m3ApS { position: fixed; } +div.container-YkUktl div.avatarWrapper-1B9FTW { + margin-right: auto; // make some space after avatar (sidebar at bottom) + min-width: unset; + padding: unset; +} + diff --git a/src/func.less b/src/func.less index 53ee288..3ed5b69 100644 --- a/src/func.less +++ b/src/func.less @@ -44,6 +44,22 @@ vertical-align: top; } +.horiz-tab(@cols: 2) { + @gap: @div-width * 2; + @el-width: calc(100% / @cols - @gap); + display: flex; + flex-flow: row wrap; + column-gap: @gap; + row-gap: (@gap / 2); + & > * { + width: @el-width; + } + + div[class^="divider"]:empty { + display: none; + } +} + .verify(@id) { div.message-2CShn3 img.avatar-2e8lTP[src*="/@{id}/"] + .header-2jRmjb > .headerText-2z4IhQ::after { .bot('✓DEV', 16px); } diff --git a/src/profile.less b/src/profile.less index 909158a..056a2e9 100644 --- a/src/profile.less +++ b/src/profile.less @@ -92,12 +92,6 @@ div[class^="banner"] { } } -div.container-YkUktl div.avatarWrapper-1B9FTW { - margin-right: auto; // make some space after avatar (sidebar at bottom) - min-width: unset; - padding: unset; -} - // Redesigned profile page header div[class^="nameTagWithCustomStatus-"], header div[class^="nameTagNoCustomStatus-"] { diff --git a/src/settings.less b/src/settings.less index 333e56f..7950215 100644 --- a/src/settings.less +++ b/src/settings.less @@ -61,22 +61,6 @@ div[aria-controls="analytics-tab"], div[aria-controls="partner-tab"], { &:extend(.hide); } -.horiz-tab(@cols: 2) { - @gap: @div-width * 2; - @el-width: calc(100% / @cols - @gap); - display: flex; - flex-flow: row wrap; - column-gap: @gap; - row-gap: (@gap / 2); - & > * { - width: @el-width; - } - - div[class^="divider"]:empty { - display: none; - } -} - #my-account-tab > div { .horiz-tab(); & > div:first-child {