forked from AkkomaGang/akkoma-fe
better default pleroma shadows, matches original borders more closely
This commit is contained in:
parent
de88cfb94d
commit
017fa60a82
1 changed files with 10 additions and 10 deletions
|
@ -260,34 +260,34 @@ const generateRadii = (input) => {
|
||||||
const generateShadows = (input) => {
|
const generateShadows = (input) => {
|
||||||
const buttonInsetFakeBorders = [{
|
const buttonInsetFakeBorders = [{
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 101,
|
y: 1,
|
||||||
blur: 0,
|
blur: 0,
|
||||||
spread: -100,
|
spread: 0,
|
||||||
color: '#FFFFFF',
|
color: '#FFFFFF',
|
||||||
alpha: 0.2,
|
alpha: 0.2,
|
||||||
inset: true
|
inset: true
|
||||||
}, {
|
}, {
|
||||||
x: 0,
|
x: 0,
|
||||||
y: -101,
|
y: -1,
|
||||||
blur: 0,
|
blur: 0,
|
||||||
spread: -100,
|
spread: 0,
|
||||||
color: '#000000',
|
color: '#000000',
|
||||||
alpha: 0.2,
|
alpha: 0.2,
|
||||||
inset: true
|
inset: true
|
||||||
}]
|
}]
|
||||||
const inputInsetFakeBorders = [{
|
const inputInsetFakeBorders = [{
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 101,
|
y: 1,
|
||||||
blur: 0,
|
blur: 0,
|
||||||
spread: -100,
|
spread: 0,
|
||||||
color: '#000000',
|
color: '#000000',
|
||||||
alpha: 0.2,
|
alpha: 0.2,
|
||||||
inset: true
|
inset: true
|
||||||
}, {
|
}, {
|
||||||
x: 0,
|
x: 0,
|
||||||
y: -101,
|
y: -1,
|
||||||
blur: 0,
|
blur: 0,
|
||||||
spread: -100,
|
spread: 0,
|
||||||
color: '#FFFFFF',
|
color: '#FFFFFF',
|
||||||
alpha: 0.3,
|
alpha: 0.3,
|
||||||
inset: true
|
inset: true
|
||||||
|
@ -334,7 +334,7 @@ const generateShadows = (input) => {
|
||||||
color: '--faint',
|
color: '--faint',
|
||||||
alpha: 1
|
alpha: 1
|
||||||
}, ...buttonInsetFakeBorders],
|
}, ...buttonInsetFakeBorders],
|
||||||
input: [{
|
input: [...inputInsetFakeBorders, {
|
||||||
x: 0,
|
x: 0,
|
||||||
y: 0,
|
y: 0,
|
||||||
blur: 2,
|
blur: 2,
|
||||||
|
@ -342,7 +342,7 @@ const generateShadows = (input) => {
|
||||||
spread: 0,
|
spread: 0,
|
||||||
color: '#000000',
|
color: '#000000',
|
||||||
alpha: 1
|
alpha: 1
|
||||||
}, ...inputInsetFakeBorders],
|
}],
|
||||||
...(input.shadows || {})
|
...(input.shadows || {})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue