From c2b150df121b11cb11ad0aa4bda12e3eb059afc7 Mon Sep 17 00:00:00 2001 From: f Date: Sun, 9 May 2021 13:12:06 -0300 Subject: [PATCH] migas responsivas --- app/assets/stylesheets/application.scss | 7 +++++++ app/views/layouts/_breadcrumb.haml | 6 +++--- 2 files changed, 10 insertions(+), 3 deletions(-) diff --git a/app/assets/stylesheets/application.scss b/app/assets/stylesheets/application.scss index 0a215c4..5886a2a 100644 --- a/app/assets/stylesheets/application.scss +++ b/app/assets/stylesheets/application.scss @@ -355,6 +355,13 @@ $bezier: cubic-bezier(0.75, 0, 0.25, 1); .text-column-#{$size} { column-count: $size; } + + .line-clamp-#{$size} { + overflow: hidden; + display: -webkit-box; + -webkit-line-clamp: $size; + -webkit-box-orient: vertical; + } } /* diff --git a/app/views/layouts/_breadcrumb.haml b/app/views/layouts/_breadcrumb.haml index 29201b0..c4920bc 100644 --- a/app/views/layouts/_breadcrumb.haml +++ b/app/views/layouts/_breadcrumb.haml @@ -4,13 +4,13 @@ title: t('svg.sutty.title'), desc: t('svg.sutty.desc') %nav{ aria: { label: t('.title') } } - %ol.breadcrumb + %ol.breadcrumb.m-0.flex-wrap - breadcrumb_trail do |crumb| %li.breadcrumb-item{ class: crumb.current? ? 'active' : '' } - if crumb.current? - %span{ aria: { current: 'page' } }= crumb.name + %span.line-clamp-1{ aria: { current: 'page' } }= crumb.name - else - %span= link_to crumb.name, crumb.url + %span.line-clamp-1= link_to crumb.name, crumb.url - if current_usuarie %ul.navbar-nav