wishthis/semantic/dist/components/statistic.css

587 lines
13 KiB
CSS
Raw Normal View History

2022-01-13 13:00:31 +00:00
/*!
2023-08-17 09:47:40 +00:00
* # Fomantic-UI 2.9.2 - Statistic
* https://github.com/fomantic/Fomantic-UI/
2022-01-13 13:00:31 +00:00
*
*
* Released under the MIT license
2023-08-17 09:47:40 +00:00
* https://opensource.org/licenses/MIT
2022-01-13 13:00:31 +00:00
*
*/
/*******************************
Statistic
*******************************/
/* Standalone */
.ui.statistic {
display: inline-flex;
2023-08-17 09:47:40 +00:00
flex-direction: column;
2022-01-13 13:00:31 +00:00
margin: 1em 0;
max-width: none;
}
.ui.statistic + .ui.statistic {
margin: 0 0 0 1.5em;
}
.ui.statistic:first-child {
margin-top: 0;
}
.ui.statistic:last-child {
margin-bottom: 0;
}
/*******************************
Group
*******************************/
/* Grouped */
.ui.statistics {
display: flex;
2023-08-17 09:47:40 +00:00
align-items: flex-start;
flex-wrap: wrap;
2022-01-13 13:00:31 +00:00
}
.ui.statistics > .statistic {
display: inline-flex;
2023-08-17 09:47:40 +00:00
flex: 0 1 auto;
flex-direction: column;
2022-01-13 13:00:31 +00:00
margin: 0 1.5em 1em;
max-width: none;
}
.ui.statistics {
display: flex;
margin: 1em -1.5em -1em;
}
/* Clearing */
2022-08-05 09:25:53 +00:00
.ui.statistics::after {
2022-01-13 13:00:31 +00:00
display: block;
2023-08-17 09:47:40 +00:00
content: " ";
2022-01-13 13:00:31 +00:00
height: 0;
clear: both;
overflow: hidden;
visibility: hidden;
}
.ui.statistics:first-child {
margin-top: 0;
}
/*******************************
Content
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Value
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.statistics .statistic > .value,
.ui.statistic > .value {
2022-09-22 08:15:11 +00:00
font-family: 'Raleway', sans-serif;
2022-01-13 13:00:31 +00:00
font-size: 4rem;
font-weight: normal;
line-height: 1em;
2023-08-17 09:47:40 +00:00
color: #1b1c1d;
2022-01-13 13:00:31 +00:00
text-transform: uppercase;
text-align: center;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Label
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.statistics .statistic > .label,
.ui.statistic > .label {
2022-01-13 13:27:51 +00:00
font-family: 'Raleway', sans-serif;
2022-01-13 13:00:31 +00:00
font-size: 1em;
font-weight: bold;
color: rgba(0, 0, 0, 0.87);
text-transform: uppercase;
text-align: center;
}
/* Top Label */
.ui.statistics .statistic > .label ~ .value,
.ui.statistic > .label ~ .value {
margin-top: 0;
}
/* Bottom Label */
.ui.statistics .statistic > .value ~ .label,
.ui.statistic > .value ~ .label {
margin-top: 0;
}
/*******************************
Types
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Icon Value
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.statistics .statistic > .value > i.icon,
.ui.statistic > .value > i.icon {
opacity: 1;
width: auto;
margin: 0;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Text Value
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.statistics .statistic > .text.value,
.ui.statistic > .text.value {
line-height: 1em;
min-height: 2em;
font-weight: bold;
text-align: center;
}
.ui.statistics .statistic > .text.value + .label,
.ui.statistic > .text.value + .label {
text-align: center;
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Image Value
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.statistics .statistic > .value img,
.ui.statistic > .value img {
max-height: 3rem;
vertical-align: baseline;
}
/*******************************
Variations
*******************************/
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Count
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.ten.statistics {
margin: 0 0 -1em;
}
.ui.ten.statistics .statistic {
min-width: 10%;
margin: 0 0 1em;
}
.ui.nine.statistics {
margin: 0 0 -1em;
}
.ui.nine.statistics .statistic {
min-width: 11.11111111%;
margin: 0 0 1em;
}
.ui.eight.statistics {
margin: 0 0 -1em;
}
.ui.eight.statistics .statistic {
min-width: 12.5%;
margin: 0 0 1em;
}
.ui.seven.statistics {
margin: 0 0 -1em;
}
.ui.seven.statistics .statistic {
min-width: 14.28571429%;
margin: 0 0 1em;
}
.ui.six.statistics {
margin: 0 0 -1em;
}
.ui.six.statistics .statistic {
min-width: 16.66666667%;
margin: 0 0 1em;
}
.ui.five.statistics {
margin: 0 0 -1em;
}
.ui.five.statistics .statistic {
min-width: 20%;
margin: 0 0 1em;
}
.ui.four.statistics {
margin: 0 0 -1em;
}
.ui.four.statistics .statistic {
min-width: 25%;
margin: 0 0 1em;
}
.ui.three.statistics {
margin: 0 0 -1em;
}
.ui.three.statistics .statistic {
min-width: 33.33333333%;
margin: 0 0 1em;
}
.ui.two.statistics {
margin: 0 0 -1em;
}
.ui.two.statistics .statistic {
min-width: 50%;
margin: 0 0 1em;
}
.ui.one.statistics {
margin: 0 0 -1em;
}
.ui.one.statistics .statistic {
min-width: 100%;
margin: 0 0 1em;
}
2023-08-17 09:47:40 +00:00
.ui.fluid.statistic {
width: 100%;
}
2022-01-13 13:00:31 +00:00
2023-08-17 09:47:40 +00:00
/* --------------
Horizontal
--------------- */
2022-01-13 13:00:31 +00:00
.ui.horizontal.statistic {
2023-08-17 09:47:40 +00:00
flex-direction: row;
align-items: center;
2022-01-13 13:00:31 +00:00
}
.ui.horizontal.statistics {
2023-08-17 09:47:40 +00:00
flex-direction: column;
2022-01-13 13:00:31 +00:00
margin: 0;
max-width: none;
}
.ui.horizontal.statistics .statistic {
2023-08-17 09:47:40 +00:00
flex-direction: row;
align-items: center;
2022-01-13 13:00:31 +00:00
max-width: none;
margin: 1em 0;
}
.ui.horizontal.statistic > .text.value,
.ui.horizontal.statistics > .statistic > .text.value {
min-height: 0 !important;
}
.ui.horizontal.statistics .statistic > .value > i.icon,
.ui.horizontal.statistic > .value > i.icon {
width: 1.18em;
}
.ui.horizontal.statistics .statistic > .value,
.ui.horizontal.statistic > .value {
display: inline-block;
vertical-align: middle;
}
.ui.horizontal.statistics .statistic > .label,
.ui.horizontal.statistic > .label {
display: inline-block;
vertical-align: middle;
margin: 0 0 0 0.75em;
}
2023-08-17 09:47:40 +00:00
/* --------------
Inverted
--------------- */
2022-01-13 13:00:31 +00:00
.ui.inverted.statistics .statistic > .value,
.ui.inverted.statistic .value {
2023-08-17 09:47:40 +00:00
color: #fff;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.statistics .statistic > .label,
.ui.inverted.statistic .label {
color: rgba(255, 255, 255, 0.9);
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Colors
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
.ui.primary.statistics .statistic > .value,
.ui.statistics .primary.statistic > .value,
.ui.primary.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #6435c9;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.primary.statistics .statistic > .value,
.ui.statistics .inverted.primary.statistic > .value,
.ui.inverted.primary.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #a291fb;
2022-01-13 13:00:31 +00:00
}
.ui.secondary.statistics .statistic > .value,
.ui.statistics .secondary.statistic > .value,
.ui.secondary.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #1b1c1d;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.secondary.statistics .statistic > .value,
.ui.statistics .inverted.secondary.statistic > .value,
.ui.inverted.secondary.statistic > .value {
color: #545454;
}
.ui.red.statistics .statistic > .value,
.ui.statistics .red.statistic > .value,
.ui.red.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #db2828;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.red.statistics .statistic > .value,
.ui.statistics .inverted.red.statistic > .value,
.ui.inverted.red.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #ff695e;
2022-01-13 13:00:31 +00:00
}
.ui.orange.statistics .statistic > .value,
.ui.statistics .orange.statistic > .value,
.ui.orange.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #f2711c;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.orange.statistics .statistic > .value,
.ui.statistics .inverted.orange.statistic > .value,
.ui.inverted.orange.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #ff851b;
2022-01-13 13:00:31 +00:00
}
.ui.yellow.statistics .statistic > .value,
.ui.statistics .yellow.statistic > .value,
.ui.yellow.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #fbbd08;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.yellow.statistics .statistic > .value,
.ui.statistics .inverted.yellow.statistic > .value,
.ui.inverted.yellow.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #ffe21f;
2022-01-13 13:00:31 +00:00
}
.ui.olive.statistics .statistic > .value,
.ui.statistics .olive.statistic > .value,
.ui.olive.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #b5cc18;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.olive.statistics .statistic > .value,
.ui.statistics .inverted.olive.statistic > .value,
.ui.inverted.olive.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #d9e778;
2022-01-13 13:00:31 +00:00
}
.ui.green.statistics .statistic > .value,
.ui.statistics .green.statistic > .value,
.ui.green.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #21ba45;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.green.statistics .statistic > .value,
.ui.statistics .inverted.green.statistic > .value,
.ui.inverted.green.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #2ecc40;
2022-01-13 13:00:31 +00:00
}
.ui.teal.statistics .statistic > .value,
.ui.statistics .teal.statistic > .value,
.ui.teal.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #00b5ad;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.teal.statistics .statistic > .value,
.ui.statistics .inverted.teal.statistic > .value,
.ui.inverted.teal.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #6dffff;
2022-01-13 13:00:31 +00:00
}
.ui.blue.statistics .statistic > .value,
.ui.statistics .blue.statistic > .value,
.ui.blue.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #2185d0;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.blue.statistics .statistic > .value,
.ui.statistics .inverted.blue.statistic > .value,
.ui.inverted.blue.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #54c8ff;
2022-01-13 13:00:31 +00:00
}
.ui.violet.statistics .statistic > .value,
.ui.statistics .violet.statistic > .value,
.ui.violet.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #6435c9;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.violet.statistics .statistic > .value,
.ui.statistics .inverted.violet.statistic > .value,
.ui.inverted.violet.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #a291fb;
2022-01-13 13:00:31 +00:00
}
.ui.purple.statistics .statistic > .value,
.ui.statistics .purple.statistic > .value,
.ui.purple.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #a333c8;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.purple.statistics .statistic > .value,
.ui.statistics .inverted.purple.statistic > .value,
.ui.inverted.purple.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #dc73ff;
2022-01-13 13:00:31 +00:00
}
.ui.pink.statistics .statistic > .value,
.ui.statistics .pink.statistic > .value,
.ui.pink.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #e03997;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.pink.statistics .statistic > .value,
.ui.statistics .inverted.pink.statistic > .value,
.ui.inverted.pink.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #ff8edf;
2022-01-13 13:00:31 +00:00
}
.ui.brown.statistics .statistic > .value,
.ui.statistics .brown.statistic > .value,
.ui.brown.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #a5673f;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.brown.statistics .statistic > .value,
.ui.statistics .inverted.brown.statistic > .value,
.ui.inverted.brown.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #d67c1c;
2022-01-13 13:00:31 +00:00
}
.ui.grey.statistics .statistic > .value,
.ui.statistics .grey.statistic > .value,
.ui.grey.statistic > .value {
color: #767676;
}
.ui.inverted.grey.statistics .statistic > .value,
.ui.statistics .inverted.grey.statistic > .value,
.ui.inverted.grey.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #dcddde;
2022-01-13 13:00:31 +00:00
}
.ui.black.statistics .statistic > .value,
.ui.statistics .black.statistic > .value,
.ui.black.statistic > .value {
2023-08-17 09:47:40 +00:00
color: #1b1c1d;
2022-01-13 13:00:31 +00:00
}
.ui.inverted.black.statistics .statistic > .value,
.ui.statistics .inverted.black.statistic > .value,
.ui.inverted.black.statistic > .value {
color: #545454;
}
2023-08-17 09:47:40 +00:00
/* --------------
Floated
--------------- */
2022-01-13 13:00:31 +00:00
.ui[class*="left floated"].statistic {
float: left;
margin: 0 2em 1em 0;
}
.ui[class*="right floated"].statistic {
float: right;
margin: 0 0 1em 2em;
}
.ui.floated.statistic:last-child {
margin-bottom: 0;
}
2023-08-17 09:47:40 +00:00
/* --------------
Stackable
--------------- */
2022-02-25 15:21:56 +00:00
@media only screen and (max-width: 767.98px) {
2022-01-13 13:00:31 +00:00
.ui.stackable.statistics {
width: auto;
margin-left: 0 !important;
margin-right: 0 !important;
}
.ui.stackable.statistics > .statistic {
width: 100% !important;
2023-08-17 09:47:40 +00:00
margin: 0 !important;
2022-01-13 13:00:31 +00:00
padding: 1rem 1rem !important;
}
}
2023-08-17 09:47:40 +00:00
/* --------------
2022-01-13 13:00:31 +00:00
Sizes
2023-08-17 09:47:40 +00:00
--------------- */
2022-01-13 13:00:31 +00:00
/* Medium */
.ui.statistics .statistic > .value,
.ui.statistic > .value {
font-size: 4rem;
}
.ui.horizontal.statistics .statistic > .value,
.ui.horizontal.statistic > .value {
font-size: 3rem;
}
.ui.statistics .statistic > .text.value,
.ui.statistic > .text.value {
font-size: 2rem;
}
.ui.mini.statistics .statistic > .value,
.ui.mini.statistic > .value {
font-size: 1.5rem;
}
.ui.mini.horizontal.statistics .statistic > .value,
.ui.mini.horizontal.statistic > .value {
font-size: 1.5rem;
}
.ui.mini.statistics .statistic > .text.value,
.ui.mini.statistic > .text.value {
font-size: 1rem;
}
.ui.tiny.statistics .statistic > .value,
.ui.tiny.statistic > .value {
font-size: 2rem;
}
.ui.tiny.horizontal.statistics .statistic > .value,
.ui.tiny.horizontal.statistic > .value {
font-size: 2rem;
}
.ui.tiny.statistics .statistic > .text.value,
.ui.tiny.statistic > .text.value {
font-size: 1rem;
}
.ui.small.statistics .statistic > .value,
.ui.small.statistic > .value {
font-size: 3rem;
}
.ui.small.horizontal.statistics .statistic > .value,
.ui.small.horizontal.statistic > .value {
font-size: 2rem;
}
.ui.small.statistics .statistic > .text.value,
.ui.small.statistic > .text.value {
font-size: 1rem;
}
.ui.large.statistics .statistic > .value,
.ui.large.statistic > .value {
font-size: 5rem;
}
.ui.large.horizontal.statistics .statistic > .value,
.ui.large.horizontal.statistic > .value {
font-size: 4rem;
}
.ui.large.statistics .statistic > .text.value,
.ui.large.statistic > .text.value {
font-size: 2.5rem;
}
.ui.big.statistics .statistic > .value,
.ui.big.statistic > .value {
font-size: 5.5rem;
}
.ui.big.horizontal.statistics .statistic > .value,
.ui.big.horizontal.statistic > .value {
font-size: 4.5rem;
}
.ui.big.statistics .statistic > .text.value,
.ui.big.statistic > .text.value {
font-size: 2.5rem;
}
.ui.huge.statistics .statistic > .value,
.ui.huge.statistic > .value {
font-size: 6rem;
}
.ui.huge.horizontal.statistics .statistic > .value,
.ui.huge.horizontal.statistic > .value {
font-size: 5rem;
}
.ui.huge.statistics .statistic > .text.value,
.ui.huge.statistic > .text.value {
font-size: 2.5rem;
}
.ui.massive.statistics .statistic > .value,
.ui.massive.statistic > .value {
font-size: 7rem;
}
.ui.massive.horizontal.statistics .statistic > .value,
.ui.massive.horizontal.statistic > .value {
font-size: 6rem;
}
.ui.massive.statistics .statistic > .text.value,
.ui.massive.statistic > .text.value {
font-size: 3rem;
}
/*******************************
Theme Overrides
*******************************/
/*******************************
User Variable Overrides
*******************************/