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

github.com/rhazdon/hugo-theme-hello-friend-ng.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/assets
diff options
context:
space:
mode:
authorDjordje Atlialp <djordje@atlialp.com>2020-03-05 17:12:00 +0300
committerDjordje Atlialp <djordje@atlialp.com>2020-03-05 17:12:00 +0300
commita5f406ffa4e9fd6be7b4ecd81a30d4ee5b9b67d8 (patch)
treed861f3a6e4beb241b19692736c9b14977145df40 /assets
parent4fb5103cb347aef04187a5f375befd5f87ff27cd (diff)
Add figure css classes
Diffstat (limited to 'assets')
-rw-r--r--assets/scss/_main.scss22
1 files changed, 22 insertions, 0 deletions
diff --git a/assets/scss/_main.scss b/assets/scss/_main.scss
index 0c1824b..10854d1 100644
--- a/assets/scss/_main.scss
+++ b/assets/scss/_main.scss
@@ -111,6 +111,14 @@ figure {
margin-right: auto;
}
+ &.left-floated {
+ margin-right: auto;
+ float: left;
+ img {
+ margin: 20px 20px 20px 0;
+ }
+ }
+
&.center {
margin-left: auto;
margin-right: auto;
@@ -120,6 +128,20 @@ figure {
margin-left: auto;
}
+ &.right-floated {
+ margin-left: auto;
+ float: right;
+ img {
+ margin: 20px 0 20px 20px;
+ }
+ }
+
+ &.rounded {
+ img {
+ border-radius: 50%;
+ }
+ }
+
figcaption {
font-size: 14px;
margin-top: 5px;