From a1a2ab7961c2107e063e77020877d82e36c7c296 Mon Sep 17 00:00:00 2001 From: JP Dillingham Date: Wed, 1 Jun 2022 10:13:45 -0500 Subject: add small placeholder css --- src/web/src/components/App.css | 15 ++++++++++++++- src/web/src/components/Shared/PlaceholderSegment.js | 19 +++++++++++-------- 2 files changed, 25 insertions(+), 9 deletions(-) (limited to 'src') 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 }) => ( - -
- - {caption} -
-
-); +const PlaceholderSegment = ({ icon, caption, size, ...rest }) => { + const className = size === 'small' ? 'placeholder-segment-small' : 'placeholder-segment'; + + return ( + +
+ + {caption} +
+
); +}; export default PlaceholderSegment; \ No newline at end of file -- cgit v1.2.3