Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zzossig/hugo-theme-zzo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorzzossig <zzossig@gmail.com>2020-02-29 08:42:56 +0300
committerzzossig <zzossig@gmail.com>2020-02-29 08:42:56 +0300
commit437b05b64bf65254f3abccf313d41585685641c1 (patch)
tree4d1d3a5c8db24dbc596be42205abdfe6f8bbeef8 /assets
parentea83859c6bacda71918e3c208bc46a975e35ea9f (diff)
[new option] linenos=false [new icon] twich
#210 #211 #212 ```makefile {linenos=false} CC=gcc ```
Diffstat (limited to 'assets')
-rw-r--r--assets/sass/components/_pagination.scss4
-rw-r--r--assets/sass/pages/_single.scss22
2 files changed, 24 insertions, 2 deletions
diff --git a/assets/sass/components/_pagination.scss b/assets/sass/components/_pagination.scss
index 2aa9938..34161f6 100644
--- a/assets/sass/components/_pagination.scss
+++ b/assets/sass/components/_pagination.scss
@@ -54,7 +54,7 @@
.pagination-single {
@include flexbox();
@include align-items(center);
- @include justify-content(center);
+ @include justify-content(flex-end);
@include flex-wrap(wrap);
width: 100%;
margin: 1rem 0;
@@ -94,7 +94,7 @@
&__right {
@include on-event {
@include translateX(0.25rem);
- }
+ }
}
&__icon {
diff --git a/assets/sass/pages/_single.scss b/assets/sass/pages/_single.scss
index 834bedc..88b97c0 100644
--- a/assets/sass/pages/_single.scss
+++ b/assets/sass/pages/_single.scss
@@ -261,6 +261,17 @@
.language-code .copy-to-clipboard:hover {
@include translateY(-0.1rem);
}
+ .highlight > .copy-to-clipboard {
+ position: absolute;
+ right: 4px;
+ top: 5px;
+ border-radius: 2px;
+ z-index: z('clipboard');
+ @include transition(all, 0.2s, ease);
+ }
+ .highlight > .copy-to-clipboard:hover {
+ @include translateY(-0.1rem);
+ }
blockquote {
font-size: 1.05rem;
@@ -507,6 +518,16 @@ pre:not(.chroma) {
}
}
+.highlight {
+ position: relative;
+
+ @include on-event {
+ .copy-to-clipboard {
+ opacity: 1;
+ }
+ }
+}
+
.highlight > .chroma {
margin: 1em 0;
border-radius: 5px;
@@ -514,6 +535,7 @@ pre:not(.chroma) {
z-index: z('content');
overflow-x: auto;
direction: ltr;
+ position: relative;
@include themify($codeblock) {
color: themed('content-pre-color');