Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove or adapt deprecated CSS features #1006

Open
wants to merge 1 commit into
base: bugfix
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion qa-include/qa-theme-base.php
Original file line number Diff line number Diff line change
Expand Up @@ -397,7 +397,7 @@ public function body()

public function body_hidden()
{
$this->output('<div style="position:absolute;overflow:hidden;clip:rect(0 0 0 0);height:0;width:0;margin:0;padding:0;border:0;">');
$this->output('<div style="position:absolute;overflow:hidden;clip-path:circle(0);height:0;width:0;margin:0;padding:0;border:0;">');
$this->waiting_template();
$this->output('</div>');
}
Expand Down
59 changes: 6 additions & 53 deletions qa-theme/SnowFlat/qa-styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,6 @@
*/


.clearfix, .qa-q-item-clear,
.qa-nav-main-list, .qa-nav-sub,
.qa-page-links, .qa-page-links-list,
.qa-template-admin .qa-message-buttons,
.qa-q-item-avatar-meta, .qa-message-item,
.qa-q-view, .qa-part-q-view, .qa-q-view-content, .qa-q-view-buttons, .qa-part-form-q-edit,
.qa-a-list-item, .qa-a-item-buttons, .qa-a-item-content,
.qa-c-item-buttons, .qa-c-item-clear,
.qam-footer-row, .qam-qa-list-meta-box,
.qa-nav-footer-list, .qa-footer-clear {
*zoom: 1;
}

.qa-main:after, .qa-main-wrapper:after, .qa-body-wrapper:after, .qa-sidepanel:after,
.clearfix:after, .qa-q-item-clear:after,
.qa-nav-main-list:after, .qa-nav-sub:after,
Expand Down Expand Up @@ -68,8 +55,6 @@ html {
}

* {
-moz-box-sizing: border-box;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}

Expand Down Expand Up @@ -601,9 +586,6 @@ blockquote p {
}

@media (max-width: 979px) {
.qa-nav-sub-list {
*zoom: 1;
}
.qa-nav-sub-list:before, .qa-nav-sub-list:after {
content: "";
display: table;
Expand Down Expand Up @@ -818,14 +800,9 @@ blockquote p {

/*------[ qa content parts ]------*/

.qa-main, .qa-main-wrapper {
*zoom: 1;
}

.qa-body-wrapper {
margin: 10px auto;
padding: 0 10px;
*zoom: 1;
}

@media (min-width: 980px) {
Expand Down Expand Up @@ -1794,7 +1771,7 @@ input[type="submit"], button {
}

.qa-form-tall-button, .qa-form-wide-button, .qa-form-basic-button {
-webkit-appearance: none;
appearance: none;
padding: 10px 15px;
border: 0;
font-size: 14px;
Expand Down Expand Up @@ -1955,7 +1932,8 @@ input[type="submit"], button {
}

.qa-part-form-profile .qa-form-wide-data {
word-break: break-word;
word-break: normal;
overflow-wrap: anywhere;
}
.qa-part-form-profile .qa-form-tall-image {
text-align: center;
Expand Down Expand Up @@ -2093,7 +2071,7 @@ input[type="submit"], button {

/*------[ q-view ]------*/
.qa-form-light-button {
-webkit-appearance: none;
appearance: none;
display: block;
float: right;
margin: 0 0 0 5px;
Expand Down Expand Up @@ -2213,7 +2191,8 @@ input[type="submit"], button {
width: 100%;
height: auto;
margin: 6px 0 -4px;
word-break: break-word;
word-break: normal;
overflow-wrap: anywhere;
}

.qa-view-count-data {
Expand Down Expand Up @@ -2401,7 +2380,6 @@ input[type="submit"], button {
}
/* highlight selected answer */
.qa-a-list-item:target{
-webkit-animation: answer-highlight 2s ease-in-out;
animation: answer-highlight 2s ease-in-out;
}

Expand Down Expand Up @@ -2544,7 +2522,6 @@ input[type="submit"], button {
}
/* highlight selected comment */
.qa-c-list-item:target {
-webkit-animation: comment-highlight 2s ease-in-out;
animation: comment-highlight 2s ease-in-out;
}

Expand Down Expand Up @@ -2796,7 +2773,6 @@ input[type="submit"], button {
width: 25%;
padding: 0;
float: right;
*zoom: 1;
}
}

Expand Down Expand Up @@ -2914,7 +2890,6 @@ input[type="submit"], button {
margin: -20px;
text-align: center;
overflow: hidden;
*zoom: 1;
}

.qa-activity-count-item {
Expand Down Expand Up @@ -2942,7 +2917,6 @@ input[type="submit"], button {
}
.qa-activity-count-item:hover:before {
opacity: 1;
-webkit-animation: shake 0.25s;
animation: shake 0.25s;
}
.qa-activity-count-item:nth-child(1) {
Expand Down Expand Up @@ -3328,15 +3302,6 @@ input[type="submit"], button {
}
}

@-webkit-keyframes shake {
0% { transform: scale(1); }
17% { transform: scale(1.5); }
34% { transform: scale(0.8); }
51% { transform: scale(1.1); }
68% { transform: scale(0.9); }
85% { transform: scale(1.05); }
100% { transform: scale(1); }
}
@keyframes shake {
0% { transform: scale(1); }
17% { transform: scale(1.5); }
Expand All @@ -3347,19 +3312,11 @@ input[type="submit"], button {
100% { transform: scale(1); }
}

@-webkit-keyframes answer-highlight {
0% { background-color: #ffffaa; }
100% { background-color: #fff; }
}
@keyframes answer-highlight {
0% { background-color: #ffffaa; }
100% { background-color: #fff; }
}

@-webkit-keyframes comment-highlight {
0% { background-color: #ffffaa; }
100% { background-color: #f4f4f4; }
}
@keyframes comment-highlight {
0% { background-color: #ffffaa; }
100% { background-color: #f4f4f4; }
Expand All @@ -3380,7 +3337,6 @@ input[type="submit"], button {
font-family: "fontello";
font-style: normal;
font-weight: normal;
speak: none;
display: inline-block;
text-decoration: inherit;
width: 1em;
Expand All @@ -3390,9 +3346,6 @@ input[type="submit"], button {
text-transform: none;
line-height: 1em;
margin-left: .2em;
/* Font smoothing. That was taken from TWBS */
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}

.icon-chat:before { content: '\e800'; }
Expand Down