mirror of
https://github.com/He4eT/elseifplayer.git
synced 2026-05-04 17:07:22 +00:00
Status: extract styles
This commit is contained in:
parent
ae9d57fe44
commit
3062140352
4 changed files with 21 additions and 23 deletions
|
|
@ -1,7 +1,9 @@
|
|||
import { Link } from 'wouter-preact'
|
||||
|
||||
import * as s from './Status.module.scss'
|
||||
|
||||
const fail = (details) => (
|
||||
<div className='status fail'>
|
||||
<div className={[s.status, s.fail].join(' ')}>
|
||||
<h1>
|
||||
Error
|
||||
</h1>
|
||||
|
|
@ -22,7 +24,7 @@ const fail = (details) => (
|
|||
)
|
||||
|
||||
const loading = (details) => (
|
||||
<div className='status loading'>
|
||||
<div className={[s.status, s.loading].join(' ')}>
|
||||
{details.map((x) => (<div key={x}>{x}</div>))}
|
||||
</div>
|
||||
)
|
||||
|
|
|
|||
17
src/components/Player/Status/Status.module.scss
Normal file
17
src/components/Player/Status/Status.module.scss
Normal file
|
|
@ -0,0 +1,17 @@
|
|||
@keyframes dots0123 {
|
||||
0% { content: ''; }
|
||||
33% { content: '.'; }
|
||||
66% { content: '..'; }
|
||||
100% { content: '...'; }
|
||||
}
|
||||
|
||||
.status {
|
||||
padding: var(--inner-padding);
|
||||
word-break: break-word;
|
||||
|
||||
&.loading > div:after {
|
||||
animation: dots0123 1s infinite;
|
||||
content: '';
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -111,19 +111,3 @@
|
|||
.ifplayer .output .textBuffer .message.subheader {
|
||||
color: var(--accent-color);
|
||||
}
|
||||
|
||||
.status {
|
||||
padding: var(--inner-padding);
|
||||
}
|
||||
|
||||
.status.loading > div:after {
|
||||
animation: dots0123 1s infinite;
|
||||
content: '';
|
||||
}
|
||||
|
||||
@keyframes dots0123 {
|
||||
0% { content: ''; }
|
||||
33% { content: '.'; }
|
||||
66% { content: '..'; }
|
||||
100% { content: '...'; }
|
||||
}
|
||||
|
|
|
|||
|
|
@ -45,8 +45,3 @@ html, body {
|
|||
max-width: 800px;
|
||||
}
|
||||
}
|
||||
|
||||
.status {
|
||||
padding: var(--inner-padding);
|
||||
word-break: break-word;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue