better default pleroma shadows, matches original borders more closely

This commit is contained in:
Henry Jameson 2018-11-21 21:32:51 +03:00
parent de88cfb94d
commit 017fa60a82

View file

@ -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 || {})
} }