Commit f7171593 authored by webchick's avatar webchick

Issue #2075475 by sqndr, Oostie, meladawy, temaruk, LewisNyman: Theme with no...

Issue #2075475 by sqndr, Oostie, meladawy, temaruk, LewisNyman: Theme with no screenshot causes CSS height issue.
parent 0526492a
......@@ -269,9 +269,6 @@ table.system-status-report .status-title {
height: auto;
text-align: center;
}
.theme-selector .no-screenshot {
display: none;
}
.theme-default .screenshot {
border: 1px solid #aaa;
}
......@@ -320,17 +317,6 @@ table.system-status-report .status-title {
body:not(.toolbar-vertical) .system-themes-list-disabled .theme-info {
min-height: 170px;
}
body:not(.toolbar-vertical) .no-screenshot {
display: block;
padding-bottom: 57%;
position: relative;
}
body:not(.toolbar-vertical) .no-screenshot__text {
margin-top: -0.76em;
position: absolute;
top: 50%;
width: 100%;
}
}
/**
......@@ -366,17 +352,6 @@ table.system-status-report .status-title {
.toolbar-vertical .system-themes-list-disabled .theme-info {
min-height: 170px;
}
.toolbar-vertical .no-screenshot {
display: block;
padding-bottom: 57%;
position: relative;
}
.toolbar-vertical .no-screenshot__text {
margin-top: -0.76em;
position: absolute;
top: 50%;
width: 100%;
}
}
.system-themes-list-enabled .theme-info {
max-width: 940px;
......
......@@ -452,7 +452,13 @@ function template_preprocess_system_themes_page(&$variables) {
);
}
else {
$current_theme['screenshot'] = array();
$current_theme['screenshot'] = array(
'#theme' => 'image',
'#uri' => drupal_get_path('module', 'system') . '/images/no_screenshot.png',
'#alt' => t('No screenshot'),
'#title' => t('No screenshot'),
'#attributes' => new Attribute(array('class' => array('no-screenshot'))),
);
}
// Localize the theme description.
......
......@@ -34,10 +34,6 @@
<div{{ theme.attributes }}>
{% if theme.screenshot %}
{{ theme.screenshot }}
{% else %}
<div class="no-screenshot">
<div class="no-screenshot__text">{{ "no screenshot"|t }}</div>
</div>
{% endif %}
<div class="theme-info">
<h3>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment