Files
frost-navigation/docs/css/tool.css

219 lines
3.3 KiB
CSS

@charset "UTF-8";
* {
margin: 0;
padding: 0;
}
html {
scroll-behavior: smooth;
}
body {
padding: 20px 0 50px 0;
background-color: #F5F5F5;
scroll-behavior: smooth;
}
/* 滚动条 */
::-webkit-scrollbar {
height: 8px;
width: 8px;
}
::-webkit-scrollbar-thumb {
background: #999;
border-radius: 0;
}
::-webkit-scrollbar-track {
background: #eee;
border-radius: 0;
}
/* 选中 */
::selection {
background:#03A9F4;
color:#FFF;
}
::-moz-selection {
background:#03A9F4;
color:#FFF;
}
::-webkit-selection {
background:#03A9F4;
color:#FFF;
}
/* 主要 */
.main {
margin: 0 auto;
width: 90%;
max-width: 400px;
}
.main > div {
margin: 20px 0;
padding: 15px;
box-sizing: border-box;
width: 100%;
border-radius: 5px;
background-color: #FFF;
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}
.main > div header {
margin-bottom: 10px;
text-align: center;
font-size: 20px;
font-weight: bold;
}
.main > div input:focus {
outline: none;
}
.main > div textarea {
padding: 5px;
box-sizing: border-box;
width: 100%;
border: 1px solid #03A9F4;
box-shadow: 0 0 5px rgba(3, 169, 244, 0.2);
font-size: 14px;
}
.main > div textarea:focus {
outline: none;
}
.tool-button {
display: inline-block;
user-select: none;
padding: 5px 10px;
background-color: #03A9F4;
text-align: center;
font-size: 14px;
color: #FFF;
border-radius: 5px;
box-shadow: 2px 2px 5px rgba(3, 169, 244, 0.4);
transition: background 0.2s;
}
.tool-button:hover {
background-color: #2196F3;
}
/* 导航 */
.tool-nav ul li {
display: inline-block;
list-style: none;
}
.tool-nav ul li a {
display: block;
float: left;
padding: 5px 9px;
border-radius: 5px;
background-color: #4CAF50;
text-decoration: none;
font-size: 14px;
color: #FFF;
transition: background 0.2s;
}
.tool-nav ul li a:hover {
background-color: #8BC34A;
}
.tool-nav-link {
margin: 0 auto;
box-sizing: border-box;
width: 100%;
}
/* 计算 */
.tool-calculate textarea {
resize: vertical;
font-size: 16px;
}
.tool-calculate-tofixed {
width: 20px;
font-size: 14px;
}
.tool-calculate .tool-button {
margin: 5px 5px 2px 0;
}
/* 生成批量下载链接 */
.tool-genlink hr {
height: 0;
border: 0.5px solid #EEE;
}
.tool-genlink-link input {
margin-bottom: 10px;
padding: 0 2px;
height: 20px;
width: 80%;
border: 1px solid #03A9F4;
}
.tool-genlink-settings {
user-select: none;
font-size: 14px;
}
.tool-genlink-settings > div {
margin: 5px 0;
}
.tool-genlink-settings input[type="text"] {
width: 25px;
font-size: 14px;
}
.tool-genlink .tool-button {
margin: 10px 5px 10px 0;
}
.tool-genlink textarea {
resize: vertical;
font-size: 14px;
}
/* 运行 JavaScript */
.tool-runjs textarea {
resize: vertical;
font-family: monospace;
font-size: 14px;
}
.tool-runjs .tool-button {
margin: 5px 5px 0 0;
}
/* 返回顶部 */
.to-top {
position: fixed;
right: 20px;
bottom: 20px;
height: 40px;
width: 40px;
border-radius: 50%;
box-shadow: 2px 2px 5px rgba(76, 175, 80, 0.5);
background-color: #4CAF50;
text-align: center;
line-height: 36px;
font-size: 20px;
color: #FFF;
user-select: none;
}