Files
2025-06-13 21:16:12 +08:00

238 lines
4.4 KiB
Plaintext

/**
* 这里是uni-app内置的常用样式变量
*
* uni-app 官方扩展插件及插件市场(https://ext.dcloud.net.cn)上很多三方插件均使用了这些样式变量
* 如果你是插件开发者,建议你使用scss预处理,并在插件代码中直接使用这些变量(无需 import 这个文件),方便用户通过搭积木的方式开发整体风格一致的App
*
*/
/**
* 如果你是App开发者(插件使用者),你可以通过修改这些变量来定制自己的插件主题,实现自定义主题功能
*
* 如果你的项目同样使用了scss预处理,你也可以直接在你的 scss 代码中使用如下变量,同时无需 import 这个文件
*/
/* 颜色变量 */
/* 水平间距 */
/* 水平间距 */
/* 行为相关颜色 */
/* 兼容 uni-ui 相关颜色 */
/* 文字基本颜色 */
/* 背景颜色 */
/* 边框颜色 */
/* 尺寸变量 */
/* 文字尺寸 */
/* 图片尺寸 */
/* Border Radius */
/* 水平间距 */
/* 垂直间距 */
/* 透明度 */
/* 文章场景相关 */
.header {
height: 60px;
width: 100%;
box-sizing: border-box;
border-bottom: 1px solid #ebebeb;
background-color: #fff;
color: #999;
}
.navbar {
font-size: 14px;
position: relative;
height: 100%;
padding: 0 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
min-width: 223px;
display: flex;
align-items: center;
}
.logo .logo-image {
width: 30px;
height: 30px;
}
.logo .logo-text {
margin-left: 8px;
}
.menu-icon {
width: 30px;
height: 30px;
line-height: 30px;
}
.navbar-middle,
.navbar-right {
flex: 1;
margin-right: 97px;
}
.navbar-right-item-gap {
margin-right: 30px;
}
.navbar-left {
display: flex;
}
@media screen and (max-width: 767px) {
.navbar-left {
flex: 1;
margin-right: 97px;
}
}
.navbar-middle,
.username {
display: flex;
align-items: center;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.navbar-middle {
text-align: center;
}
.username {
max-width: 150px;
}
.title-text {
font-size: 14px;
line-height: 30px;
}
.navbar-menu {
display: flex;
}
.menu-item {
padding: 8px;
font-size: 16px;
color: #555;
line-height: 1;
}
.debug {
display: inline-block;
position: relative;
}
.debug-badge {
position: absolute;
top: 5px;
right: 14px;
transform: translateY(-50%) translateX(100%) scale(0.8);
}
.arrowdown {
margin-top: 4px;
margin-left: 3px;
}
.person {
margin-top: 2px;
margin-right: 2px;
}
.navbar-right {
display: flex;
justify-content: flex-end;
align-items: center;
}
.navbar-right .uni-mask {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: rgba(255, 255, 255, 0);
z-index: 999;
}
.popup-menu__arrow {
position: absolute;
top: -6px;
right: 20px;
border-width: 6px;
margin-right: 3px;
border-top-width: 0;
border-bottom-color: #ebeef5;
filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.1));
}
.popup-menu__arrow::after {
content: " ";
position: absolute;
display: block;
width: 0;
height: 0;
border-color: transparent;
border-style: solid;
border-width: 10px;
top: 1px;
margin-left: -10px;
border-top-width: 0;
border-bottom-color: #fff;
}
/* 大屏时,隐藏的内容 */
.menu-icon,
.navbar-middle,
.popup-menu__arrow,
.navbar-right .uni-mask {
display: none;
}
/* 小屏,显示的内容 */
.navbar-mini .menu-icon {
display: block;
}
.navbar-user {
display: flex;
justify-content: center;
align-items: center;
}
/* 小屏时,隐藏的内容 */
.navbar-mini .logo,
.navbar-mini .debug,
.navbar-menu {
display: none;
}
.navbar-menu {
width: 100px;
flex-direction: column;
align-items: center;
justify-content: center;
position: absolute;
right: 0;
top: 27px;
background-color: #fff;
z-index: 999;
padding: 10px 0;
background-color: #fff;
border: 1px solid #ebeef5;
border-radius: 4px;
box-shadow: 0 6px 12px 0 rgba(0, 0, 0, 0.5);
}
/* 小屏时,弹出下拉菜单 */
.popup-menu .navbar-menu {
display: flex;
}
.popup-menu .popup-menu__arrow,
.popup-menu .navbar-right .uni-mask {
display: block;
}
.hover-highlight:hover {
color: #409eff;
}
.svg-icon {
width: 1em;
height: 1em;
vertical-align: -0.15em;
fill: currentColor;
overflow: hidden;
}
.password-popup {
padding: 30px;
}
.language-item {
font-stretch: 12px;
vertical-align: baseline;
text-decoration: underline;
}
.lang-icon {
font-size: 18px;
margin-top: 5px;
margin-right: 30px;
}
.user-icon {
font-size: 20px;
}