[ticket/15297] revert changes to responsive.css and fix by editing bidi.css

Revert changes to responsive.css
Adding class to bidi.css

PHPBB3-15297
This commit is contained in:
hubaishan 2017-07-30 12:14:48 +03:00
parent ff5c88be77
commit 5d0a41b814
2 changed files with 608 additions and 648 deletions

View file

@ -13,6 +13,10 @@
text-align: left;
}
.rtl p.jumpbox-return {
float: right;
}
.rtl div.rules ul {
margin-left: 0;
margin-right: 20px;
@ -20,6 +24,11 @@
/* Main blocks
---------------------------------------- */
.rtl .icon {
padding-right: 0;
padding-left: 2px;
}
.rtl .logo {
float: right;
padding: 10px 10px 0 13px;
@ -27,11 +36,11 @@
/* Site Description
--------------------------------------------- */
.rtl #site-description {
.rtl .site-description {
float: right;
}
.rtl #site-description h1 {
.rtl .site-description h1 {
margin-left: 0;
}
@ -81,14 +90,9 @@
padding-right: 0;
}
.rtl ul.linklist li.responsive-menu a.responsive-menu-link:before {
left: auto;
right: 0;
}
/* Dropdown menu
---------------------------------------- */
.rtl .dropdown-container.topic-tools {
.rtl .dropdown-container.topic-tools, .rtl .dropdown-container-left {
float: right;
}
@ -114,12 +118,17 @@
text-align: right;
}
.rtl .dropdown-extended .header .header_settings {
.rtl .dropdown-extended .header .header_settings, .rtl .dropdown-container-right {
float: left;
}
.rtl .jumpbox .dropdown-contents a {
margin-right: 0;
margin-left: 20px;
}
/* Notifications
----------------------------------------*/
-----------------------------------------*/
.rtl .notification_list ul li img {
float: right;
margin-left: 5px;
@ -261,23 +270,26 @@
margin-right: 0;
}
.pagination li.previous a { background-position: -50px 2px; }
.pagination li.next a { background-position: -30px 2px; }
.pagination li.previous a:hover { background-position: -50px -18px; }
.pagination li.next a:hover { background-position: -30px -18px; }
/* Action Bar styles
---------------------------------------- */
.rtl .action-bar .button {
margin-right: 0;
float: right;
}
.rtl .action-bar > .button {
margin-left: 5px;
float: right;
}
.rtl .action-bar .dropdown-button-control .button {
margin-left: 5px;
}
/* Miscellaneous styles
---------------------------------------- */
.rtl #forum-permissions {
float: left;
padding-right: 5px;
padding-left: 0;
margin-right: 5px;
margin-left: 0;
text-align: left;
}
.rtl #quick-links {
.rtl .quick-links {
margin-left: 7px;
margin-right: 0;
}
@ -296,11 +308,6 @@
* links.css
*/
/* Back to top of page */
.rtl .back2top {
text-align: left;
}
/* Links adjustment to correctly display an order of rtl/ltr mixed content */
.rtl a {
direction: rtl;
@ -309,7 +316,6 @@
li.breadcrumbs span:first-child > a {
padding-left: 0;
padding-right: 19px;
}
/* Notification mark read link */
@ -319,14 +325,9 @@ li.breadcrumbs span:first-child > a {
right: auto;
}
.rtl a.top {
.rtl .back2top .top {
float: left;
}
.rtl a.top2 {
background-position: 100% 50%;
padding-left: 0;
padding-right: 15px;
margin-left: -10px;
}
.rtl .skiplink {
@ -416,26 +417,26 @@ li.breadcrumbs span:first-child > a {
padding-right: 1px;
}
.rtl dl.icon {
.rtl dl.row-item{
background-position: 99.5% 50%;
}
.rtl li.header dl.icon dt .list-inner {
.rtl li.header dl.row-item dt .list-inner {
/* Tweak for headers alignment when folder icon used */
padding-right: 0;
padding-left: 50px;
}
.rtl dl.icon dt {
.rtl dl.row-item dt {
background-position: 99.5% 95%; /* Position of topic icon */
}
.rtl dl.icon dt .list-inner {
.rtl dl.row-item dt .list-inner {
padding-left: 5px;
padding-right: 45px; /* Space for folder icon */
}
.rtl dl a.icon-link { /* topic row icon links */
.rtl dl a.row-item-link { /* topic row icon links */
display: inline-block;
left: auto;
right: 0;
@ -461,7 +462,6 @@ li.breadcrumbs span:first-child > a {
.rtl p.post-notice {
padding-left: 5px;
padding-right: 26px;
}
.rtl p.post-notice:before {
@ -471,7 +471,7 @@ li.breadcrumbs span:first-child > a {
/* Topic review panel
----------------------------------------*/
.rtl #topicreview {
.rtl .topicreview {
padding-right: 0;
padding-left: 5px;
}
@ -501,7 +501,6 @@ li.breadcrumbs span:first-child > a {
/* Quote block */
.rtl blockquote {
margin: 0.5em 25px 0 1px;
background-position: 99% 8px;
}
.rtl blockquote blockquote {
@ -511,10 +510,13 @@ li.breadcrumbs span:first-child > a {
.rtl blockquote cite {
/* Username/source of quoter */
margin-right: 20px;
margin-left: 0;
}
.rtl blockquote cite:before, .rtl .uncited:before {
padding-left: 5px;
}
.rtl blockquote .codebox {
margin-right: 0;
}
@ -602,48 +604,12 @@ li.breadcrumbs span:first-child > a {
/**
* buttons.css
*/
.rtl .dropdown-select {
padding-left: 24px;
padding-right: 8px;
}
.rtl .icon-button:before {
float: left;
margin-left: 0;
margin-right: 2px;
}
.rtl .dropdown-select.icon-button:before {
margin-left: 4px;
margin-right: 0;
}
.rtl .dropdown-select:after {
border-left: 0;
border-right-style: solid;
border-right-width: 1px;
left: 0;
right: auto;
}
.rtl .buttons, .rtl .buttons .button {
float: right;
}
.rtl .buttons .button, .rtl .dropdown-select {
margin-left: 5px;
margin-right: 0;
}
/* Icon images
---------------------------------------- */
.rtl .small-icon {
background-position: 100% 50%;
}
.rtl .small-icon > a {
padding-left: 0;
padding-right: 19px;
.rtl .caret {
border-right: 1px solid;
border-right-color: inherit;
border-left: none;
right: 6px;
}
/* Post control buttons
@ -661,10 +627,6 @@ li.breadcrumbs span:first-child > a {
float: right;
}
.post-buttons .icon-button:before {
margin-right: 0;
}
/* Poster contact icons
----------------------------------------*/
.rtl .contact-icons a {
@ -687,20 +649,20 @@ li.breadcrumbs span:first-child > a {
/* Main CP box
----------------------------------------*/
.rtl #cp-menu {
.rtl .cp-menu {
float: right;
}
.rtl #cp-main {
.rtl .cp-main {
float: right;
}
.rtl #cp-main .panel ol {
.rtl .cp-main .panel ol {
margin-right: 2em;
margin-left: 0;
}
.rtl #cp-main .buttons {
.rtl .cp-main .buttons {
margin-right: 0;
margin-left: 0;
}
@ -711,52 +673,52 @@ li.breadcrumbs span:first-child > a {
/* CP tabbed menu
----------------------------------------*/
.rtl #tabs {
.rtl .tabs {
margin-left: 0;
margin-right: 7px;
}
.rtl #tabs .tab {
.rtl .tabs .tab {
float: right;
}
.rtl #tabs .tab > a {
.rtl .tabs .tab > a {
margin-left: 1px;
margin-right: 0;
}
/* Mini tabbed menu used in MCP
----------------------------------------*/
.rtl #minitabs {
.rtl .minitabs {
float: left;
margin-right: 0;
margin-left: 7px;
}
.rtl #minitabs .tab {
.rtl .minitabs .tab {
float: left;
}
.rtl #minitabs .tab > a {
.rtl .minitabs .tab > a {
margin-right: 2px;
margin-left: 0;
}
/* Responsive tabs
----------------------------------------*/
.rtl #tabs .dropdown {
.rtl .tabs .dropdown {
margin-left: -2px;
}
.rtl #tabs .dropdown li {
.rtl .tabs .dropdown li {
text-align: left;
}
.rtl #minitabs .dropdown {
.rtl .minitabs .dropdown {
margin-left: -4px;
}
.rtl #minitabs .dropdown li {
.rtl .minitabs .dropdown li {
text-align: right;
}
@ -764,7 +726,7 @@ li.breadcrumbs span:first-child > a {
----------------------------------------*/
@media only screen and (max-width: 900px), only screen and (max-device-width: 900px)
{
.rtl #cp-menu, .rtl #navigation, .rtl #cp-main {
.rtl .cp-menu, .rtl .navigation, .rtl .cp-main {
float: none;
}
}
@ -774,7 +736,7 @@ li.breadcrumbs span:first-child > a {
/* Preferences pane layout
----------------------------------------*/
.rtl #cp-main h2 {
.rtl .cp-main h2 {
margin-left: 0;
margin-right: 10px;
}
@ -815,7 +777,7 @@ li.breadcrumbs span:first-child > a {
}
/* Avatar gallery */
.rtl #gallery label {
.rtl .gallery label {
float: right;
}
@ -823,7 +785,7 @@ li.breadcrumbs span:first-child > a {
----------------------------------------*/
@media only screen and (max-width: 900px), only screen and (max-device-width: 900px)
{
.rtl #cp-menu, .rtl #navigation, .rtl #cp-main {
.rtl .cp-menu, .rtl .navigation, .rtl .cp-main {
float: none;
}
}
@ -910,6 +872,10 @@ li.breadcrumbs span:first-child > a {
padding-right: 0;
}
.rtl .dropdown fieldset.display-options label {
text-align: left;
}
/* Display actions for ucp and mcp pages */
.rtl fieldset.display-actions {
text-align: left;
@ -935,7 +901,7 @@ li.breadcrumbs span:first-child > a {
----------------------------------------*/
/* Emoticons panel */
.rtl #smiley-box {
.rtl .smiley-box {
float: left;
}
@ -955,16 +921,20 @@ li.breadcrumbs span:first-child > a {
padding: 3px;
}
.rtl .search-box .button {
.rtl .button-search,
.button-search-end {
float: right;
}
.rtl .search-box a.button {
.rtl .button-search-end {
border-radius: 4px 0 0 4px;
border-left-width: 1px;
border-right-width: 0;
}
.rtl .search-header .button-search-end {
border: 0;
border-radius: 4px 0 0 4px;
padding-left: 5px;
padding-right: 3px;
}
.rtl .search-header {
@ -973,47 +943,14 @@ li.breadcrumbs span:first-child > a {
margin-left: 5px;
}
.rtl input.search {
background-position: right 1px;
padding-right: 17px;
padding-left: 0;
}
/* Form button styles
---------------------------------------- */
/** Reference: Bug #27155 */
.rtl #wrap, .rtl .headerbar, .rtl #site-description, .rtl .navbar {
.rtl .wrap, .rtl .headerbar, .rtl .site-description, .rtl .navbar {
position: relative;
}
/* Former imageset */
.rtl .imageset.forum_link, .rtl .imageset.forum_read, .rtl .imageset.forum_read_locked, .rtl .imageset.forum_read_subforum, .rtl .imageset.forum_unread, .rtl .imageset.forum_unread_locked, .rtl .imageset.forum_unread_subforum, .rtl .imageset.topic_moved, .rtl .imageset.topic_read, .rtl .imageset.topic_read_mine, .rtl .imageset.topic_read_hot, .rtl .imageset.topic_read_hot_mine, .rtl .imageset.topic_read_locked, .rtl .imageset.topic_read_locked_mine, .rtl .imageset.topic_unread, .rtl .imageset.topic_unread_mine, .rtl .imageset.topic_unread_hot, .rtl .imageset.topic_unread_hot_mine, .rtl .imageset.topic_unread_locked, .rtl .imageset.topic_unread_locked_mine, .rtl .imageset.sticky_read, .rtl .imageset.sticky_read_mine, .rtl .imageset.sticky_read_locked, .rtl .imageset.sticky_read_locked_mine, .rtl .imageset.sticky_unread, .rtl .imageset.sticky_unread_mine, .rtl .imageset.sticky_unread_locked, .rtl .imageset.sticky_unread_locked_mine, .rtl .imageset.announce_read, .rtl .imageset.announce_read_mine, .rtl .imageset.announce_read_locked, .rtl .imageset.announce_read_locked_mine, .rtl .imageset.announce_unread, .rtl .imageset.announce_unread_mine, .rtl .imageset.announce_unread_locked, .rtl .imageset.announce_unread_locked_mine, .rtl .imageset.global_read, .rtl .imageset.global_read_mine, .rtl .imageset.global_read_locked, .rtl .imageset.global_read_locked_mine, .rtl .imageset.global_unread, .rtl .imageset.global_unread_mine, .rtl .imageset.global_unread_locked, .rtl .imageset.global_unread_locked_mine, .rtl .imageset.pm_read, .rtl .imageset.pm_unread {
padding-right: 27px;
padding-left: 0;
}
.rtl .imageset.subforum_read, .rtl .imageset.subforum_unread, .rtl .imageset.icon_post_target, .rtl .imageset.icon_post_target_unread, .rtl .imageset.icon_topic_latest, .rtl .imageset.icon_topic_newest {
padding-right: 11px;
padding-left: 0;
}
.rtl .imageset.icon_back_top {
padding-right: 11px;
padding-left: 0;
}
.rtl .imageset.icon_contact_aim, .rtl .imageset.phpbb_aol-icon, .rtl .imageset.icon_contact_email, .rtl .imageset.icon_contact_icq, .rtl .imageset.phpbb_icq-icon, .rtl .imageset.icon_contact_jabber, .rtl .imageset.icon_contact_msnm, .rtl .imageset.phpbb_wlm-icon, .rtl .imageset.icon_contact_www, .rtl .imageset.phpbb_website-icon, .rtl .imageset.icon_contact_yahoo, .rtl .imageset.phpbb_yahoo-icon, .rtl .imageset.icon_post_delete, .rtl .imageset.icon_post_info, .rtl .imageset.icon_post_report, .rtl .imageset.icon_user_warn {
padding-right: 20px;
padding-left: 0;
}
.rtl .imageset.icon_topic_attach {
padding-right: 7px;
padding-left: 0;
}
.rtl .imageset.icon_topic_reported, .rtl .imageset.icon_topic_unapproved {
padding-right: 16px;
padding-left: 0;
}
/**
* plupload.css
*/
@ -1136,4 +1073,10 @@ li.breadcrumbs span:first-child > a {
.captcha-panel dd.captcha {
margin-right: 0;
}
.rtl p.responsive-center {
float: none;
text-align: center;
margin-bottom: 5px;
}
}

View file

@ -1,6 +1,124 @@
/* Responsive Design
---------------------------------------- */
@media (max-width: 320px) {
select, .inputbox {
max-width: 240px;
}
}
/* Notifications list
----------------------------------------*/
@media (max-width: 350px) {
.dropdown-extended .dropdown-contents {
width: auto;
}
}
@media (max-width: 430px) {
.action-bar .search-box .inputbox {
width: 120px;
}
.section-viewtopic .search-box .inputbox {
width: 57px;
}
.action-bar .search-box .inputbox ::-moz-placeholder {
content: "Search...";
}
.action-bar .search-box .inputbox :-ms-input-placeholder {
content: "Search...";
}
.action-bar .search-box .inputbox ::-webkit-input-placeholder {
content: "Search...";
}
}
@media (max-width: 500px) {
dd label {
white-space: normal;
}
select, .inputbox {
max-width: 260px;
}
.captcha-panel dd.captcha {
margin-left: 0;
}
.captcha-panel dd.captcha-image img {
width: 100%;
}
dl.details dt, dl.details dd {
width: auto;
float: none;
text-align: left;
}
dl.details dd {
margin-left: 20px;
}
p.responsive-center {
float: none;
text-align: center;
margin-bottom: 5px;
}
.action-bar > div {
margin-bottom: 5px;
}
.action-bar > .pagination {
float: none;
clear: both;
padding-bottom: 1px;
text-align: center;
}
.action-bar > .pagination li.page-jump {
margin: 0 2px;
}
p.jumpbox-return {
display: none;
}
.display-options > label:nth-child(1) {
display: block;
margin-bottom: 5px;
}
.attach-controls {
margin-top: 5px;
width: 100%;
}
.quick-links .dropdown-trigger span {
display: none;
}
}
@media (max-width: 550px) {
ul.topiclist.forums dt {
margin-right: 0;
}
ul.topiclist.forums dt .list-inner {
margin-right: 0;
}
ul.topiclist.forums dd.lastpost {
display: none;
}
}
@media (max-width: 700px) {
.responsive-hide { display: none !important; }
.responsive-show { display: block !important; }
.responsive-show-inline { display: inline !important; }
@ -16,7 +134,7 @@ body {
padding: 0;
}
#wrap {
.wrap {
border: none;
border-radius: 0;
margin: 0;
@ -32,13 +150,13 @@ body {
margin-right: -5px;
}
#cp-main .forabg, #cp-main .forumdb, #cp-main .post, #cp-main .panel {
.cp-main .forabg, .cp-main .forumdb, .cp-main .post, .cp-main .panel {
border-radius: 7px;
}
/* Logo block
----------------------------------------*/
#site-description {
.site-description {
float: none;
width: auto;
text-align: center;
@ -51,7 +169,7 @@ body {
padding: 10px;
}
#site-description h1, #site-description p {
.site-description h1, .site-description p {
text-align: inherit;
float: none;
margin: 5px;
@ -60,7 +178,7 @@ body {
text-overflow: ellipsis;
}
#site-description p, .search-header {
.site-description p, .search-header {
display: none;
}
@ -73,16 +191,6 @@ body {
/* Search
----------------------------------------*/
.responsive-search { display: block !important; }
.responsive-search a {
display: block;
width: 16px;
height: 22px;
text-indent: 99px;
overflow: hidden;
background-position: 50% 50%;
background-repeat: no-repeat;
text-decoration: none;
}
/* .topiclist lists
----------------------------------------*/
@ -134,13 +242,6 @@ ul.topiclist dd.mark {
ul.topiclist.forums dt {
margin-right: -250px;
}
ul.topiclist.forums dt .list-inner {
margin-right: 250px;
}
ul.topiclist.forums dd.lastpost {
display: block;
}
ul.topiclist dd.mark {
display: block;
@ -161,41 +262,18 @@ ul.topiclist.forums dd.topics dfn, ul.topiclist.topics dd.posts dfn {
font-weight: normal;
}
@media only screen and (max-width: 550px), only screen and (max-device-width: 550px) {
ul.topiclist.forums dt {
margin-right: 0;
}
ul.topiclist.forums dt .list-inner {
margin-right: 0;
}
ul.topiclist.forums dd.lastpost {
display: none;
}
}
li.row .responsive-show strong {
font-weight: bold;
color: inherit;
}
ul.topiclist li.row dt a.subforum {
display: inline-block;
vertical-align: bottom;
overflow: hidden;
text-overflow: ellipsis;
max-width: 100px;
}
/* Notifications list
----------------------------------------*/
@media only screen and (max-width: 350px), only screen and (max-device-width: 350px) {
.dropdown-extended .dropdown-contents {
width: auto;
}
}
/* Pagination
----------------------------------------*/
.pagination > ul {
@ -254,7 +332,7 @@ table.responsive span.rank-img {
padding-right: 5px;
}
table.responsive#memberlist td:first-child input[type="checkbox"] {
table.responsive.memberlist td:first-child input[type="checkbox"] {
float: right;
}
@ -269,7 +347,7 @@ fieldset dd, fieldset.fields1 dd, fieldset.fields2 dd {
margin-left: 20px;
}
textarea, dd textarea, #message-box textarea {
textarea, dd textarea, .message-box textarea {
width: 100%;
-moz-box-sizing: border-box;
box-sizing: border-box;
@ -289,12 +367,12 @@ dl.pmlist dd:first-of-type {
padding-left: 20px;
}
#smiley-box, #message-box {
.smiley-box, .message-box {
float: none;
width: auto;
}
#smiley-box {
.smiley-box {
margin-top: 5px;
}
@ -315,10 +393,6 @@ dl.pmlist dd:first-of-type {
display: none;
}
.colour-palette a {
display: inline-block !important;
}
fieldset.quick-login label {
display: block;
margin-bottom: 5px;
@ -342,53 +416,6 @@ fieldset.quick-login label[for="autologin"] {
min-width: 50%;
}
@media only screen and (max-width: 500px), only screen and (max-device-width: 500px) {
dd label {
white-space: normal;
}
select, .inputbox {
max-width: 260px;
}
.captcha-panel dd.captcha {
margin-left: 0;
}
.captcha-panel dd.captcha-image img {
width: 100%;
}
#recaptcha_challenge_image,
#recaptcha_response_field,
.recaptchatable #recaptcha_image {
width: 100% !important;
height: auto !important;
}
.recaptchatable tr td:last-child {
display: none;
}
.captcha-panel .recaptcha-responsive {
display: inline-block !important;
margin-top: 10px;
vertical-align: middle;
}
}
@media only screen and (max-width: 430px), only screen and (max-device-width: 430px) {
.section-viewtopic .search-box .inputbox {
width: 110px;
}
}
@media only screen and (max-width: 320px), only screen and (max-device-width: 320px) {
select, .inputbox {
max-width: 240px;
}
}
/* User profile
----------------------------------------*/
.column1, .column2, .left-box.profile-details {
@ -396,18 +423,6 @@ fieldset.quick-login label[for="autologin"] {
width: auto;
}
@media only screen and (max-width: 500px), only screen and (max-device-width: 500px) {
dl.details dt, dl.details dd {
width: auto;
float: none;
text-align: left;
}
dl.details dd {
margin-left: 20px;
}
}
/* Polls
----------------------------------------*/
fieldset.polls dt {
@ -484,7 +499,7 @@ fieldset.polls dd.resultbar, fieldset.polls dd.poll_option_percent {
}
.has-profile .post-buttons {
right: 20px;
right: 30px;
top: 15px;
}
@ -518,7 +533,7 @@ dl.mini dd.pm-legend {
min-width: 200px;
}
#topicreview {
.topicreview {
margin: 0 -5px;
padding: 0 5px;
}
@ -535,40 +550,42 @@ fieldset.display-actions {
.attach-comment dfn {
width: 100%;
}
@media only screen and (max-width: 500px), only screen and (max-device-width: 500px) {
p.responsive-center {
float: none !important;
text-align: center !important;
margin-bottom: 5px;
}
.action-bar > div {
margin-bottom: 5px;
@media (min-width: 700px) {
.postbody { width: 70%; }
}
.action-bar > .pagination {
float: none;
clear: both;
padding-bottom: 1px;
text-align: center;
@media (min-width: 850px) {
.postbody { width: 76%; }
}
.action-bar > .pagination li.page-jump {
margin: 0 2px;
@media (max-width: 850px) {
.postprofile { width: 28%; }
}
p.jumpbox-return {
display: none;
@media (min-width: 701px) and (max-width: 950px) {
ul.topiclist dt {
margin-right: -410px;
}
.display-options > label:nth-child(1) {
display: block;
margin-bottom: 5px;
ul.topiclist dt .list-inner {
margin-right: 410px;
}
.attach-controls {
margin-top: 5px;
width: 100%;
dd.posts, dd.topics, dd.views {
width: 80px;
}
}
@media (max-width: 992px) {
.row .pagination {
text-align: left;
float: left;
margin-top: 4px;
margin-bottom: 4px;
}
}