lensfrex 1 year ago
parent 4bfb0a9360
commit 56283588c3
Signed by: lensfrex
GPG Key ID: 947ADABD8533C476
  1. 2
      _config.yml
  2. 8
      layout/includes/_partials/button.pug
  3. 5
      layout/includes/_partials/header.pug
  4. 8
      layout/includes/layout.pug
  5. 36
      source/css/_partials/button.styl
  6. 18
      source/css/common.styl
  7. 9
      source/img/svg.svg

@ -6,7 +6,7 @@ language: zh-cn
menu: menu:
首页: / 首页: /
存档: /archives 存档: /archives
扩展: /extends 扩展: https://huhu.ciduid.top
nginx文档: /nginx-docs nginx文档: /nginx-docs
IPV6: /ipv6 IPV6: /ipv6
传送门: /teleport-public 传送门: /teleport-public

@ -1,8 +1,10 @@
mixin button (target_href, active, text) mixin button (target_href, active, text)
.button-component .button-component
.button-component-box
.button-container .button-container
a.button-anchor(href=target_href) a.button-anchor(
href=active ? undefined : target_href
class=active ? 'active' : ''
)
.button-anchor-box .button-anchor-box
.button-item-icon .button-icon
= text = text

@ -4,4 +4,7 @@ include ./button.pug
.menu-items-container .menu-items-container
include ./left_declaration.pug include ./left_declaration.pug
each target, name in theme.menu each target, name in theme.menu
+button(target, true, name) - var targetPath = target.substr(1)
- var currPath = page.path
- var active = (!is_home() && targetPath === '') ? false : currPath.startsWith(targetPath)
+button(target, active, name)

@ -8,7 +8,7 @@
- pageTitle += ' [ ' + config.title + ' ]' - pageTitle += ' [ ' + config.title + ' ]'
doctype html doctype html
html(lang='zh-cn') html(lang=config.language)
head head
meta(charset='UTF-8') meta(charset='UTF-8')
title= pageTitle title= pageTitle
@ -21,16 +21,16 @@ html(lang='zh-cn')
header#header.header header#header.header
.header-box .header-box
include ./_partials/header.pug include ./_partials/header.pug
hr
.bottom-declaration .bottom-declaration
.bottom-declaration-line
.bottom-declaration-dotted
main#main.main main#main.main
.main-box .main-box
#content.content #content.content
block content block content
footer#footer.footer footer#footer.footer
.footer-box .footer-box
include ./_partials/footer.pug include ./_partials/footer.pug

@ -1,19 +1,18 @@
.button-component .button-component
width: 100% width: 100%
.button-component-box
.button-container .button-container
padding: 0px; a.active
width: 100%; background-position: -100% center;
height: 100%; padding-bottom: 1.75rem;
background-color: transparent; color: rgb(180, 175, 154) !important;
display: flex; &:hover::before
flex-direction: column; content: none !important;
gap: 5px; &:hover::after
border: none; content: none !important;
.button-anchor-box .button-icon
background-position: -100% center;
a.button-anchor a.button-anchor
font-size: 1rem;
height: 100%;
width: 100%;
text-decoration: none; text-decoration: none;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@ -22,7 +21,7 @@
background-image: linear-gradient(90deg, rgb(180, 175, 154) 50%, rgb(180, 175, 154) 50%, rgb(87, 84, 74) 50%, rgb(87, 84, 74) 100%); background-image: linear-gradient(90deg, rgb(180, 175, 154) 50%, rgb(180, 175, 154) 50%, rgb(87, 84, 74) 50%, rgb(87, 84, 74) 100%);
background-size: 200%; background-size: 200%;
transition: all 0.2s linear 0s; transition: all 0.2s linear 0s;
z-index: 2; cursor: default;
&:hover &:hover
background-position: -100% center; background-position: -100% center;
color: rgb(180, 175, 154); color: rgb(180, 175, 154);
@ -51,18 +50,18 @@
transform: translate(0px, 8px); transform: translate(0px, 8px);
pointer-events: none; pointer-events: none;
&:hover .button-anchor-box .button-icon
background-position: -100% center;
.button-anchor-box .button-anchor-box
padding: 10px; padding: 8px;
display: flex; display: flex;
flex-direction: row;
gap: 10px; gap: 10px;
-webkit-box-align: center; -webkit-box-align: center;
align-items: center; align-items: center;
color: inherit;
font-family: Manrope, sans-serif; font-family: Manrope, sans-serif;
font-weight: 500; font-weight: 500;
font-size: 18px; font-size: 18px;
.button-item-icon .button-icon
width: 5%; width: 5%;
height: 5%; height: 5%;
min-width: 20px; min-width: 20px;
@ -70,5 +69,4 @@
background-image: linear-gradient(90deg, rgb(87, 84, 74) 50%, rgb(87, 84, 74) 50%, rgb(218, 212, 187) 50%, rgb(218, 212, 187) 100%); background-image: linear-gradient(90deg, rgb(87, 84, 74) 50%, rgb(87, 84, 74) 50%, rgb(218, 212, 187) 50%, rgb(218, 212, 187) 100%);
background-size: 200%; background-size: 200%;
transition: all 0.1s linear 0s; transition: all 0.1s linear 0s;
&:hover .button-anchor-box .button-item-icon
background-position: -100% center;

@ -6,19 +6,23 @@ body
linear-gradient(90deg, #c6c2a5 2px, rgba(255 255 255 0) 0), linear-gradient(90deg, #c6c2a5 2px, rgba(255 255 255 0) 0),
linear-gradient(180deg, #c6c2a5 2px, rgb(209 205 178) 0); linear-gradient(180deg, #c6c2a5 2px, rgb(209 205 178) 0);
background-size: .4rem .4rem background-size: .4rem .4rem
margin: 0
#container #container
padding: 1.5% 2% 2% 2% padding: 1.5% 2% 2% 2%
hr
border: 1.3px solid #000; .bottom-declaration
margin-left: -4.4%; // container2%padding
margin-right: 4%; // container2%width+=2%*2104%
margin-left: -2%;
margin-top: 1.5em; margin-top: 1.5em;
width: 107%; width: 104%;
.bottom-declaration .bottom-declaration-line
border: 1.3px solid #000;
.bottom-declaration-dotted
background-image: linear-gradient(90deg,#333 14%,hsla(0,0%,100%,0) 0); background-image: linear-gradient(90deg,#333 14%,hsla(0,0%,100%,0) 0);
background-repeat: repeat-x; background-repeat: repeat-x;
background-size: 72px 4px; background-size: 100px 4px;
width: 100%; width: 100%;
height: 4px; height: 4px;

@ -0,0 +1,9 @@
<svg width="256" height="256" xmlns="http://www.w3.org/2000/svg">
<g>
<title>Layer 1</title>
<ellipse stroke="#000" ry="32" rx="32" id="svg_2" cy="65.72726" cx="126.1818" fill="#000000"/>
<ellipse stroke="#000" ry="32" rx="32" id="svg_3" cy="182.72726" cx="179.1818" fill="#000000"/>
<ellipse stroke="#000" ry="32" rx="32" id="svg_4" cy="182.72726" cx="78.1818" fill="#000000"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 401 B

Loading…
Cancel
Save