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

github.com/the2ne/hugo-frais.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'static/sass/_mixins.scss')
-rw-r--r--static/sass/_mixins.scss23
1 files changed, 12 insertions, 11 deletions
diff --git a/static/sass/_mixins.scss b/static/sass/_mixins.scss
index d8bfcce..c845a54 100644
--- a/static/sass/_mixins.scss
+++ b/static/sass/_mixins.scss
@@ -12,15 +12,16 @@
}
}
-/// `clearfix`
-@mixin _clearfix {
- &:before,
- &:after {
- /* clearfix - http://nicolasgallagher.com/micro-clearfix-hack/ */
- content: " ";
- display: table;
- }
- &:after {
- clear: both;
- }
+/// Background opacity
+@mixin _background-opacity($color, $opacity: 0.5) {
+ background-color: $color; /* The Fallback */
+ background-color: rgba($color, $opacity);
}
+
+/// Separator on ::before
+@mixin _separator-before($color: inherit, $content: "•", $margin: 0.5em) {
+ color: $color;
+ content: $content;
+ display: inline-block;
+ margin-right: $margin;
+} \ No newline at end of file