amis-rpc-design/libs/amis/packages/office-viewer/examples/static/css/app.css

108 lines
1.5 KiB
CSS
Raw Normal View History

2023-10-07 19:42:30 +08:00
html,
body {
margin: 0;
padding: 0;
}
@font-face {
font-family: Wingdings;
src: url(/examples/static/font/wingding.ttf) format('truetype');
}
@font-face {
font-family: Symbol;
src: url(/examples/static/font/symbol.ttf) format('truetype');
}
/** 参考 bulma 的命名 */
.columns {
display: flex;
}
.column {
display: block;
flex-basis: 0;
flex-grow: 1;
flex-shrink: 1;
}
.file-list {
flex: none;
width: 100px;
padding-top: 4px;
padding-left: 4px;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.file {
cursor: pointer;
}
.file:hover {
color: hsl(217, 71%, 53%);
}
/* The switch - the box around the slider */
.switch {
position: relative;
display: inline-block;
width: 30px;
height: 18px;
}
/* Hide default HTML checkbox */
.switch input {
opacity: 0;
width: 0;
height: 0;
}
/* The slider */
.slider {
position: absolute;
cursor: pointer;
top: 0;
left: 0;
right: 0;
bottom: 0;
background-color: #ccc;
-webkit-transition: 0.4s;
transition: 0.4s;
}
.slider:before {
position: absolute;
content: '';
height: 16px;
width: 16px;
left: 1px;
bottom: 1px;
background-color: white;
-webkit-transition: 0.4s;
transition: 0.4s;
}
input:checked + .slider {
background-color: #2196f3;
}
input:focus + .slider {
box-shadow: 0 0 1px #2196f3;
}
input:checked + .slider:before {
-webkit-transform: translateX(12px);
transform: translateX(12px);
}
/* Rounded sliders */
.slider.round {
border-radius: 34px;
}
.slider.round:before {
border-radius: 50%;
}