Skip to content

Commit d810b09

Browse files
committed
Align dojo description to the same height in the flex box #721
1 parent 382982e commit d810b09

File tree

2 files changed

+14
-11
lines changed

2 files changed

+14
-11
lines changed

app/assets/stylesheets/custom.scss

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -535,15 +535,18 @@ body>footer a:hover {
535535
background: #fff;
536536
position: relative;
537537
text-align: center;
538-
display: block;
539-
height: auto
540-
}
538+
height: auto;
541539

542-
.dojo>p {
543-
font-size: 90%;
544-
padding: 5px 10px;
545-
text-align: center;
546-
margin: 5px 0
540+
//display: block;
541+
display: flex;
542+
flex-direction: column;
543+
p {
544+
font-size: 70%;
545+
padding: 10px 10px 5px;
546+
text-align: center;
547+
margin: 5px 0;
548+
margin-top: auto;
549+
}
547550
}
548551

549552
.dojo-picture {
@@ -552,7 +555,7 @@ body>footer a:hover {
552555
width: 96px;
553556
background-position: center center; // border-radius: 48px;
554557
background-size: cover;
555-
margin: 0 auto
558+
margin: 0 auto;
556559
}
557560

558561
.dojo-name {
@@ -571,7 +574,7 @@ body>footer a:hover {
571574
}
572575

573576
.dojo-private:hover {
574-
text-decoration: none
577+
text-decoration: none;
575578
}
576579

577580
.event-region {

app/views/shared/_dojo.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
%ul.tags
77
- dojo.tags.each do |tag|
88
%li= tag
9-
%p
9+
%p.dojo-desciption
1010
= dojo.description
1111
- if dojo.is_private
1212
%a.dojo-private{href: '/docs/private-dojo'} Private

0 commit comments

Comments
 (0)