Skip to content

Commit e9dfedc

Browse files
committed
hide tutorial's scrollbar
1 parent aa2769e commit e9dfedc

File tree

2 files changed

+11
-3
lines changed

2 files changed

+11
-3
lines changed

assets/css/style.css

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,13 +416,21 @@ header {
416416
margin-bottom: 102px;
417417
background: linear-gradient(90deg, #7C96F7 0%, #6C63FF 100%);
418418
background-image: url('../images/Tutorials.png');
419-
background-size: contain;
419+
background-size: 100%;
420420
background-repeat: no-repeat;
421421
min-height: 800px;
422422
}
423+
.tutorials .row::-webkit-scrollbar {
424+
display: none;
425+
}
426+
.tutorials .row{
427+
-ms-overflow-style: none; /* IE and Edge */
428+
scrollbar-width: none; /* Firefox */
429+
}
423430

424431
.tutorial {
425432
width: 350px;
433+
flex-shrink: 0;
426434
background: #F0F0F0;
427435
box-shadow: 0px 10px 40px rgba(50, 45, 45, 0.25);
428436
border-radius: 10px;

tutorials.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<section class="tutorials">
22
<h2 class="title">دوره های آموزشی</h2>
3-
<div class="row">
3+
<div class="row" style="overflow-x: scroll;">
44
<?php
55
$args = array(
66
'post_type' => 'tutorial'
@@ -28,7 +28,7 @@
2828
<h2 class="tutorial_title"><?php echo get_the_title(); ?></h2>
2929
</a>
3030
<div class="row">
31-
<span class="price_tag">11,300 تومان</span>
31+
<span class="price_tag">رایگان</span>
3232
</div>
3333
</div>
3434
</div>

0 commit comments

Comments
 (0)