Skip to content

Commit

Permalink
Prettier files
Browse files Browse the repository at this point in the history
  • Loading branch information
tiberiuichim committed Aug 20, 2020
1 parent 6e3d2d7 commit fd371e0
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 10 deletions.
28 changes: 21 additions & 7 deletions src/Tabs/public.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,10 @@
@import "~volto-tabsblock/less/globals.less";
@import '../less/globals.less';

@addon: 'volto-tabsblock';
@addontype: 'block';
@addonelement: 'tabs';

.loadAddonVariables();

.content-area {
.ui.bottom.attached {
Expand All @@ -7,9 +13,9 @@

.ui.menu {
border: none;
border-bottom: 1px solid @tealBackground;
border-radius: 0;
box-shadow: none;
border-bottom: 1px solid @tealBackground;

&.pointing {
.item.active::after {
Expand All @@ -21,15 +27,15 @@
.item.active::after {
right: auto;
left: 0%;
margin-left: -.5em;
margin-left: -0.5em;
}
}

&.pointing.bottom {
.item.active::after {
top: auto;
bottom: 100%;
margin-bottom: -.5em;
margin-bottom: -0.5em;
}
}

Expand Down Expand Up @@ -66,21 +72,27 @@
}

&.active {
border: none;
background-color: @tealBackground !important;
color: @highlightColor !important;
border: none;
}
}
}

.tab.active > * {
animation-name: fadeIn;
animation-duration: 300ms;
animation-name: fadeIn;
animation-timing-function: linear;
}

@keyframes fadeIn {
from { opacity: 0; } to { opacity: 1; }
from {
opacity: 0;
}

to {
opacity: 1;
}
}

.block {
Expand All @@ -90,3 +102,5 @@
}
}
}

.loadAddonOverrides();
8 changes: 5 additions & 3 deletions src/less/globals.less
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,13 @@

/* Enables customization of addons */
.loadAddonOverrides() {
@import (optional) "@{siteFolder}/../addons/@{addon}/@{addontype}s/@{addonelement}.overrides";
@import (optional)
'@{siteFolder}/../addons/@{addon}/@{addontype}s/@{addonelement}.overrides';
}

/* Helper to load variables */
.loadAddonVariables() {
@import (optional) "@{addonelement}.variables";
@import (optional) "@{siteFolder}/../addons/@{addon}/@{addontype}s/@{addonelement}.variables";
@import (optional) '@{addonelement}.variables';
@import (optional)
'@{siteFolder}/../addons/@{addon}/@{addontype}s/@{addonelement}.variables';
}

0 comments on commit fd371e0

Please sign in to comment.