Skip to content
This repository has been archived by the owner on Mar 7, 2024. It is now read-only.

scrollbar css changed #120

Merged
merged 2 commits into from
Oct 18, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/views/pages/common/Recommendations.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import React from 'react';

import { makeStyles } from '@material-ui/core/styles';
import './index.css';
import {
Grid,
Typography,
Expand Down Expand Up @@ -138,12 +139,14 @@ export default function Recommendations({ recommendationsImages }) {

<Grid container spacing={4}>
<GridList
id="recommendation_grid"
className={classes.gridList}
cols={large ? 4 : medium ? 3.5 : small ? 2.7 : 1.4}
>
{recommendations.map((recommendation, index) => {
return (
<GridListTile
className="recommendation_slide"
key={index}
style={{
margin: '20px',
Expand Down
35 changes: 35 additions & 0 deletions src/views/pages/common/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
:root{
scrollbar-color:#000000 white !important;
scrollbar-width:thin !important;
}
::-webkit-scrollbar-track {
border: 1px solid gray;
background-color: #f5f5f5;
border-radius: 10px;
}
::-webkit-scrollbar {
width: 10px;
background-color: #f5f5f5;
}
::-webkit-scrollbar-thumb {
border-radius: 10px;
background-color: #000000;
animation: animate 6s linear infinite;
}
#recommendation_grid{
position:relative;
overflow: hidden;
}
.recommendation_slide{
position: relative;
left: 0;
top: 0;
height: 100%;
width: 250%;
animation: slideshow 100s linear infinite;
}
@keyframes slideshow {
0% { left: 0%; }
50% { left: -150%; }
100% { left: -0%; }
}