remove stale fixed font-sizes for promo modules
This commit is contained in:
Родитель
53fb7380ef
Коммит
93ffb044ae
|
@ -116,7 +116,6 @@
|
|||
margin-bottom: 0;
|
||||
}
|
||||
h2 {
|
||||
font-size: 96px;
|
||||
text-shadow: 0 1px 0 rgba(255,255,255,0.5);
|
||||
}
|
||||
hgroup {
|
||||
|
@ -226,11 +225,10 @@
|
|||
}
|
||||
}
|
||||
|
||||
#promos #new-year {
|
||||
#new-year {
|
||||
background: url(../../img/zamboni/discovery_pane/promos/new-year.jpg) 50% 50% no-repeat;
|
||||
h2 {
|
||||
color: #ffc;
|
||||
font-size: 28px;
|
||||
margin: 30px 0;
|
||||
text-shadow: 0 1px 0 rgba(0,0,0,.5);
|
||||
}
|
||||
|
@ -337,14 +335,3 @@
|
|||
height: 0;
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
html[lang=it],
|
||||
html[lang^=es],
|
||||
html[lang=fr] {
|
||||
#promos {
|
||||
.ryff h3,
|
||||
.promo h2 {
|
||||
font-size: 24px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -88,7 +88,7 @@ $.fn.linefit = function() {
|
|||
return this.each(function() {
|
||||
var $this = $(this),
|
||||
fs = parseFloat($this.css('font-size').replace('px', '')),
|
||||
max_height = parseFloat($this.css('line-height').replace('px', '')),
|
||||
max_height = Math.ceil(parseFloat($this.css('line-height').replace('px', ''))),
|
||||
height = $this.height();
|
||||
while (height > max_height && fs > min_font_size) {
|
||||
// Repeatedly shrink the text by 0.5px until all the text fits.
|
||||
|
|
Загрузка…
Ссылка в новой задаче