Skip to content

Commit

Permalink
Merge pull request #149 from 2gis/fixCloseButton
Browse files Browse the repository at this point in the history
Пофикшен баг с заезжаем текста под кнопку закрытия.
  • Loading branch information
andymost committed Jan 21, 2015
2 parents 683f018 + cc1a86e commit 86989c9
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 5 deletions.
3 changes: 0 additions & 3 deletions src/DGCustomization/skin/basic/less/dg-popup.ie.less

This file was deleted.

1 change: 0 additions & 1 deletion src/DGCustomization/skin/basic/less/dg-popup.less
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.dg-popup {
}
.dg-popup__container {
overflow: hidden;
margin: 0;
}

Expand Down
11 changes: 11 additions & 0 deletions src/DGCustomization/skin/basic/less/leaflet.less
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,17 @@
max-height ease-out .2s,
height ease-out .2s;
transform-origin: 50% 100%;

// Чтобы текст не заезжал под кнопку закрытия. Для не инлайновых боксов
// можно получить нужное поведение применяя к ним overflow:hidden или display:(inline-block|table) .
&:before {
float: right;
width: 30px;
// popupPadding + 1 , первая строчка текста уже среагирует на кнопку,
// но минимум проблем с не инлайновыми боксами
height: 17px;
content: '';
}
}
.leaflet-popup-content {
position: relative;
Expand Down
1 change: 0 additions & 1 deletion src/DGGeoclicker/skin/basic/less/dg-popup.less
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@

.dg-popup__header-title {
display: block;
margin: 0 18px 0 0;
white-space: normal;
font: 22px/24px 'Arial narrow', Arial, sans-serif;
}
Expand Down

0 comments on commit 86989c9

Please sign in to comment.