This commit is contained in:
syuilo 2021-07-27 21:37:32 +09:00
parent e965b57dc2
commit f220e4183f
11 changed files with 11 additions and 24 deletions

View file

@ -239,8 +239,7 @@ hr {
._panel { ._panel {
background: var(--panel); background: var(--panel);
border-radius: var(--radius); border-radius: var(--radius);
//border: var(--panelBorder); border: var(--panelBorder);
box-shadow: var(--panelShadow);
overflow: clip; overflow: clip;
} }
@ -357,7 +356,7 @@ hr {
._flat_ { ._flat_ {
--root-margin: 0px; --root-margin: 0px;
--baseContentWidth: 100%; --baseContentWidth: 100%;
--panelShadow: none; --panelBorder: none;
._block { ._block {
//border-top: solid 0.5px var(--divider); //border-top: solid 0.5px var(--divider);

View file

@ -26,8 +26,7 @@
panelHeaderBg: ':lighten<3<@panel', panelHeaderBg: ':lighten<3<@panel',
panelHeaderFg: '@fg', panelHeaderFg: '@fg',
panelHeaderDivider: 'rgba(0, 0, 0, 0)', panelHeaderDivider: 'rgba(0, 0, 0, 0)',
panelBorder: 'rgba(0, 0, 0, 0)', panelBorder: '" solid 1px var(--divider)',
panelShadow: '" 0 8px 24px rgba(0, 0, 0, 0.12)',
acrylicPanel: ':alpha<0.5<@panel', acrylicPanel: ':alpha<0.5<@panel',
shadow: 'rgba(0, 0, 0, 0.3)', shadow: 'rgba(0, 0, 0, 0.3)',
header: ':alpha<0.7<@panel', header: ':alpha<0.7<@panel',

View file

@ -26,8 +26,7 @@
panelHeaderBg: ':lighten<3<@panel', panelHeaderBg: ':lighten<3<@panel',
panelHeaderFg: '@fg', panelHeaderFg: '@fg',
panelHeaderDivider: 'rgba(0, 0, 0, 0)', panelHeaderDivider: 'rgba(0, 0, 0, 0)',
panelBorder: 'rgba(0, 0, 0, 0)', panelBorder: '" solid 1px var(--divider)',
panelShadow: '" 0 8px 24px rgb(21 43 75 / 8%)',
acrylicPanel: ':alpha<0.5<@panel', acrylicPanel: ':alpha<0.5<@panel',
shadow: 'rgba(0, 0, 0, 0.1)', shadow: 'rgba(0, 0, 0, 0.1)',
header: ':alpha<0.7<@panel', header: ':alpha<0.7<@panel',

View file

@ -39,8 +39,7 @@
navHoverFg: ':lighten<17<@fg', navHoverFg: ':lighten<17<@fg',
dateLabelFg: '@fg', dateLabelFg: '@fg',
inputBorder: '#959da2', inputBorder: '#959da2',
panelBorder: 'rgba(0, 0, 0, 0)', panelBorder: '" solid 1px var(--divider)',
panelShadow: '" 0 8px 24px rgba(0, 0, 0, 0.12)',
accentDarken: ':darken<10<@accent', accentDarken: ':darken<10<@accent',
acrylicPanel: ':alpha<0.5<@panel', acrylicPanel: ':alpha<0.5<@panel',
navIndicator: '@accent', navIndicator: '@accent',

View file

@ -11,7 +11,6 @@
panel: '#131313', panel: '#131313',
panelHeaderBg: '@panel', panelHeaderBg: '@panel',
panelHeaderDivider: '@divider', panelHeaderDivider: '@divider',
panelShadow: '" 0 8px 24px rgb(0 0 0 / 25%)',
shadow: 'rgba(255, 255, 255, 0.05)', shadow: 'rgba(255, 255, 255, 0.05)',
modalBg: 'rgba(255, 255, 255, 0.1)', modalBg: 'rgba(255, 255, 255, 0.1)',
messageBg: '#1d1d1d', messageBg: '#1d1d1d',

View file

@ -13,7 +13,6 @@
fgHighlighted: '#fff', fgHighlighted: '#fff',
divider: 'rgba(255, 255, 255, 0.14)', divider: 'rgba(255, 255, 255, 0.14)',
panel: '#2d2d2d', panel: '#2d2d2d',
panelShadow: '" 0 8px 24px rgb(0 0 0 / 25%)',
panelHeaderBg: '@panel', panelHeaderBg: '@panel',
panelHeaderDivider: '@divider', panelHeaderDivider: '@divider',
header: ':alpha<0.7<@panel', header: ':alpha<0.7<@panel',

View file

@ -13,7 +13,6 @@
fgHighlighted: '#fff', fgHighlighted: '#fff',
divider: 'rgba(255, 255, 255, 0.14)', divider: 'rgba(255, 255, 255, 0.14)',
panel: 'rgb(41, 43, 41)', panel: 'rgb(41, 43, 41)',
panelShadow: '" 0 8px 24px rgb(0 0 0 / 25%)',
infoFg: '@fg', infoFg: '@fg',
infoBg: '#333c3b', infoBg: '#333c3b',
navBg: '#141714', navBg: '#141714',

View file

@ -14,7 +14,6 @@
header: ':alpha<0.7<@panel', header: ':alpha<0.7<@panel',
navBg: '#fff', navBg: '#fff',
panel: '#fff', panel: '#fff',
panelShadow: '" 0 8px 24px rgb(21 43 75 / 8%)',
panelHeaderDivider: '@divider', panelHeaderDivider: '@divider',
messageBg: '#dedede', messageBg: '#dedede',
}, },

View file

@ -42,8 +42,7 @@
navHoverFg: ':darken<17<@fg', navHoverFg: ':darken<17<@fg',
dateLabelFg: '@fg', dateLabelFg: '@fg',
inputBorder: '#dae0e4', inputBorder: '#dae0e4',
panelBorder: 'rgba(0, 0, 0, 0)', panelBorder: '" solid 1px var(--divider)',
panelShadow: '" 0 8px 24px rgb(21 43 75 / 8%)',
accentDarken: ':darken<10<@accent', accentDarken: ':darken<10<@accent',
acrylicPanel: ':alpha<0.5<@panel', acrylicPanel: ':alpha<0.5<@panel',
navIndicator: '@accent', navIndicator: '@accent',

View file

@ -64,7 +64,7 @@ export default defineComponent({
<style lang="scss" scoped> <style lang="scss" scoped>
.wtdtxvec { .wtdtxvec {
--margin: 8px; --margin: 8px;
--panelShadow: none; --panelBorder: none;
padding: 0 var(--margin); padding: 0 var(--margin);
} }

View file

@ -143,7 +143,7 @@ export default defineComponent({
}, },
attachSticky(ref) { attachSticky(ref) {
const sticky = new StickySidebar(this.$refs[ref], this.$store.state.menuDisplay === 'top' ? 1 : 16, this.$store.state.menuDisplay === 'top' ? 60 : 0); // TODO: 60px const sticky = new StickySidebar(this.$refs[ref], this.$store.state.menuDisplay === 'top' ? 0 : 16, this.$store.state.menuDisplay === 'top' ? 60 : 0); // TODO: 60px
window.addEventListener('scroll', () => { window.addEventListener('scroll', () => {
sticky.calc(window.scrollY); sticky.calc(window.scrollY);
}, { passive: true }); }, { passive: true });
@ -230,8 +230,6 @@ export default defineComponent({
$widgets-hide-threshold: 1200px; $widgets-hide-threshold: 1200px;
$nav-icon-only-width: 78px; // TODO: $nav-icon-only-width: 78px; // TODO:
--panelShadow: 0 0 0 1px var(--divider);
// 100vh ... https://css-tricks.com/the-trick-to-viewport-units-on-mobile/ // 100vh ... https://css-tricks.com/the-trick-to-viewport-units-on-mobile/
min-height: calc(var(--vh, 1vh) * 100); min-height: calc(var(--vh, 1vh) * 100);
box-sizing: border-box; box-sizing: border-box;
@ -290,7 +288,6 @@ export default defineComponent({
width: 750px; width: 750px;
margin: 0 16px 0 0; margin: 0 16px 0 0;
background: var(--bg); background: var(--bg);
box-shadow: 0 0 0 1px var(--divider);
border-radius: 0; border-radius: 0;
--margin: 12px; --margin: 12px;
@ -321,7 +318,7 @@ export default defineComponent({
} }
> .widgets { > .widgets {
//--panelShadow: none; //--panelBorder: none;
width: 300px; width: 300px;
margin-top: 16px; margin-top: 16px;
@ -342,14 +339,13 @@ export default defineComponent({
--globalHeaderHeight: 60px; // TODO: 60px --globalHeaderHeight: 60px; // TODO: 60px
> .main { > .main {
margin-top: 1px; margin-top: 0;
border-radius: var(--radius); border-radius: var(--radius);
box-shadow: 0 0 0 1px var(--divider);
} }
> .widgets { > .widgets {
--stickyTop: var(--globalHeaderHeight); --stickyTop: var(--globalHeaderHeight);
margin-top: 1px; margin-top: 0;
} }
} }