mirror of
https://github.com/owncast/owncast.git
synced 2024-10-10 19:16:02 +00:00
Fix some styling
This commit is contained in:
parent
67cec2dcbb
commit
de4ed9bb62
@ -18,23 +18,33 @@ export function Color(props) {
|
|||||||
};
|
};
|
||||||
|
|
||||||
const colorBlockStyle = {
|
const colorBlockStyle = {
|
||||||
|
display: 'flex',
|
||||||
|
justifyContent: 'center',
|
||||||
|
alignItems: 'center',
|
||||||
|
textShadow: '0 0 15px black',
|
||||||
height: '70%',
|
height: '70%',
|
||||||
width: '100%',
|
width: '100%',
|
||||||
backgroundColor: resolvedColor,
|
backgroundColor: resolvedColor,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const colorTextStyle = {
|
||||||
|
color: 'white',
|
||||||
|
alignText: 'center',
|
||||||
|
};
|
||||||
|
|
||||||
const colorDescriptionStyle = {
|
const colorDescriptionStyle = {
|
||||||
margin: '5px',
|
margin: '5px',
|
||||||
color: 'gray',
|
color: 'gray',
|
||||||
fontSize: '0.8em',
|
fontSize: '0.9vw',
|
||||||
|
textAlign: 'center' as 'center',
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<figure style={containerStyle}>
|
<figure style={containerStyle}>
|
||||||
<div style={colorBlockStyle} />
|
<div style={colorBlockStyle}>
|
||||||
<figcaption>
|
<div style={colorTextStyle}>{resolvedColor}</div>
|
||||||
<span style={colorDescriptionStyle}>{color}</span>
|
</div>
|
||||||
</figcaption>
|
<figcaption style={colorDescriptionStyle}>{color}</figcaption>
|
||||||
</figure>
|
</figure>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -47,7 +57,6 @@ const rowStyle = {
|
|||||||
display: 'flex',
|
display: 'flex',
|
||||||
flexDirection: 'row' as 'row',
|
flexDirection: 'row' as 'row',
|
||||||
flexWrap: 'wrap' as 'wrap',
|
flexWrap: 'wrap' as 'wrap',
|
||||||
// justifyContent: 'space-around',
|
|
||||||
alignItems: 'center',
|
alignItems: 'center',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
@ -19,6 +19,9 @@ export const images = [
|
|||||||
|
|
||||||
# Images
|
# Images
|
||||||
|
|
||||||
|
## TODO: Determine the icon style/images for v2 of the web UI.
|
||||||
|
|
||||||
|
|
||||||
<ImageRow images={images} />
|
<ImageRow images={images} />
|
||||||
|
|
||||||
## App Icons
|
## App Icons
|
||||||
|
|||||||
@ -6,6 +6,8 @@ import { Canvas, Meta, Story } from '@storybook/addon-docs';
|
|||||||
|
|
||||||
[Inter font](https://rsms.me/inter/)
|
[Inter font](https://rsms.me/inter/)
|
||||||
|
|
||||||
|
## TODO: List out the different text styles.
|
||||||
|
|
||||||
<Canvas style={{ color: 'var(--theme-text-color-secondary)' }}>
|
<Canvas style={{ color: 'var(--theme-text-color-secondary)' }}>
|
||||||
{getComputedStyle(document.documentElement).getPropertyValue('--theme-font-family')}
|
{getComputedStyle(document.documentElement).getPropertyValue('--theme-font-family')}
|
||||||
</Canvas>
|
</Canvas>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user