文件操作 - global.less
返回文件管理
返回主菜单
删除本文件
文件: /var/www/OLD/assets/less/global.less
编辑文件内容
:root { --container-padding: 64px; --header-height: 104px; --input-height: 60px; @media @md { --header-height: 82px; --container-padding: 32px; } @media @sm { --container-padding: 16px; } } .scrollbar { scrollbar-color: @border transparent; scrollbar-width: thin; &::-webkit-scrollbar { width: 10px; height: 10px; } &::-webkit-scrollbar-track { background: transparent; border-radius: 8px; } &::-webkit-scrollbar-thumb { background: @border; border-radius: 8px; border: solid 2px transparent; background-clip: padding-box; } } .scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; &::-webkit-scrollbar { display: none; } } * { margin: 0; padding: 0; box-sizing: border-box; @media @md_ { .scrollbar; } &:after, &:before { box-sizing: inherit; } } html { -webkit-tap-highlight-color: transparent; display: flex; position: relative; overflow-y: scroll; overflow-x: hidden; scroll-padding-top: var(--header-height); @media @xl { @media @md_ { font-size: clamp(12px, 1.12vw, 16px); } } @media @md { font-size: 16px; } } body { font-family: @ff; color: @text; -webkit-font-smoothing: subpixel-antialiased; -moz-font-smoothing: subpixel-antialiased; -moz-osx-font-smoothing: grayscale; text-size-adjust: 100%; display: flex; flex-direction: column; min-height: 100vh; position: relative; line-height: 1; width: 100%; background: @white; padding-top: var(--header-height); font-size: 16px; overflow: hidden; min-width: 390px; line-height: 1.4; } #__nuxt { flex: auto; display: flex; flex-direction: column; } #app { flex: auto; min-height: 0; display: flex; flex-direction: column; } .container { padding-left: var(--container-padding); padding-right: var(--container-padding); max-width: 100%; margin-left: auto; margin-right: auto; width: 1440px; } a { text-decoration: none; color: @link; } button { all: unset; user-select: none; cursor: pointer; box-sizing: border-box; } .link { transition: color 0.4s; &:hover { color: @linkH; } &:active { color: @linkA; } } input, button, select, textarea { color: @text; font: inherit; margin: 0; &:focus { outline: none; } } a, button { outline: none; } input { padding-top: 0; padding-bottom: 0; } ::-moz-placeholder { color: @placeholder; } :-ms-input-placeholder { color: @placeholder; } ::-webkit-input-placeholder { color: @placeholder; } table { border-collapse: collapse; border-spacing: 0; } img { border: 0; max-width: 100%; } ul { list-style: none; } use { fill: currentColor; } .icon { --size: 24px; flex: none; width: var(--size); height: var(--size); } .hidden-desktop { @media @lg { display: none !important; } } .hidden-tablet { @media @md { display: none !important; } } .hidden-mobile { @media @sm { display: none !important; } } .visible-mobile { @media @sm_ { display: none !important; } } .visible-tablet { @media @md_ { display: none !important; } } .visible-desktop { @media @lg_ { display: none !important; } } .cover-img { position: relative; overflow: hidden; will-change: transform; img, video { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; } } .fit-img { display: flex; flex-direction: column; align-items: center; justify-content: center; picture, img { display: block; max-height: 100%; } } .page-main { padding: calc(176px - var(--header-height)) 0 40px; @media @md { padding: calc(122px - var(--header-height)) 0 40px; } } .section { padding: 120px 0; @media @md { padding: 50px 0; } } .section-title { margin-bottom: 48px; } .page-title { margin-bottom: 48px; text-align: center; letter-spacing: -0.04em; @media @md { margin-bottom: 36px; } } h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 { font-weight: 600; color: @title; } h1, .h1 { letter-spacing: -0.04em; font-size: 80px; line-height: 1.125; @media @md { font-size: 52px; line-height: 1.25; } } h2, .h2 { letter-spacing: -0.06em; font-size: 48px; line-height: 1.16; @media @md { font-size: 32px; line-height: 1.25; } } h3, .h3 { letter-spacing: -0.05em; font-size: 30px; line-height: 1.2; @media @md { font-size: 24px; line-height: 1.16; } } h4, .h4 { letter-spacing: -0.05em; font-size: 28px; line-height: 1.28; @media @md { font-size: 20px; line-height: 1.2; } } .form-block { display: flex; flex-direction: column; &.not-valid { .input { border-color: @redLight; } .input-error { display: block; } } &:has(.input-icon) { .input { padding-left: 50px; } } } .form-block-title { font-weight: 500; margin-bottom: 8px; color: #2b2b2b; } .input-block { display: block; position: relative; } .input { display: block; width: 100%; height: var(--input-height, 60px); border: solid 1px @border; background: @white; padding: 0 16px; appearance: none; border-radius: 8px; color: #2d2d2d; text-overflow: ellipsis; font-size: 16px; transition: border-color 0.4s; box-shadow: none; caret-color: #2d2d2d; font-weight: 400; position: relative; .placeholder({ transition:color 0.4s; }); &::-webkit-outer-spin-button, &::-webkit-inner-spin-button { appearance: none; margin: 0; } &::-webkit-search-cancel-button { appearance: none; display: none; } &:focus { border-color: @borderA; z-index: 1; .placeholder({ color:@placeholderA; }); } &.filled { border-color: @borderA; } &.disabled, &[disabled] { pointer-events: none; } &:-webkit-autofill { font-size: 16px; font-family: @ff; -webkit-text-fill-color: #2d2d2d; background-color: transparent; transition: background-color 5000000s 0s, border-color 0.4s; } &:-webkit-autofill::first-line { font-family: @ff; } } .input-error { margin-top: 4px; display: none; color: @red; } .input-icon { position: absolute; color: @link; --size: 22px; left: 16px; top: calc(0.5 * var(--input-height) - 11px); z-index: 2; pointer-events: none; }
修改文件时间
将文件时间修改为当前时间的前一年
删除文件