Skip to content

Commit

Permalink
hide tutorial's scrollbar
Browse files Browse the repository at this point in the history
  • Loading branch information
edrisranjbar committed Oct 13, 2021
1 parent aa2769e commit e9dfedc
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
10 changes: 9 additions & 1 deletion assets/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -416,13 +416,21 @@ header {
margin-bottom: 102px;
background: linear-gradient(90deg, #7C96F7 0%, #6C63FF 100%);
background-image: url('../images/Tutorials.png');
background-size: contain;
background-size: 100%;
background-repeat: no-repeat;
min-height: 800px;
}
.tutorials .row::-webkit-scrollbar {
display: none;
}
.tutorials .row{
-ms-overflow-style: none; /* IE and Edge */
scrollbar-width: none; /* Firefox */
}

.tutorial {
width: 350px;
flex-shrink: 0;
background: #F0F0F0;
box-shadow: 0px 10px 40px rgba(50, 45, 45, 0.25);
border-radius: 10px;
Expand Down
4 changes: 2 additions & 2 deletions tutorials.php
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<section class="tutorials">
<h2 class="title">دوره های آموزشی</h2>
<div class="row">
<div class="row" style="overflow-x: scroll;">
<?php
$args = array(
'post_type' => 'tutorial'
Expand Down Expand Up @@ -28,7 +28,7 @@
<h2 class="tutorial_title"><?php echo get_the_title(); ?></h2>
</a>
<div class="row">
<span class="price_tag">11,300 تومان</span>
<span class="price_tag">رایگان</span>
</div>
</div>
</div>
Expand Down

0 comments on commit e9dfedc

Please sign in to comment.