зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1172987 - Incorrect padding for various locales. r=Mardak.
This commit is contained in:
Родитель
70530b4506
Коммит
3512c5b545
|
@ -147,10 +147,14 @@ let gIntro = {
|
||||||
let imageClass = "";
|
let imageClass = "";
|
||||||
switch (this._imageTypes[type]) {
|
switch (this._imageTypes[type]) {
|
||||||
case this._imageTypes.COG:
|
case this._imageTypes.COG:
|
||||||
image = document.getElementById("newtab-customize-panel").cloneNode(true);
|
// Copy the customize panel's subnodes over so that it can be styled
|
||||||
image.removeAttribute("hidden");
|
// appropriately for the intro.
|
||||||
image.removeAttribute("type");
|
image = document.createElementNS(HTML_NAMESPACE, "div");
|
||||||
image.classList.add("newtab-intro-image-customize");
|
image.classList.add("newtab-intro-image-customize");
|
||||||
|
let imageToCopy = document.getElementById("newtab-customize-panel").cloneNode(true);
|
||||||
|
while (imageToCopy.firstChild) {
|
||||||
|
image.appendChild(imageToCopy.firstChild);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case this._imageTypes.PIN_REMOVE:
|
case this._imageTypes.PIN_REMOVE:
|
||||||
imageClass = "-hover";
|
imageClass = "-hover";
|
||||||
|
|
|
@ -478,12 +478,14 @@ input[type=button] {
|
||||||
color: #7A7A7A;
|
color: #7A7A7A;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
height: 52px;
|
line-height: 25px;
|
||||||
line-height: 52px;
|
padding: 15px;
|
||||||
padding-left: 15px;
|
|
||||||
font-weight: 600;
|
font-weight: 600;
|
||||||
cursor: default;
|
cursor: default;
|
||||||
border-radius: 5px 5px 0px 0px;
|
border-radius: 5px 5px 0px 0px;
|
||||||
|
max-width: 300px;
|
||||||
|
overflow: hidden;
|
||||||
|
display: table-cell;
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-customize-title > label {
|
#newtab-customize-title > label {
|
||||||
|
@ -498,15 +500,15 @@ input[type=button] {
|
||||||
.newtab-customize-panel-item,
|
.newtab-customize-panel-item,
|
||||||
.newtab-search-panel-engine,
|
.newtab-search-panel-engine,
|
||||||
#newtab-search-manage {
|
#newtab-search-manage {
|
||||||
line-height: 54px;
|
line-height: 25px;
|
||||||
padding-left: 40px;
|
padding: 15px 15px 15px 40px;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtab-customize-panel-item:not(:last-child),
|
.newtab-customize-panel-item:not(:first-child),
|
||||||
.newtab-search-panel-engine {
|
.newtab-search-panel-engine {
|
||||||
border-bottom: 1px solid threedshadow;
|
border-top: 1px solid threedshadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtab-search-panel-engine > image {
|
.newtab-search-panel-engine > image {
|
||||||
|
@ -529,6 +531,15 @@ input[type=button] {
|
||||||
.newtab-customize-panel-item,
|
.newtab-customize-panel-item,
|
||||||
.newtab-customize-complex-option {
|
.newtab-customize-complex-option {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
display: block;
|
||||||
|
text-align: left;
|
||||||
|
max-width: 300px;
|
||||||
|
background-color: #F9F9F9;
|
||||||
|
}
|
||||||
|
|
||||||
|
.newtab-intro-image-customize .newtab-customize-panel-item,
|
||||||
|
.newtab-intro-image-customize .newtab-customize-complex-option {
|
||||||
|
max-width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtab-customize-panel-item:not([selected]),
|
.newtab-customize-panel-item:not([selected]),
|
||||||
|
@ -578,19 +589,22 @@ input[type=button] {
|
||||||
|
|
||||||
.newtab-customize-panel-subitem {
|
.newtab-customize-panel-subitem {
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
padding-left: 40px;
|
padding: 0px 15px 15px 40px;
|
||||||
padding-bottom: 15px;
|
display: block;
|
||||||
border-bottom: 1px solid threedshadow;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtab-customize-panel-subitem > label {
|
.newtab-customize-panel-subitem > label {
|
||||||
padding-left: 10px;
|
padding-left: 10px;
|
||||||
|
line-height: 20px;
|
||||||
|
vertical-align: middle;
|
||||||
|
max-width: 225px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtab-customize-panel-superitem {
|
.newtab-customize-panel-superitem {
|
||||||
line-height: 14px;
|
line-height: 20px;
|
||||||
border-bottom: medium none !important;
|
border-bottom: medium none !important;
|
||||||
padding: 15px 0px 10px 40px;
|
padding: 15px 15px 10px 40px;
|
||||||
|
border-top: 1px solid threedshadow;
|
||||||
}
|
}
|
||||||
|
|
||||||
.searchSuggestionTable {
|
.searchSuggestionTable {
|
||||||
|
@ -614,11 +628,11 @@ input[type=button] {
|
||||||
transition: opacity .5s linear;
|
transition: opacity .5s linear;
|
||||||
overflow: auto;
|
overflow: auto;
|
||||||
display: none;
|
display: none;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-modal {
|
#newtab-intro-modal {
|
||||||
font-family: "Helvetica";
|
font-family: "Helvetica";
|
||||||
width: 700px;
|
|
||||||
height: 500px;
|
height: 500px;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
|
@ -629,6 +643,11 @@ input[type=button] {
|
||||||
background: linear-gradient(#FFFFFF, #F9F9F9);
|
background: linear-gradient(#FFFFFF, #F9F9F9);
|
||||||
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
|
box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.7);
|
||||||
border-radius: 8px 8px 0px 0px;
|
border-radius: 8px 8px 0px 0px;
|
||||||
|
min-width: 715px;
|
||||||
|
position: relative;
|
||||||
|
display: inline-block;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-header {
|
#newtab-intro-header {
|
||||||
|
@ -639,10 +658,10 @@ input[type=button] {
|
||||||
position: relative;
|
position: relative;
|
||||||
border-bottom: 2px solid #E0DFE0;
|
border-bottom: 2px solid #E0DFE0;
|
||||||
padding-bottom: 10px;
|
padding-bottom: 10px;
|
||||||
width: 600px;
|
|
||||||
display: block;
|
display: block;
|
||||||
margin: 0px auto;
|
margin: 0px auto;
|
||||||
font-weight: 100;
|
font-weight: 100;
|
||||||
|
padding: 0px 15px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-header .bold {
|
#newtab-intro-header .bold {
|
||||||
|
@ -690,7 +709,7 @@ input[type=button] {
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-body {
|
#newtab-intro-body {
|
||||||
height: 300px;
|
height: 310px;
|
||||||
position: relative;
|
position: relative;
|
||||||
display: block;
|
display: block;
|
||||||
top: 50px;
|
top: 50px;
|
||||||
|
@ -707,10 +726,12 @@ input[type=button] {
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-buttons {
|
#newtab-intro-buttons {
|
||||||
height: 90px;
|
|
||||||
text-align: center;
|
text-align: center;
|
||||||
vertical-align: middle;
|
vertical-align: middle;
|
||||||
line-height: 90px;
|
position: absolute;
|
||||||
|
display: block;
|
||||||
|
bottom: 0px;
|
||||||
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-tile {
|
#newtab-intro-tile {
|
||||||
|
@ -718,29 +739,43 @@ input[type=button] {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#newtab-intro-text {
|
||||||
|
text-align: left;
|
||||||
|
right: 0px;
|
||||||
|
width: 270px;
|
||||||
|
}
|
||||||
|
|
||||||
#newtab-intro-text,
|
#newtab-intro-text,
|
||||||
#newtab-intro-image {
|
#newtab-intro-image {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
width: 270px;
|
|
||||||
right: 0px;
|
right: 0px;
|
||||||
position: absolute;
|
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
line-height: 20px;
|
line-height: 20px;
|
||||||
margin-top: -12px;
|
margin-top: -12px;
|
||||||
|
min-width: 270px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-image {
|
#newtab-intro-image {
|
||||||
left: 0px;
|
left: 0px;
|
||||||
right: auto;
|
right: auto;
|
||||||
}
|
float: left;
|
||||||
|
margin-right: 40px;
|
||||||
.newtab-intro-image-tile {
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtab-intro-image-customize {
|
.newtab-intro-image-customize {
|
||||||
display: block;
|
|
||||||
box-shadow: 3px 3px 5px #888;
|
box-shadow: 3px 3px 5px #888;
|
||||||
margin: 0 !important;
|
margin: 0 !important;
|
||||||
|
background-color: #FFF;
|
||||||
|
float: left;
|
||||||
|
z-index: 101;
|
||||||
|
margin-top: -5px;
|
||||||
|
min-width: 270px;
|
||||||
|
padding: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.newtab-intro-image-customize #newtab-customize-title {
|
||||||
|
display: block;
|
||||||
|
max-height: 72px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.newtab-intro-image-customize .newtab-customize-panel-item:not([selected]):hover {
|
.newtab-intro-image-customize .newtab-customize-panel-item:not([selected]):hover {
|
||||||
|
@ -763,7 +798,7 @@ input[type=button] {
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-buttons > input {
|
#newtab-intro-buttons > input {
|
||||||
width: 150px;
|
min-width: 150px;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
margin: 0px 5px;
|
margin: 0px 5px;
|
||||||
vertical-align: bottom;
|
vertical-align: bottom;
|
||||||
|
@ -772,6 +807,7 @@ input[type=button] {
|
||||||
background-color: #FFFFFF;
|
background-color: #FFFFFF;
|
||||||
color: #4A90E2;
|
color: #4A90E2;
|
||||||
-moz-user-focus: normal;
|
-moz-user-focus: normal;
|
||||||
|
padding: 0px 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#newtab-intro-buttons > input[default] {
|
#newtab-intro-buttons > input[default] {
|
||||||
|
|
Загрузка…
Ссылка в новой задаче