2022-05-04 16:17:20 +08:00
|
|
|
/** User-defined style. **/
|
2022-05-09 14:37:01 +08:00
|
|
|
{{ $P := .Site.Params -}}
|
2022-05-07 09:05:17 +08:00
|
|
|
|
2022-05-09 14:37:01 +08:00
|
|
|
{{- with $P.sidebar -}}
|
|
|
|
.main {
|
|
|
|
{{ if eq .position "right" }}
|
|
|
|
flex-direction: row-reverse;
|
|
|
|
{{- end }}
|
|
|
|
}
|
|
|
|
.header-inner {
|
|
|
|
width: {{ .width }}px;
|
|
|
|
}
|
|
|
|
.main-inner {
|
|
|
|
width: calc(100% - {{ add .width .offset }}px);
|
|
|
|
}
|
2022-05-04 16:17:20 +08:00
|
|
|
.sidebar {
|
2022-05-09 14:37:01 +08:00
|
|
|
width: {{ .width }}px;
|
2022-05-04 16:17:20 +08:00
|
|
|
visibility: inherit;
|
|
|
|
}
|
2022-05-07 09:05:17 +08:00
|
|
|
.sidebar-inner {
|
2022-05-09 14:37:01 +08:00
|
|
|
padding: {{ .padding }} 10px;
|
2022-05-07 09:05:17 +08:00
|
|
|
}
|
2022-05-09 14:37:01 +08:00
|
|
|
{{- end }}
|
2022-05-07 09:05:17 +08:00
|
|
|
|
2022-05-04 16:17:20 +08:00
|
|
|
.site-author-image {
|
2022-05-09 14:37:01 +08:00
|
|
|
{{- if $P.avatar.rounded }}
|
2022-05-05 13:58:46 +08:00
|
|
|
border-radius:50%;
|
2022-05-09 14:37:01 +08:00
|
|
|
{{- end }}
|
|
|
|
{{- if $P.avatar.rotated }}
|
2022-05-06 22:42:09 +08:00
|
|
|
transition: transform 1s ease-out;
|
2022-05-09 14:37:01 +08:00
|
|
|
{{- end }}
|
2022-05-04 16:17:20 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.back-to-top {
|
|
|
|
bottom: 30px;
|
2022-05-06 22:03:44 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.rss-link {
|
|
|
|
border-top: 1px dotted #ccc;
|
|
|
|
border-bottom: 1px dotted #ccc;
|
|
|
|
text-align: center;
|
|
|
|
margin: 10px 0 0 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rss-link a {
|
|
|
|
display: block;
|
|
|
|
color: #fc6423;
|
|
|
|
border-bottom: none;
|
|
|
|
}
|
|
|
|
|
2022-05-06 22:53:26 +08:00
|
|
|
@keyframes wobble-vertical {
|
|
|
|
16.65% {
|
|
|
|
transform: translateX(8px);
|
|
|
|
}
|
|
|
|
|
|
|
|
33.3% {
|
|
|
|
transform: translateX(-6px);
|
|
|
|
}
|
|
|
|
|
|
|
|
49.95% {
|
|
|
|
transform: translateX(4px);
|
|
|
|
}
|
|
|
|
|
|
|
|
66.6% {
|
|
|
|
transform: translateX(-2px);
|
|
|
|
}
|
|
|
|
|
|
|
|
83.25% {
|
|
|
|
transform: translateX(1px);
|
|
|
|
}
|
|
|
|
|
|
|
|
100% {
|
|
|
|
transform: translateX(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.rss-link a:hover {
|
|
|
|
animation-name: wobble-vertical;
|
|
|
|
animation-duration: 2s;
|
|
|
|
animation-timing-function: ease-in-out;
|
|
|
|
animation-iteration-count: 1;
|
|
|
|
}
|
|
|
|
|
|
|
|
.rss-link a:hover > i {
|
|
|
|
-webkit-transform: scaleY(-1);
|
|
|
|
transform: scaleY(-1);
|
2022-05-07 09:13:16 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
.cc-license {
|
2022-05-09 14:37:01 +08:00
|
|
|
{{ if eq $P.creativeCommons.size "big" }}
|
|
|
|
margin-top: 10px;
|
|
|
|
{{ else }}
|
2022-05-07 09:13:16 +08:00
|
|
|
margin-top: 5px;
|
2022-05-09 14:37:01 +08:00
|
|
|
{{- end }}
|
|
|
|
}
|