Commit fe4b03e7 authored by jhodgdon's avatar jhodgdon

Issue #1217032 by tars16, aspilicious: Clean up CSS for the Poll module

parent e2d4afa0
/**
* @file
* Admin stylesheet for the Poll module.
*/
.node-form #edit-poll-more {
margin: 0;
}
.node-form #poll-choice-table .form-text {
display: inline;
width: auto;
}
.node-form #poll-choice-table td.choice-flag {
white-space: nowrap;
width: 4em;
}
/**
* @file
* Right-to-left specfic base stylesheet for the Poll module.
*/
.poll .bar .foreground {
float: right;
}
/**
* @file
* Base stylesheet for the Poll module.
*/
.poll {
overflow: hidden;
}
.poll .bar {
height: 1em;
margin: 1px 0;
background-color: #ddd;
}
.poll .bar .foreground {
background-color: #000;
height: 1em;
float: left; /* LTR */
}
......@@ -5,4 +5,5 @@ version = VERSION
core = 8.x
dependencies[] = node
files[] = poll.test
stylesheets[all][] = poll.css
stylesheets[all][] = poll.base.css
stylesheets[all][] = poll.theme.css
......@@ -330,6 +330,9 @@ function poll_form($node, &$form_state) {
'#options' => $duration,
'#description' => t('After this period, the poll will be closed automatically.'),
);
$form['#attached']['css'] = array(
drupal_get_path('module', 'poll') . '/poll.admin.css',
);
return $form;
}
......
.poll .bar .foreground {
float: right;
}
/**
* @file
* Right-to-left specfic theme stylesheet for the Poll module.
*/
.poll .percent {
text-align: left;
}
......
.poll {
overflow: hidden;
}
/**
* @file
* Theme stylesheet for the Poll module.
*/
.poll dl,
.poll dd {
margin: 0;
}
.poll .bar {
height: 1em;
margin: 1px 0;
background-color: #ddd;
}
.poll .bar .foreground {
background-color: #000;
height: 1em;
float: left; /* LTR */
}
.poll .links {
text-align: center;
}
......@@ -34,17 +26,6 @@
.poll .vote-form .poll-title {
font-weight: bold;
}
.node-form #edit-poll-more {
margin: 0;
}
.node-form #poll-choice-table .form-text {
display: inline;
width: auto;
}
.node-form #poll-choice-table td.choice-flag {
white-space: nowrap;
width: 4em;
}
td.poll-chtext {
width: 80%;
}
......
......@@ -259,6 +259,13 @@ ul.action-links li a {
.poll .total {
text-align: left;
}
.poll .choice-title {
clear: left;
}
.poll .percent {
float: left;
text-align: left;
}
/* ---------- Color Form ----------- */
......
......@@ -1543,12 +1543,11 @@ div.admin-panel .description {
font-style: italic;
margin-bottom: 3em;
margin-top: -3.2em;
float: right;
text-align: right;
float: right; /* LTR */
text-align: right; /* LTR */
}
.poll .choice-title {
clear: right;
margin-right: 2.25em;
clear: right; /* LTR */
}
.poll .total {
font-size: 0.929em;
......
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