simplify css
This commit is contained in:
65
index.css
65
index.css
@@ -1,30 +1,9 @@
|
|||||||
.clearfix:before,
|
|
||||||
.clearfix:after {
|
|
||||||
content: '';
|
|
||||||
display: table
|
|
||||||
}
|
|
||||||
.clearfix:after {
|
|
||||||
clear: both
|
|
||||||
}
|
|
||||||
.drag-layer {
|
|
||||||
display: none;
|
|
||||||
position: fixed;
|
|
||||||
top: 0;
|
|
||||||
left: 0;
|
|
||||||
right: 0;
|
|
||||||
bottom: 0;
|
|
||||||
background: rgba(0, 0, 0, 0.5);
|
|
||||||
}
|
|
||||||
body.drag .drag-layer {
|
|
||||||
display: block
|
|
||||||
}
|
|
||||||
*,
|
*,
|
||||||
*:after,
|
*:after,
|
||||||
*:before {
|
*:before {
|
||||||
-webkit-box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
-moz-box-sizing: border-box;
|
|
||||||
box-sizing: border-box
|
|
||||||
}
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
@@ -32,70 +11,82 @@ body {
|
|||||||
height: 100%;
|
height: 100%;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
font-family: -apple-system, 'Helvetica Neue', Helvetica, sans-serif;
|
font-family: -apple-system, 'Helvetica Neue', Helvetica, sans-serif;
|
||||||
|
-webkit-user-select: none;
|
||||||
|
-webkit-app-region: drag;
|
||||||
}
|
}
|
||||||
body {
|
|
||||||
font-family: sans-serif;
|
body.drag .drag-layer {
|
||||||
|
display: block
|
||||||
}
|
}
|
||||||
|
|
||||||
body.drag::before {
|
body.drag::before {
|
||||||
content: '';
|
content: '';
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 0;
|
top: 0;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: 0;
|
bottom: 0;
|
||||||
right: 0;
|
right: 0;
|
||||||
background: rgba(255, 0, 0, 0.3);
|
background: rgba(255, 0, 0, 0.3);
|
||||||
border: 5px #f00 dashed;
|
border: 5px #f00 dashed;
|
||||||
}
|
}
|
||||||
|
|
||||||
main {
|
main {
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
label {
|
label {
|
||||||
margin-right: 10px;
|
margin-right: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input,
|
input,
|
||||||
button {
|
button {
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
input[name=torrentId] {
|
input[name=torrentId] {
|
||||||
width: 400px;
|
width: 400px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log,
|
.log,
|
||||||
.speed {
|
.speed {
|
||||||
font-family: monospace;
|
font-family: monospace;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.speed:not(:empty) {
|
.speed:not(:empty) {
|
||||||
padding: 20px;
|
padding: 20px;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
background: #eee;
|
background: #eee;
|
||||||
}
|
}
|
||||||
|
|
||||||
.log p {
|
.log p {
|
||||||
margin: 0;
|
margin: 0;
|
||||||
}
|
}
|
||||||
footer {
|
|
||||||
font-size: .8em;
|
|
||||||
margin: 30px 0;
|
|
||||||
}
|
|
||||||
video,
|
video,
|
||||||
img,
|
img,
|
||||||
audio,
|
audio,
|
||||||
iframe {
|
iframe {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
video,
|
video,
|
||||||
img,
|
img,
|
||||||
audio {
|
audio {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
margin: 10px 0;
|
margin: 10px 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
video {
|
video {
|
||||||
min-width: 480px;
|
min-width: 480px;
|
||||||
min-height: 270px;
|
min-height: 270px;
|
||||||
}
|
}
|
||||||
|
|
||||||
audio {
|
audio {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
}
|
}
|
||||||
|
|
||||||
iframe {
|
iframe {
|
||||||
width: 1000px;
|
width: 1000px;
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
|
|||||||
Reference in New Issue
Block a user