Skip to content

Commit

Permalink
More polishments
Browse files Browse the repository at this point in the history
  • Loading branch information
sneridagh committed Nov 29, 2023
1 parent 80e801e commit f72e2dc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
1 change: 0 additions & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ const applyConfig = (config) => {
restricted: false,
mostUsed: true,
sidebarTab: 1,
referenceContainerQuery: 'body.has-sidebar .container .header',
dataAdapter: SliderBlockDataAdapter,
};
return config;
Expand Down
9 changes: 5 additions & 4 deletions src/theme/main.less
Original file line number Diff line number Diff line change
Expand Up @@ -34,17 +34,17 @@
position: absolute;
z-index: 10;
width: 50px;
height: calc(var(--slider-container-width) * 9 / 16);
// Since we are forcing the aspect ratio, if we know the slider container width (we do)
// (we are injecting the CSS property in the main slider wrapper)
// we can infer the height of the image, by using:
height: calc(var(--slider-container-width) * 1 / @slider-images-aspect-ratio);
padding: 0;
border: 0;
margin: 0;
-webkit-appearance: none;
// Equal to the space we give at the bottom to place the buttons
// height: calc(100% - $spacing-xlarge);
background-color: rgba(0, 0, 0, 0.15);
color: #fff;
cursor: pointer;
// border: 2px solid red;
opacity: 0;
text-decoration: none;
touch-action: manipulation;
Expand All @@ -66,6 +66,7 @@

.slider-button-next {
right: 0;
// In case you want to remove the buttons from the mobile view
// @media only screen and (max-width: $computer-width) {
// display: none !important;
// }
Expand Down

0 comments on commit f72e2dc

Please sign in to comment.