Skip to content

Commit

Permalink
슬라이더 양쪽 버튼에 그림자를 넣습니다.#45 (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
wagurano authored Feb 17, 2021
1 parent 5026ced commit 7215586
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
14 changes: 14 additions & 0 deletions app/assets/stylesheets/parti.scss
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,20 @@ footer{
border-color: #7d7d7d;
}

.icon-shadow-top{
margin-top: -3px;
}

.prev-icon-shadow{
margin-right: -24px;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23f' viewBox='0 0 8 8'%3e%3cpath d='M5.25 0l-4 4 4 4 1.5-1.5-2.5-2.5 2.5-2.5-1.5-1.5z'/%3e%3c/svg%3e");
}

.next-icon-shadow{
margin-right: -16px;
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='%23f' viewBox='0 0 8 8'%3e%3cpath d='M2.75 0l-1.5 1.5 2.5 2.5-2.5 2.5 1.5 1.5 4-4-4-4z'/%3e%3c/svg%3e");
}

@media (min-width: 768px){
.navbar{
padding: 1rem 1.5rem;
Expand Down
7 changes: 5 additions & 2 deletions app/views/pages/home.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,12 @@
%h2.badge-primary
= Post.find(2).title
%a.carousel-control-prev{"data-bs-slide" => "prev", :href => "#introSlide", :role => "button"}
%span.carousel-control-prev-icon{"aria-hidden" => "true"}
%span.carousel-control-prev-icon.prev-icon-shadow{"aria-hidden" => "true"}
%span.carousel-control-prev-icon.icon-shadow-top{"aria-hidden" => "true"}

%a.carousel-control-next{"data-bs-slide" => "next", :href => "#introSlide", :role => "button"}
%span.carousel-control-next-icon{"aria-hidden" => "true"}
%span.carousel-control-next-icon.next-icon-shadow{"aria-hidden" => "true"}
%span.carousel-control-next-icon.icon-shadow-top{"aria-hidden" => "true"}


%section.my-5
Expand Down

0 comments on commit 7215586

Please sign in to comment.