1 Star 0 Fork 0

ubuntuvim/ubuntuvim.github.io

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
common.less 11.82 KB
一键复制 编辑 原始数据 按行查看 历史
ubuntuvim 提交于 2020-01-20 02:14 +08:00 . Site updated: 2020-01-20 02:14:38
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623
html, body {
font-size: 16px;
font-weight: 300;
}
body {
color: @m-black;
line-height: 1.8rem;
margin: 0;
}
.nav-container {
display: flex;
position: fixed;
z-index: 100;
align-items: center;
width: 100%;
.home-menu {
border-bottom-style: solid;
border-bottom-color: @bg-gray;
border-bottom-width: 0.5px;
height: @nav-height;
padding: @nav-padding;
background: #fefefe;
flex-direction: row;
display: flex;
justify-content: space-between;
@media screen and (max-width: 615px) {
justify-content: center;
}
overflow-y: scroll;
max-width:1000px;
@media screen and (min-width: @xl-width) {
max-width: 880px;
}
margin-left: auto;
margin-right: auto;
.pure-menu-heading {
display: flex;
@media screen and (max-width: 615px) {
display: none!important;
}
flex-direction: row;
align-items: center;
justify-content: center;
.avatar {
width: 40px;
height: 40px;
background: @bg-gray-hover;
border-radius: 20px;
border-style: none;
display: inline-block;
vertical-align: middle;
}
.title {
color: @m-black;
margin-left: 10px;
display: inline-block;
vertical-align: middle;
font-family: 'Montserrat', sans-serif;
font-weight: 700;
font-size: 24px;
line-height: 40px;
}
}
.pure-menu-list {
display: flex;
.toc-menu {
display: none;
@media screen and (min-width: @xl-width) {
display: initial;
}
}
.menu-icon {
width: 18px;
height: 18px;
}
.pure-menu-children {
border: 1px solid @gray-light;
}
.pure-menu-link {
padding: 4px 15px;
color: inherit;
&:after {
content: ' ';
}
&:focus {
background-color: #fff;
}
}
.pure-menu-item.actived {
color: @light-blue;
}
}
}
}
.slash {
color: @gray-light;
padding-left: 5px;
padding-right: 5px;
}
.container {
padding-top: @padding-top;
margin: 0 auto;
max-width: 1000px;
min-height: calc(~"100vh - 120px");
@media screen and (min-width: @xl-width) {
max-width: 880px;
}
width: 100%;
}
.recent-posts {
margin: 0 auto;
@media (max-width: @sm-width) {
padding: 10px 50px;
}
max-width: @index-width;
.recent-post-item {
margin: 15px auto;
padding-top: 10px;
padding-bottom: 10px;
border-top: none;
.post-excerpt {
color: @gray-light;
@media screen and (max-width: @sm-width) {
display: none;
}
font-size: 14px;
}
.post-meta {
font-size: 12px;
position: relative;
padding-right: 60px;
min-height: 30px;
}
.title {
font-size: 12px;
h2 {
font-size: 1.2rem;
font-weight: normal;
@media screen and (max-width: @sm-width) {
font-size: 1rem;
}
}
&:hover {
color: @light-blue;
}
}
.more {
margin-top: -5px;
font-size: 14px!important;
&:hover {
color: @light-blue;
}
}
.index-tag-list {
display: inline;
padding: 0;
.index-tag-list-item {
margin-right: 5px;
color: @gray-light;
padding: 2px 5px;
background-color: @bg-gray;
border-radius: 2px;
display: inline;
list-style: none;
&:hover {
background-color: @bg-gray-hover;
}
}
}
.time {
color: @gray-light;
}
}
}
.page-nav {
margin: 10px 0 0;
padding: 10px 0 10px;
.page-number {
font-size: 14px;
display: inline-block;
position: relative;
margin: 0 5px;
width: 28px;
height: 28px;
line-height: 28px;
&.current {
color: #fff;
background: #ccc;
border-radius: 14px;
&:hover {
color: #fff;
}
}
&:hover{
color: @light-blue;
border-radius: 14px;
border: 1px dashed @bg-gray-hover;
}
}
a:hover {
color: @light-blue;
}
}
.post-container {
display: flex;
flex-direction: row;
align-items: center;
justify-content: center;
.toc-container {
.toc-article {
display: none;
a:hover {
color: @light-blue;
}
@media screen and (min-width: 1260px) {
display: block;
position: fixed;
margin-left: -15px;
max-height: calc(~"100vh - 150px");
width: 200px;
top: 25%;
font-size: 12px;
padding: 10px;
overflow-y: auto;
overflow-x: auto;
border-radius: 4px;
background-color: #F6F6F6;
}
@media screen and (max-width: 1260px) {
display: none!important;
}
ol,
ul {
list-style: none;
padding-left: 0;
ol,
ul {
padding-left: 1rem;
}
}
.toc {
.toc-item {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 180px;
&.toc-level-4 {
color: #444;
}
&.toc-level-5 {
color: #555;
}
&.toc-level-6 {
color: #666;
}
}
}
}
}
}
.post {
.post-page;
.post-header {
text-align: center;
margin: 10px 0 30px;
.title {
margin-bottom: 1rem;
line-height: 2rem;
}
.time {
color: @gray-light;
font-size: 14px;
}
.read {
font-size: 14px;
color: @gray-light;
}
}
.post-meta {
display: inline-block;
.post-tags {
text-align: center;
.article-tag-list-item {
.tag-button;
}
.article-tag-list {
padding-left: 0rem;
}
}
}
hr {
width: 100%;
}
blockquote {
padding: 1rem;
margin: 1rem 0;
padding-left: 20px;
border: 1px solid #eee;
border-left: 4px solid #ccc;
color: @gray;
p {
margin: 0;
}
}
table {
max-width: 100%;
}
img {
text-align: center;
margin: 0 auto;
display: block;
max-width: 100%;
max-height: 1024px;
}
.post-content {
h2,
h3,
h4,
h5,
h6 {
padding-top: 70px;
margin-top: -56px;
}
table {
width: 100%;
max-width: 100%;
margin-bottom: 21px;
border: 1px solid #ddd;
tr {
border-top: 1px solid #cccccc;
background-color: white;
margin: 0;
padding: 0;
}
tr:nth-child(2n) {
background-color: #f8f8f8;
}
th {
font-weight: bold;
border: 1px solid #cccccc;
text-align: left;
margin: 0;
padding: 6px 13px;
background-color: #f6f8fa;
}
td {
border: 1px solid #cccccc;
text-align: left;
margin: 0;
padding: 6px 13px;
}
th:first-child,
td:first-child {
margin-top: 0;
}
th:last-child,
td:last-child {
margin-bottom: 0;
}
}
.note {
position: relative;
padding: 15px;
margin-bottom: 20px;
border: 1px solid #eee;
border-left-width: 5px;
p {
margin: 0;
}
&.primary {
border-left-color: #6f42c1;
}
&.info {
border-left-color: #428bca;
}
&.success {
border-left-color: #5cb85c;
}
&.warning {
border-left-color: #f0ad4e;
}
&.danger {
border-left-color: #d9534f;
}
}
a {
color: @light-blue;
}
}
}
.page {
max-width: @page-width;
border: none;
box-shadow: none;
hr {
width: 10%;
}
li {
padding: .25rem 0;
}
ul {
padding-left: 0px;
}
.tag-list {
.tag-list-item {
.tag-button;
.tag-list-link {
font-weight: 500;
margin-right: 5px;
}
font-size: 14px;
text-align: center;
line-height: 30px;
height: 30px;
color: @light-blue;
&:hover {
color: @light-blue;
}
}
}
}
.tag-page {
.post-page;
border: none !important;
box-shadow: none !important;
.tag-item {
padding: .5rem 0;
time {
color: @gray-light;
font-size: 14px;
float: right;
@media screen and (max-width: @sm-width) {
display: block;
float: none;
}
}
a:hover{
color: @light-blue;
}
}
}
.post-nav {
background-color: #fff;
display: block;
font-size: 0;
margin: 15px auto;
max-width: @post-width - 30;
padding: 0 10px;
position: relative;
.post-nav-item {
display: inline-block;
flex: 1;
font-size: 14px;
padding: 10px 0;
position: relative;
vertical-align: top;
width: 49.5%;
&:hover {
color: @light-blue;
}
span {
display: inline-block;
position: absolute;
}
a {
margin-left: 20px;
display: inline-block;
}
}
.post-nav-prev {
text-align: right;
a {
margin-right: 20px;
}
span {
right: 0;
}
}
@media screen and (max-width: @sm-width) {
display: none;
}
}
.category-list {
list-style: upper-alpha;
ol,
ul {
list-style: lower-alpha;
padding-left: 1rem;
}
.category-list-link {
color: @m-black!important;
&:hover {
color: @light-blue;
}
}
.category-list-count {
padding-left: 1rem;
color: @light-blue;
}
}
.disqus-comments {
background-color: #fff;
display: block;
margin: 0 auto;
width: @post-width - 50;
padding: 0 15px;
@media (max-width: @post-width) {
display: none!important;
}
}
.search-content {
.pure-input {
border-radius: 2px !important;
&:focus {
border-color: @light-blue !important;
}
}
.search-result {
color: @gray-light;
}
}
.search-result-list {
margin-top: 10px;
a.search-result-title {
color: @m-black;
font-weight: normal;
font-size: 1.2rem;
&:hover {
color: @light-blue;
}
}
.search-keyword {
color: @em-color;
font-weight: bold;
}
}
.archives {
.archive-year-wrap {
font-size: 1.3rem;
line-height: 1.3rem;
@media screen and (min-width: 476px) {
margin-left: -1rem;
}
}
.archive {
border-left: 1.4px dashed #ccc;
position: relative;
padding: .5rem 0;
padding-left: 1rem!important;
&:before {
position: absolute;
top: 1rem;
left: -6px;
z-index: 1;
display: block;
content: "";
background-color: @light-blue;
width: 10px;
height: 10px;
border-radius: 50%;
border: 2px solid #fff;
}
.title {
margin: 0;
font-weight: normal;
}
.date {
color: #999;
font-family: 'Montserrat', sans-serif;
text-transform: uppercase;
font-size: 1.0rem;
font-weight: 300;
letter-spacing: 2px;
}
a:hover {
color: @light-blue;
}
}
}
.copyright {
margin: 15px 30px;
font-size: 12px;
text-align: center;
a {
text-decoration: underline;
&:hover {
color: @light-blue;
}
}
}
//.share {
// float: left;
// position: fixed;
// right: 85%;
// top: 50%;;
// height: 200px;
// width: 50px;
// background: red;
// border-radius: 5px;
// &:hover {
// left: 0;
// width: 400px;
// }
//}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
HTML
1
https://gitee.com/ubuntuvim/ubuntuvim.github.io.git
git@gitee.com:ubuntuvim/ubuntuvim.github.io.git
ubuntuvim
ubuntuvim.github.io
ubuntuvim.github.io
master

搜索帮助