diff --git a/core/modules/book/css/book.admin.css b/core/modules/book/css/book.admin.css new file mode 100644 index 0000000..1059aad --- /dev/null +++ b/core/modules/book/css/book.admin.css @@ -0,0 +1,11 @@ +/** + * @file + * Administration styles for the Book module. + */ + +/** + * Book outline on book edit form. + */ +.js .book-outline-form .form-submit { + display: none; +} diff --git a/core/modules/book/css/book.theme-rtl.css b/core/modules/book/css/book.theme-rtl.css new file mode 100644 index 0000000..381a4cc --- /dev/null +++ b/core/modules/book/css/book.theme-rtl.css @@ -0,0 +1,16 @@ +/** + * @file + * Right-to-Left styling for the Book module. + */ + +/** + * Book navigation. + */ +.book-pager .previous { + float: right; + text-align: right; +} +.book-pager .next { + float: left; + text-align: left; +} diff --git a/core/modules/book/css/book.theme.css b/core/modules/book/css/book.theme.css new file mode 100644 index 0000000..f1da027 --- /dev/null +++ b/core/modules/book/css/book.theme.css @@ -0,0 +1,35 @@ +/** + * @file + * Styling for the Book module. + */ + +/** + * Book navigation. + */ +.book-navigation .menu { + padding-bottom: 0; + padding-top: 1em; +} +.book-navigation .book-pager { + margin: 0; + overflow: auto; + padding: 0.5em 0; +} +.book-pager li { + display: inline-block; + list-style-type: none; + vertical-align: top; +} +.book-pager .previous { + text-align: left; /* LTR */ + width: 45%; +} +.book-pager .up { + text-align: center; + width: 8%; +} +.book-pager .next { + float: right; /* LTR */ + text-align: right; /* LTR */ + width: 45%; +} diff --git a/core/modules/edit/css/edit.css b/core/modules/edit/css/edit.module.css similarity index 100% rename from core/modules/edit/css/edit.css rename to core/modules/edit/css/edit.module.css diff --git a/core/modules/edit/edit.module b/core/modules/edit/edit.module index 0c8eb0f..9d98ef5 100644 --- a/core/modules/edit/edit.module +++ b/core/modules/edit/edit.module @@ -100,7 +100,7 @@ function edit_library_info() { ), ), 'css' => array( - $path . '/css/edit.css' => array(), + $path . '/css/edit.module.css' => array(), ), 'dependencies' => array( array('system', 'jquery'), diff --git a/core/modules/field/css/field.module-rtl.css b/core/modules/field/css/field.module-rtl.css new file mode 100644 index 0000000..4c2dec9 --- /dev/null +++ b/core/modules/field/css/field.module-rtl.css @@ -0,0 +1,10 @@ +form .field-multiple-table .field-multiple-drag { + padding-left: 0; +} +form .field-multiple-table .field-multiple-drag .tabledrag-handle{ + padding-left: .5em; +} +.field-label-inline .field-label, +.field-label-inline .field-items { + float: right; +} diff --git a/core/modules/field/css/field.module.css b/core/modules/field/css/field.module.css new file mode 100644 index 0000000..2ec03af --- /dev/null +++ b/core/modules/field/css/field.module.css @@ -0,0 +1,28 @@ + +/* Field display */ +.field .field-label { + font-weight: bold; +} +.field-label-inline .field-label, +.field-label-inline .field-items { + float:left; /*LTR*/ +} + +/* Form display */ +form .field-edit-link { + margin: 0 0.3em; +} +form .field-multiple-table { + margin: 0; +} +form .field-multiple-table .field-multiple-drag { + width: 30px; + padding-right: 0; /*LTR*/ +} +form .field-multiple-table .field-multiple-drag .tabledrag-handle { + padding-right: .5em; /*LTR*/ +} + +form .field-add-more-submit { + margin: .5em 0 0; +} diff --git a/core/modules/forum/css/forum.module-rtl.css b/core/modules/forum/css/forum.module-rtl.css new file mode 100644 index 0000000..0e5d3ed --- /dev/null +++ b/core/modules/forum/css/forum.module-rtl.css @@ -0,0 +1,24 @@ +/** + * @file + * Right-to-left styling for the Forum module. + */ + +#forum .icon { + float: right; + margin: 0 0 0 9px; +} +#forum div.indent { + margin-left: 0; + margin-right: 20px; +} +.forum-topic-navigation { + padding: 1em 3em 0 0; +} +.forum-topic-navigation .topic-previous { + text-align: left; + float: right; +} +.forum-topic-navigation .topic-next { + text-align: right; + float: left; +} diff --git a/core/modules/forum/css/forum.module.css b/core/modules/forum/css/forum.module.css new file mode 100644 index 0000000..0c4f8fc --- /dev/null +++ b/core/modules/forum/css/forum.module.css @@ -0,0 +1,47 @@ +/** + * @file + * Styling for the Forum module. + */ + +#forum .description { + font-size: 0.9em; + margin: 0.5em; +} +#forum td.created, +#forum td.posts, +#forum td.topics, +#forum td.last-reply, +#forum td.replies, +#forum td.pager { + white-space: nowrap; +} +#forum .icon{ + background-image: url(../../../misc/forum-icons.png); + background-repeat: no-repeat; + float: left; /* LTR */ + height: 24px; + margin: 0 9px 0 0; /* LTR */ + width: 24px; +} +#forum .title { + overflow: hidden; +} +#forum div.indent { + margin-left: 20px; /* LTR */ +} + +#forum .topic-status-new { + background-position: -24px 0; +} +#forum .topic-status-hot { + background-position: -48px 0; +} +#forum .topic-status-hot-new { + background-position: -72px 0; +} +#forum .topic-status-sticky { + background-position: -96px 0; +} +#forum .topic-status-closed { + background-position: -120px 0; +} diff --git a/core/modules/image/css/image.admin.css b/core/modules/image/css/image.admin.css new file mode 100644 index 0000000..8b37456 --- /dev/null +++ b/core/modules/image/css/image.admin.css @@ -0,0 +1,79 @@ + +/** + * Image style configuration pages. + */ +.image-style-new, +.image-style-new div { + display: inline; +} +.image-style-preview .preview-image-wrapper { + float: left; + padding-bottom: 2em; + text-align: center; + top: 50%; + width: 48%; +} +.image-style-preview .preview-image { + margin: auto; + position: relative; +} +.image-style-preview .preview-image .width { + border: 1px solid #666; + border-top: none; + bottom: -6px; + height: 2px; + left: -1px; + position: absolute; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.image-style-preview .preview-image .width span { + position: relative; + top: 4px; +} +.image-style-preview .preview-image .height { + border: 1px solid #666; + border-left: none; + position: absolute; + right: -6px; + top: -1px; + width: 2px; + -webkit-box-sizing: content-box; + -moz-box-sizing: content-box; + box-sizing: content-box; +} +.image-style-preview .preview-image .height span { + height: 2em; + left: 10px; + margin-top: -1em; + position: absolute; + top: 50%; +} + +/** + * Improve image style preview on narrow viewports. + */ +@media screen and (max-width: 470px) { + .image-style-preview .preview-image-wrapper { + float: none; + margin-bottom: 1em; + } + .image-style-preview .preview-image-wrapper:last-child { + margin-bottom: 0; + } +} + +/** + * Image anchor element. + */ +.image-anchor { + width: auto; +} +.image-anchor .even, +.image-anchor .odd { + background: none; +} +.image-anchor td { + border: 1px solid #ccc; +} diff --git a/core/modules/image/css/image.skin-rtl.css b/core/modules/image/css/image.skin-rtl.css new file mode 100644 index 0000000..facb97b --- /dev/null +++ b/core/modules/image/css/image.skin-rtl.css @@ -0,0 +1,11 @@ + +/** + * Image upload widget. + */ +.image-preview { + float: right; + padding: 0 0 10px 10px; +} +.image-widget-data { + float: right; +} diff --git a/core/modules/image/css/image.skin.css b/core/modules/image/css/image.skin.css new file mode 100644 index 0000000..9f7d534 --- /dev/null +++ b/core/modules/image/css/image.skin.css @@ -0,0 +1,14 @@ + +/** + * Image upload widget. + */ +.image-preview { + float: left; /* LTR */ + padding: 0 10px 10px 0; /* LTR */ +} +.image-widget-data { + float: left; /* LTR */ +} +.image-widget-data .text-field { + width: auto; +} diff --git a/core/modules/node/css/node.admin.css b/core/modules/node/css/node.admin.css new file mode 100644 index 0000000..101a38d --- /dev/null +++ b/core/modules/node/css/node.admin.css @@ -0,0 +1,11 @@ +/** + * @file + * Styles for administration pages. + */ + +/** + * Revisions overview screen. + */ +.revision-current { + background: #ffc; +} diff --git a/core/modules/node/css/node.module.css b/core/modules/node/css/node.module.css new file mode 100644 index 0000000..1f92354 --- /dev/null +++ b/core/modules/node/css/node.module.css @@ -0,0 +1,69 @@ +/** + * @file + * Styles for administration pages. + */ + +/** + * Node add/edit form layout + */ + +/* Narrow screens */ +.layout-region { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; +} + +/* Wide screens */ +@media + screen and (min-width: 780px), + (orientation: landscape) and (min-device-height: 780px) { + + .layout-region-node-main, + .layout-region-node-footer { + float: left; /* LTR */ + width: 65%; + padding-right: 2em; + } + + .layout-region-node-secondary { + float: right; /* LTR */ + width: 35%; + } + + /* @todo File an issue to add a standard class to all text-like inputs */ + .layout-region-node-secondary .form-autocomplete, + .layout-region-node-secondary .form-text, + .layout-region-node-secondary .form-tel, + .layout-region-node-secondary .form-email, + .layout-region-node-secondary .form-url, + .layout-region-node-secondary .form-search, + .layout-region-node-secondary .form-number, + .layout-region-node-secondary .form-color, + .layout-region-node-secondary textarea { + -webkit-box-sizing: border-box; + -moz-box-sizing: border-box; + box-sizing: border-box; + width: 100%; + max-width: 100%; + } +} + +/** + * The vertical toolbar mode gets triggered for narrow screens, which throws off + * the intent of media queries written for the viewport width. When the vertical + * toolbar is on, we need to suppress layout for the original media width + the + * toolbar width (240px). In this case, 240px + 780px. + */ +@media + screen and (max-width: 1020px), + (orientation: landscape) and (max-device-height: 1020px) { + + .toolbar-vertical .layout-region-node-main, + .toolbar-vertical .layout-region-node-footer, + .toolbar-vertical .layout-region-node-secondary { + float: none; + width: auto; + padding-right: 0; + } +} diff --git a/core/modules/openid/css/openid-rtl.module.css b/core/modules/openid/css/openid-rtl.module.css new file mode 100644 index 0000000..36acd61 --- /dev/null +++ b/core/modules/openid/css/openid-rtl.module.css @@ -0,0 +1,10 @@ +#edit-openid-identifier { + background-position: right 50%; + padding-left: 0; + padding-right: 20px; +} + +#block-user-login .openid-link { + background-position: right top; + padding: 0 1.5em 0 0; +} diff --git a/core/modules/openid/css/openid.module.css b/core/modules/openid/css/openid.module.css new file mode 100644 index 0000000..f96058e --- /dev/null +++ b/core/modules/openid/css/openid.module.css @@ -0,0 +1,17 @@ +#edit-openid-identifier { + background-image: url("login-bg.png"); + background-position: left 50%; /* LTR */ + background-repeat: no-repeat; + padding-left: 20px; /* LTR */ +} + +#block-user-login #openid-login-form { + display: none; +} + +#block-user-login .openid-link { + background-image: url("login-bg.png"); + background-position: left top; /* LTR */ + background-repeat: no-repeat; + padding: 0 0 0 1.5em; /* LTR */ +} diff --git a/core/modules/shortcut/css/shortcut.module-rtl.css b/core/modules/shortcut/css/shortcut.module-rtl.css new file mode 100644 index 0000000..ed903a7 --- /dev/null +++ b/core/modules/shortcut/css/shortcut.module-rtl.css @@ -0,0 +1,13 @@ + +/** + * @file + * Generic RTL base styles for shortcut module. + */ + +/** + * Add/remove links. + */ +.add-or-remove-shortcuts .icon, +.add-or-remove-shortcuts .text { + float: right; +} diff --git a/core/modules/shortcut/css/shortcut.module.css b/core/modules/shortcut/css/shortcut.module.css new file mode 100644 index 0000000..8575904 --- /dev/null +++ b/core/modules/shortcut/css/shortcut.module.css @@ -0,0 +1,22 @@ +/** + * @file + * Generic base styles for shortcut module. + */ + +/** + * Add/remove links. + */ +.add-or-remove-shortcuts .icon { + display: block; + float: left; /* LTR */ + margin-top: 5px; +} +.add-or-remove-shortcuts .text { + display: none; + float: left; /* LTR */ + padding-top: 2px; +} +.add-or-remove-shortcuts a:focus .text, +.add-or-remove-shortcuts a:hover .text { + display: block; +} diff --git a/core/modules/shortcut/css/shortcut.theme-rtl.css b/core/modules/shortcut/css/shortcut.theme-rtl.css new file mode 100644 index 0000000..8a687d9 --- /dev/null +++ b/core/modules/shortcut/css/shortcut.theme-rtl.css @@ -0,0 +1,41 @@ + +/** + * @file + * RTL styling for the shortcut module. + */ + +/** + * Add/remove links. + */ +.add-or-remove-shortcuts .icon { + margin-left: 0; + margin-right: 8px; +} +.add-shortcut a:focus .icon, +.add-shortcut a:hover .icon { + background-position: 0 -24px; +} +.remove-shortcut a:focus .icon, +.remove-shortcut a:hover .icon { + background-position: -12px -24px; +} +.add-or-remove-shortcuts .text { + padding: 0 10px 0 6px; +} +.add-or-remove-shortcuts a:focus .text, +.add-or-remove-shortcuts a:hover .text { + border-radius: 5px 0 0 5px; +} + +/** + * Toolbar. + */ +.toolbar-js .horizontal #edit-shortcuts { + border-left: 0 none; + border-right: 1px solid #d9d9d9; + float: right; + margin-left: 0; + margin-right: 0.3333em; + padding-left: 0.3333em; + padding-right: 0.6667em; +} diff --git a/core/modules/shortcut/css/shortcut.theme.css b/core/modules/shortcut/css/shortcut.theme.css new file mode 100644 index 0000000..2a1a6ab --- /dev/null +++ b/core/modules/shortcut/css/shortcut.theme.css @@ -0,0 +1,52 @@ +/** + * @file + * Styling for the shortcut module. + */ + +/** + * Toolbar. + */ +.icon-shortcut:before { + background-image: url("../images/shortcut.png"); +} +.icon-shortcut:active:before, +.icon-shortcut.active:before { + background-image: url("../images/shortcut-active.png"); +} +.toolbar .tray.horizontal.shortcuts .menu { + float: left; +} +.edit-shortcuts { + display: block; +} +.toolbar .vertical .edit-shortcuts { + text-align: right; + padding: 1em; +} +.toolbar .horizontal .edit-shortcuts { + float: left; /* LTR */ +} + +/** + * Add/remove links. + */ +.add-or-remove-shortcuts .icon { + background: transparent url(../shortcut.png) no-repeat; + height: 12px; + margin-left: 8px; /* LTR */ + overflow: hidden; + text-indent: 12px; + width: 12px; +} +.add-shortcut a:focus .icon, +.add-shortcut a:hover .icon { + background-position: 0 -12px; /* LTR */ +} +.remove-shortcut .icon { + margin-top: 4px; + background-position: -12px 0; +} +.remove-shortcut a:focus .icon, +.remove-shortcut a:hover .icon { + background-position: -12px -12px; /* LTR */ +} diff --git a/core/modules/simpletest/css/simpletest.module.css b/core/modules/simpletest/css/simpletest.module.css new file mode 100644 index 0000000..86bd04b --- /dev/null +++ b/core/modules/simpletest/css/simpletest.module.css @@ -0,0 +1,89 @@ + +/* Test Table */ +#simpletest-form-table th.select-all { + width: 1em; +} +th.simpletest_test { + width: 16em; +} + +.simpletest-image { + display: inline-block; + cursor: pointer; + width: 1em; +} +.simpletest-group-label label { + display: inline; + font-weight: bold; +} +.simpletest-test-label label { + margin-left: 1em; /* LTR */ +} +.simpletest-test-description .description { + margin: 0; +} +#simpletest-form-table tr td { + background-color: white; + color: #494949; +} +#simpletest-form-table tr.simpletest-group td { + background-color: #edf5fa; + color: #494949; +} + +table#simpletest-form-table tr.simpletest-group label { + display: inline; +} + +div.message > div.item-list { + font-weight: normal; +} + +div.simpletest-pass { + color: #33a333; +} +.simpletest-fail { + color: #981010; +} + +tr.simpletest-pass.odd { + background-color: #b6ffb6; +} +tr.simpletest-pass.even { + background-color: #9bff9b; +} +tr.simpletest-fail.odd { + background-color: #ffc9c9; +} +tr.simpletest-fail.even { + background-color: #ffacac; +} +tr.simpletest-exception.odd { + background-color: #f4ea71; +} +tr.simpletest-exception.even { + background-color: #f5e742; +} +tr.simpletest-debug.odd { + background-color: #eee; +} +tr.simpletest-debug.even { + background-color: #fff; +} + +a.simpletest-collapse { + height: 0; + width: 0; + top: -99em; + position: absolute; +} +a.simpletest-collapse:focus, +a.simpletest-collapse:hover { + font-size: 80%; + top: 0px; + height: auto; + width: auto; + overflow: visible; + position: relative; + z-index: 1000; +} diff --git a/core/modules/tour/css/tour-rtl.css b/core/modules/tour/css/tour.module-rtl.css similarity index 100% rename from core/modules/tour/css/tour-rtl.css rename to core/modules/tour/css/tour.module-rtl.css diff --git a/core/modules/tour/css/tour.css b/core/modules/tour/css/tour.module.css similarity index 100% rename from core/modules/tour/css/tour.css rename to core/modules/tour/css/tour.module.css diff --git a/core/modules/tour/tour.module b/core/modules/tour/tour.module index fe9bc1a..8d96cfd 100644 --- a/core/modules/tour/tour.module +++ b/core/modules/tour/tour.module @@ -45,7 +45,7 @@ function tour_library_info() { 'title' => 'Tour', 'version' => VERSION, 'css' => array( - $path . '/css/tour.css' => array('media' => 'screen'), + $path . '/css/tour.module.css' => array('media' => 'screen'), ) );