Skip to content
Snippets Groups Projects
Commit ef513c7c authored by Julientaq's avatar Julientaq
Browse files

Styling dashboard

Styles for the dashboard. Would be better to have a `idle` class for the icon for example.
parent 4be1832b
No related branches found
No related tags found
No related merge requests found
.root { .root {
display: inline-flex; display: inline-flex;
align-items: center; align-items: center;
border: 1px solid #eee; background: lightgrey;
border-radius: 2px; background: linear-gradient(#fff 0, #fff 1.1em, grey 1.1em, grey 1.15em, #fff 1.15em, #fff 2em);
font-size: 0.8rem; font-size: 0.8rem;
margin-right: 1em;
padding-bottom: 1em;
color: inherit;
} }
.count { .count {
background: white; border-radius: 50%;
padding: 5px; text-align: center;
font-weight: 600;
color: grey;
font-size: 1em;
padding-right: 0.5em;
} }
.label { .label {
display: inline-block; display: inline-block;
background: #eee; padding: 0;
padding: 5px; text-shadow: 0.05em 0.05em 0 #fff, -0.05em -0.05em 0 #fff, -0.05em 0.05em 0 #fff, 0.05em -0.05em 0 #fff;
} }
...@@ -9,7 +9,8 @@ A plural form of the label can be provided. ...@@ -9,7 +9,8 @@ A plural form of the label can be provided.
```js ```js
<div> <div>
<Badge count={1} label="thing" plural="things"/> <Badge count={1} label="thing" plural="things"/>
<Badge count={10} label="thing" plural="things"/> <Badge count={99} label="thing" plural="things"/>
<Badge count={0} label="thing" plural="things"/> <Badge count={0} label="thing" plural="things"/>
<Badge count={299} label="thing" plural="things"/>
</div> </div>
``` ```
...@@ -31,16 +31,17 @@ ...@@ -31,16 +31,17 @@
outline: 1px solid transparent; outline: 1px solid transparent;
} }
&::after { // this will be added to the button that need a feedback to the user.
content: "Saved!"; // &::after {
top: 20%; // content: "Saved!";
left: 115%; // top: 20%;
position: absolute; // left: 115%;
background: var(--color-primary); // position: absolute;
color: white; // background: var(--color-primary);
padding: 0.1em 0.3em; // color: white;
opacity: 0; // padding: 0.1em 0.3em;
} // opacity: 0;
// }
&:active { &:active {
transform: scale(0.8); transform: scale(0.8);
......
.messages { .messages {
// color: white;
margin-top: 10px; margin-top: 10px;
font-style: italic; font-style: italic;
display: inline-block; display: inline-block;
...@@ -12,7 +12,7 @@ ...@@ -12,7 +12,7 @@
.error, .error,
.warning { .warning {
font-size: 0.9em; // padding: 0.3em 0.5em; font-size: 0.9em;
letter-spacing: 0.01em; letter-spacing: 0.01em;
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment