Skip to content

Commit dc8c2cb

Browse files
authored
合并版本升级
Build 1.3.1
2 parents 8771dbc + 66a8f2f commit dc8c2cb

File tree

3 files changed

+483
-22
lines changed

3 files changed

+483
-22
lines changed

README.md

+142-10
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,145 @@
1-
# RTheme
2-
一个由html css js组成的网站主题
1+
# <div align="center">RTheme
2+
```
3+
4+
____ ______ __ __ __ _ __
5+
/\ _`\ /\__ _\/\ \ /\ \/\ \ /' \ /'__`\
6+
\ \ \L\ \/_/\ \/\ \ \___ __ ___ ___ __ \ \ \ \ \/\_, \ /\_\L\ \
7+
\ \ , / \ \ \ \ \ _ `\ /'__`\/' __` __`\ /'__`\ _______ \ \ \ \ \/_/\ \ \/_/_\_<_
8+
\ \ \\ \ \ \ \ \ \ \ \ \/\ __//\ \/\ \/\ \/\ __/ /\______\ \ \ \_/ \ \ \ \ __/\ \L\ \
9+
\ \_\ \_\ \ \_\ \ \_\ \_\ \____\ \_\ \_\ \_\ \____\ \/______/ \ `\___/ \ \_\/\_\ \____/
10+
\/_/\/ / \/_/ \/_/\/_/\/____/\/_/\/_/\/_/\/____/ `\/__/ \/_/\/_/\/___/
11+
12+
```
313

14+
</div>
15+
<div align="center">
16+
17+
**This document also supports [English](https://github.com/RavelloH/RTheme/blob/main/doc/README-En.md).**
18+
</div>
419

5-
## 查看效果:
6-
https://ravelloh.github.io
20+
## 演示
21+
示例博客:https://ravelloh.github.io
22+
演示网站:https://ravelloh.github.io/RTheme
23+
24+
## 使用
25+
- 直接在此Github仓库内选择使用此模板
26+
- 下载正式版ZIP:https://github.com/RavelloH/RTheme/archive/refs/heads/main.zip
27+
- 或直接clone:https://github.com/RavelloH/RTheme.git
28+
29+
## 功能
30+
### 实现的功能
31+
- [x] 响应式布局,最低适配至380*640,无上限
32+
- [x] 横版布局,自动左右分栏
33+
- [x] 顶栏/目录双索引,移动端分辨率不足时自动隐藏顶栏
34+
- [x] 网页跳转特效
35+
- [x] 目录/Copyright快捷更新,Copyright支持自动更新
36+
- [x] 支持代码框,自动显示行数(代码高亮需引入外部js)
37+
- [x] 图片大小自动调整,过大自动缩小
38+
- [x] 内置常用icon,五种大小自定义
39+
- [x] a标签hover特效且分有无下划线
40+
- [x] 支持404页面
41+
- [x] 支持打字机、Loading特效等
42+
- [x] 底栏小icon
43+
- [x] 文章更新时间计时
44+
- [x] 以bold版字体文件代替`<b>`,更加美观
45+
- [x] 自定义滚动条
46+
- [x] 文字大小依分辨率调整
47+
- [x] 内联页面自动预加载
48+
- [x] 原生配色适应utteranc评论插件
49+
- [x] 支持图片懒加载(默认关闭)
50+
51+
## 标签指南
52+
* `<a>`
53+
* class:
54+
* button:白底黑字大按钮,带伸缩hover
55+
* c:自带间隔,带变色hover
56+
* linkline:带虚线下划线
57+
* tag:标签用
58+
* m:目录索引用,同tag
59+
* `<div>`
60+
* class:
61+
* text:文本区(分栏)
62+
* listline:有自动滚动条的div(分栏)
63+
* ~~codeline:代码块,已被pre平替~~
64+
* overlay:遮罩
65+
* headers:顶栏
66+
* center:元素居中
67+
* right:右对齐(默认左)
68+
* article:宽屏div(文章用)
69+
* menu:目录区域
70+
* showcase:显示区域(遮罩上)
71+
* toggle:目录按钮
72+
* id:
73+
* text:进入动画
74+
* active:退出动画
75+
* `<ul>`
76+
* class:
77+
* social:左下小图标
78+
* `<span>`:
79+
:span使用方法为class里同时写大小加类型,如大号“关于”的图标:`<span class="iconfontlarge icon-about"></span>`
80+
* class:
81+
* iconfont:50px图标
82+
* iconfontsmall:26px图标
83+
* iconfontmini:20px图标
84+
* iconfontbig:50px图标,带top12px
85+
* iconfontlarge:70px图标
86+
以下icon效果请在<https://ravelloh.github.io/RTheme/help/icon/>中查看
87+
* icon-search
88+
* icon-about
89+
* icon-share
90+
* icon-note
91+
* icon-archive
92+
* icon-error
93+
* icon-tag
94+
* icon-gang
95+
* icon-home
96+
* icon-annotation
97+
* icon-classification
98+
* icon-aboutcircle
99+
* icon-clock
100+
* icon-app
101+
* icon-menu
102+
* icon-bilibili
103+
* icon-neteasemusic
104+
* icon-github
105+
* icon-article
106+
* icon-help
107+
* icon-link
108+
* icon-friend
109+
* icon-gift
110+
* icon-QR
111+
* icon-add
112+
* icon-del
113+
* icon-download
114+
* icon-bad
115+
* icon-right
116+
* icon-fujian
117+
* icon-code
118+
* icon-message
119+
* icon-fuzhi
120+
* icon-message
121+
* icon-like
122+
* icon-star
123+
* icon-lock
124+
* icon-good
125+
* icon-scan
126+
* icon-save
127+
* icon-flag
128+
* icon-upload
129+
* icon-more1
130+
* icon-more2
131+
* `<p>`
132+
* class:
133+
* typing:打字机特效
134+
135+
* 全局:
136+
* class:
137+
* fl:元素左对齐(环绕)
138+
* fr:元素右对齐(环绕)
139+
* tc:文字居中
140+
* tr:文字右对齐
141+
* logoimg:头像
142+
* center:元素居中
7143

8-
## 使用方式:
9-
clone后直接修改。
10-
11-
内附指南,位于index.html内。
12-
13-
如有需要,自行修改。
144+
## LICENCE
145+
[MIT License](https://github.com/RavelloH/RTheme/blob/main/LICENSE)

css/style.css

+85-12
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ b {
3737
html {
3838
background-color: #1e1e1e;
3939
color: #c6c9ce;
40-
font-size: 15px;
40+
font-size: 14px;
4141
line-height: 1.5;
4242
overflow-x: hidden;
4343
}
@@ -366,12 +366,7 @@ a:active {
366366
margin-right: 40px;
367367
}
368368

369-
370-
/*
371-
设计有加载动画,
372-
使用<div class="loadingcircle"></div>引用。
373-
374-
.loadingcircle {
369+
/* .loadingcircle {
375370
width: 50px;
376371
height: 50px;
377372
border-radius: 50%;
@@ -436,7 +431,7 @@ body .text {
436431

437432
header {
438433
position: absolute;
439-
top: -10px;
434+
top: -20px;
440435
left: 0;
441436
width: 100%;
442437
padding: 40px 100px;
@@ -627,6 +622,22 @@ header .logo {
627622
}
628623
}
629624

625+
@media (max-width: 700px) {
626+
627+
.headers {
628+
visibility: hidden;
629+
}
630+
html {
631+
font-size: 10px;
632+
}
633+
.text h2 {
634+
font-size: 2em;
635+
}
636+
.text h3 {
637+
font-size: 1em;
638+
}
639+
640+
}
630641
textarea {
631642
resize: none;
632643
}
@@ -646,7 +657,6 @@ code {
646657
font-family: Consolas, Monaco, courier, monospace;
647658
}
648659

649-
/* 如果需要遮罩切换动画,注释掉下面的。(会有BUG) */
650660
section {
651661
height: 100%;
652662
}
@@ -661,6 +671,12 @@ section {
661671
width: 100%;
662672
height: 80%;
663673
overflow: auto;
674+
word-break:break-all;
675+
}
676+
677+
.codeline {
678+
width: 98%;
679+
height: auto;
664680
}
665681

666682
::-webkit-scrollbar {
@@ -720,7 +736,64 @@ img.img {
720736

721737
.linkline {
722738
border-bottom: 1px dashed #ffffff;
723-
height: 50px;
724-
width: 350px;
725739
color: #ffffff
726-
}
740+
}
741+
742+
pre {
743+
background: #2d2d2d;
744+
color: rgb(201,209,217);
745+
font-family: Consolas;
746+
text-align: left;
747+
padding: 1em;
748+
padding-left: 0.8em;
749+
margin: 1em;
750+
border-radius: 5px;
751+
counter-reset: line;
752+
word-spacing: normal;
753+
word-break: normal;
754+
line-height: 0.2;
755+
white-space: pre-wrap;
756+
word-wrap: break-word;
757+
overflow: auto;
758+
}
759+
760+
pre span {
761+
display: block;
762+
line-height: 1.5rem;
763+
white-space: pre;
764+
}
765+
766+
pre span:before {
767+
counter-increment: line;
768+
content: counter(line);
769+
display: inline-block;
770+
width: 3em;
771+
text-align: right;
772+
border-right: 2px solid #999;
773+
padding-right: .8em;
774+
margin-right: 1em;
775+
color: #999;
776+
}
777+
778+
a {
779+
display: inline-block;
780+
position: relative;
781+
}
782+
783+
a:after {
784+
content: '';
785+
position: absolute;
786+
width: 100%;
787+
transform: scaleX(0);
788+
height: 2px;
789+
bottom: 0;
790+
left: 0;
791+
background-color: #0087ca;
792+
transform-origin: bottom right;
793+
transition: transform 0.25s ease-out;
794+
}
795+
796+
a:hover:after {
797+
transform: scaleX(1);
798+
transform-origin: bottom left;
799+
}

0 commit comments

Comments
 (0)