Move CSS to its own file

This commit is contained in:
Mathias Rav
2021-05-09 21:34:47 +02:00
parent 0cee4b0ea5
commit 6d60095da8
2 changed files with 15 additions and 17 deletions

View File

@@ -21,23 +21,7 @@ pub enum MediaType {
Midi, Midi,
} }
// FIXME: This should be in its own .css file. static STYLE: &str = include_str!("style.css");
static STYLE: &str = "
.audio {
background: rgb(50,100,240);
color: black;
}
.video {
background: rgb(200,200,0);
color: black;
}
.midi {
background: rgb(200,0,50);
color: black;
}
";
mod imp { mod imp {
use super::*; use super::*;

14
src/style.css Normal file
View File

@@ -0,0 +1,14 @@
.audio {
background: rgb(50,100,240);
color: black;
}
.video {
background: rgb(200,200,0);
color: black;
}
.midi {
background: rgb(200,0,50);
color: black;
}