aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2022-06-01 10:13:45 -0500
committerJP Dillingham <jp@dillingham.me>2022-06-01 10:13:45 -0500
commita1a2ab7961c2107e063e77020877d82e36c7c296 (patch)
treec557e52040734940b61e409a5d52487189930c0f /src
parentf6aad956a83155e8e89add7e24804d6b99ec4119 (diff)
downloadslskd-a1a2ab7961c2107e063e77020877d82e36c7c296.tar.gz
add small placeholder css
Diffstat (limited to 'src')
-rw-r--r--src/web/src/components/App.css15
-rw-r--r--src/web/src/components/Shared/PlaceholderSegment.js19
2 files changed, 25 insertions, 9 deletions
diff --git a/src/web/src/components/App.css b/src/web/src/components/App.css
index 9c06bf34..78b029b8 100644
--- a/src/web/src/components/App.css
+++ b/src/web/src/components/App.css
@@ -101,10 +101,23 @@ body {
line-height: 1.15 !important;
}
-.placeholder-segment {
+.placeholder-segment, .placeholder-segment-small {
opacity: .25;
}
+.placeholder-segment-small {
+ min-height: 6rem !important;
+}
+
+.placeholder-segment-small > .ui.icon.header {
+ font-size: 1em !important;
+}
+
+.placeholder-segment-small > .ui.icon.header > i {
+ font-size: 2em !important;
+}
+
+
.menu-icon-group {
font-size: 1.71428571em !important;
margin: 0 auto .5rem !important;
diff --git a/src/web/src/components/Shared/PlaceholderSegment.js b/src/web/src/components/Shared/PlaceholderSegment.js
index 0307b9e0..31ac8e9e 100644
--- a/src/web/src/components/Shared/PlaceholderSegment.js
+++ b/src/web/src/components/Shared/PlaceholderSegment.js
@@ -2,13 +2,16 @@ import React from 'react';
import { Segment, Header, Icon } from 'semantic-ui-react';
-const PlaceholderSegment = ({ icon, caption, ...rest }) => (
- <Segment className='placeholder-segment' placeholder basic {...rest}>
- <Header icon>
- <Icon name={icon}/>
- {caption}
- </Header>
- </Segment>
-);
+const PlaceholderSegment = ({ icon, caption, size, ...rest }) => {
+ const className = size === 'small' ? 'placeholder-segment-small' : 'placeholder-segment';
+
+ return (
+ <Segment className={className} placeholder basic {...rest}>
+ <Header icon>
+ <Icon name={icon}/>
+ {caption}
+ </Header>
+ </Segment>);
+};
export default PlaceholderSegment; \ No newline at end of file