index2.html: lay out css style to style2.css
This commit is contained in:
parent
0515812c4e
commit
60cf813056
|
@ -5,68 +5,7 @@
|
|||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
|
||||
<title>WebSocket</title>
|
||||
<style>
|
||||
body {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: 128px 1fr 1fr 32px;
|
||||
gap: 0 0;
|
||||
grid-auto-flow: row;
|
||||
grid-template-areas: "header" "playlist" "db" "footer";
|
||||
}
|
||||
|
||||
header {
|
||||
display: grid;
|
||||
grid-template-columns: 128px 1fr 1fr 1fr;
|
||||
grid-template-rows: 1fr;
|
||||
gap: 0 0;
|
||||
grid-auto-flow: row;
|
||||
grid-template-areas: "config playback-controls playlist-controls track-info";
|
||||
grid-area: header;
|
||||
}
|
||||
|
||||
section.playlist {
|
||||
grid-area: playlist;
|
||||
}
|
||||
|
||||
header .config {
|
||||
grid-area: config;
|
||||
}
|
||||
|
||||
header .playback-controls {
|
||||
grid-area: playback-controls;
|
||||
}
|
||||
|
||||
header .playlist-controls {
|
||||
grid-area: playlist-controls;
|
||||
}
|
||||
|
||||
header .track-info {
|
||||
grid-area: track-info;
|
||||
}
|
||||
|
||||
footer {
|
||||
grid-area: footer;
|
||||
}
|
||||
|
||||
section.db {
|
||||
display: grid;
|
||||
grid-template-columns: 0.7fr 1.3fr;
|
||||
grid-template-rows: 1fr;
|
||||
gap: 0 0;
|
||||
grid-auto-flow: row;
|
||||
grid-template-areas: "tabs result";
|
||||
grid-area: db;
|
||||
}
|
||||
|
||||
.db .tabs {
|
||||
grid-area: tabs;
|
||||
}
|
||||
|
||||
.db .result {
|
||||
grid-area: result;
|
||||
}
|
||||
</style>
|
||||
<link rel="stylesheet" type="text/css" href="style2.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
|
|
64
static/style2.css
Normal file
64
static/style2.css
Normal file
|
@ -0,0 +1,64 @@
|
|||
body {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr;
|
||||
grid-template-rows: 128px 1fr 1fr 32px;
|
||||
gap: 0 0;
|
||||
grid-auto-flow: row;
|
||||
grid-template-areas: "header" "playlist" "db" "footer";
|
||||
}
|
||||
|
||||
header {
|
||||
display: grid;
|
||||
grid-template-columns: 128px 1fr 1fr 1fr;
|
||||
grid-template-rows: 1fr;
|
||||
gap: 0 0;
|
||||
grid-auto-flow: row;
|
||||
grid-template-areas: "config playback-controls playlist-controls track-info";
|
||||
grid-area: header;
|
||||
}
|
||||
|
||||
div {
|
||||
border: dotted 1px;
|
||||
}
|
||||
|
||||
section.playlist {
|
||||
grid-area: playlist;
|
||||
}
|
||||
|
||||
header .config {
|
||||
grid-area: config;
|
||||
}
|
||||
|
||||
header .playback-controls {
|
||||
grid-area: playback-controls;
|
||||
}
|
||||
|
||||
header .playlist-controls {
|
||||
grid-area: playlist-controls;
|
||||
}
|
||||
|
||||
header .track-info {
|
||||
grid-area: track-info;
|
||||
}
|
||||
|
||||
footer {
|
||||
grid-area: footer;
|
||||
}
|
||||
|
||||
section.db {
|
||||
display: grid;
|
||||
grid-template-columns: 0.7fr 1.3fr;
|
||||
grid-template-rows: 1fr;
|
||||
gap: 0 0;
|
||||
grid-auto-flow: row;
|
||||
grid-template-areas: "tabs result";
|
||||
grid-area: db;
|
||||
}
|
||||
|
||||
.db .tabs {
|
||||
grid-area: tabs;
|
||||
}
|
||||
|
||||
.db .result {
|
||||
grid-area: result;
|
||||
}
|
Loading…
Reference in a new issue