(S)CSS cleanup: 0px => O and removal of duplicated properties (#5526)

This commit is contained in:
Bruno Perel 2018-01-25 15:53:36 +01:00 committed by Kris
parent b784c1eda4
commit 6750ff6873
37 changed files with 77 additions and 90 deletions

View File

@ -194,7 +194,7 @@ $mobile-breakpoint: 700px;
.location-box {
position: absolute;
width: 460px;
right: 0px;
right: 0;
z-index: z("dropdown");
box-shadow: 0 2px 6px rgba(0,0,0, .8);
margin-top: -2px;
@ -518,7 +518,7 @@ $mobile-breakpoint: 700px;
li.sortable-placeholder {
padding: 3px 5px 3px 18px;
margin: 3px 0px 3px 5px;
margin: 3px 0 3px 5px;
position: relative;
line-height: $line-height-small;
cursor: default;

View File

@ -68,14 +68,14 @@
td {
border-bottom: 1px solid $danger-low;
line-height: 0.1em;
padding: 0px;
padding: 0;
text-align: center;
}
td span {
background-color: $secondary;
color: $danger-low;
padding: 0px 8px;
padding: 0 8px;
font-size: $font-down-1;
}
}

View File

@ -9,10 +9,10 @@ body.crawler {
box-shadow: 0 2px 4px -1px rgba(0,0,0,0.25);
}
div.topic-list div[itemprop='itemListElement'] {
padding: 10px 0px;
padding: 10px 0;
border-bottom: 1px solid #e9e9e9;
.page-links a {
padding: 0px 4px;
padding: 0 4px;
}
}
div#main-outlet {
@ -23,7 +23,7 @@ body.crawler {
}
}
footer nav {
margin: 50px 0px;
margin: 50px 0;
a {
padding: 15px;
}

View File

@ -197,7 +197,7 @@ input {
border-radius: 0;
&:focus {
border-color: $tertiary;
box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
outline: 0;
}
}
@ -209,7 +209,7 @@ textarea {
border: 1px solid $primary-medium;
&:focus {
border-color: $tertiary;
box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
outline: 0;
}
}

View File

@ -54,7 +54,7 @@ img.emoji {
.emoji-picker .list {
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
padding: 0px;
padding: 0;
flex: 1;
flex-direction: column;
}
@ -100,7 +100,6 @@ img.emoji {
.emoji-picker .info {
text-overflow: ellipsis;
max-width: 232px;
padding-left: 8px;
white-space: nowrap;
overflow: hidden;
@ -155,8 +154,6 @@ img.emoji {
-moz-box-sizing: content-box;
box-sizing: content-box;
height: 20px;
margin: 0;
padding: 0;
border: 0;
vertical-align: top;
width: 20px;

View File

@ -95,11 +95,11 @@ table.group-logs {
th {
text-align: left;
padding: 5px 0px;
padding: 5px 0;
}
td {
padding: 10px 0px;
padding: 10px 0;
}
.group-logs-expand-details {
@ -131,7 +131,7 @@ table.group-members {
th {
border-bottom: 3px solid $primary-low;
text-align: center;
padding: 5px 0px 5px 5px;
padding: 5px 0 5px 5px;
color: dark-light-choose($primary-medium, $secondary-medium);
font-weight: normal;
}

View File

@ -1,6 +1,6 @@
.groups-page {
h1 {
margin: 20px 0px;
margin: 20px 0;
}
}
@ -9,7 +9,7 @@
th {
border-bottom: 1px solid $primary-low;
padding: 5px 0px;
padding: 5px 0;
text-align: left;
}

View File

@ -379,7 +379,7 @@
textarea {
font-family: monospace;
resize: none;
border-radius: 0px;
border-radius: 0;
box-shadow: none;
}
.incoming-email-html-part {

View File

@ -278,7 +278,7 @@ pre.onebox code ol.lines li:before {
pre.onebox code ol{
margin-left:0px;
margin-left:0;
line-height: $line-height-large;
}
pre.onebox code {
@ -296,7 +296,7 @@ pre.onebox code ol.lines{
pre.onebox code ol.lines li {
list-style-type: none;
padding-left: 5px;
margin-left: 0px;
margin-left: 0;
border-left: 1px solid #CFCFCF;
min-height: 1.5em; //show empty li lines
white-space: pre;
@ -314,7 +314,7 @@ pre.onebox code {
.onebox-body .github-commit-status {
background: #F5F5F5;
border-radius: 5px;
margin:0px 0px 5px 100px;
margin:0 0 5px 100px;
padding: 10px;
}

View File

@ -119,7 +119,7 @@ $tag-color: $primary-medium;
}
&.simple, &.simple:visited, &.simple:hover {
margin-right: 0px;
margin-right: 0;
color: $primary-high;
}
}

View File

@ -448,7 +448,7 @@ blockquote > *:last-child {
.custom-message {
text-transform: none;
margin: 15px 0px 5px;
margin: 15px 0 5px;
font-weight: normal;
font-size: $font-up-1;
p {

View File

@ -10,7 +10,7 @@
position: fixed;
bottom: 40px;
z-index: z("dropdown");
margin-right: 0px;
margin-right: 0;
animation-duration: 0.5s;
animation-name: button-jump-up;
width: 145px;

View File

@ -348,7 +348,7 @@
}
.user-nav {
margin: 5px 0px;
margin: 5px 0;
padding-top: 10px;
li a {

View File

@ -32,8 +32,8 @@ div.tagsinput input {
padding:2px 5px;
background: transparent;
color: #000;
outline:0px;
margin: 0px 5px 5px 0px;
outline:0;
margin: 0 5px 5px 0;
}
div.tagsinput div { display:block; float: left; }
.tags_clear { clear: both; width: 100%; height: 0; }

View File

@ -32,8 +32,8 @@
&.is-focused {
border: 1px solid $tertiary;
-webkit-box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0px 0px 6px 0px;
-webkit-box-shadow: $tertiary 0 0 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
}
}
@ -47,8 +47,8 @@
&.is-highlighted {
.select-kit-header {
border: 1px solid $tertiary;
-webkit-box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0px 0px 6px 0px;
-webkit-box-shadow: $tertiary 0 0 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
}
}
@ -56,8 +56,8 @@
.select-kit-wrapper {
display: block;
border: 1px solid $tertiary;
-webkit-box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0px 0px 6px 0px;
-webkit-box-shadow: $tertiary 0 0 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
}
.select-kit-header {

View File

@ -79,10 +79,10 @@
}
.select2-container-active {
box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
}
.select2-results .select2-no-results, .select2-results .select2-searching, .select2-results .select2-selection-limit {
background: $secondary;
color: $primary;
}
}

View File

@ -24,7 +24,7 @@
border: 1px solid $primary-medium;
&.is-focused {
box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
border-radius: 0;
}
}
@ -40,7 +40,7 @@
.multi-select-header {
border-radius: 0;
border-bottom: 1px solid transparent;
box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
}
}
@ -48,7 +48,7 @@
.select-box-kit-wrapper, .select-kit-wrapper {
display: block;
border: 1px solid $tertiary;
box-shadow: $tertiary 0px 0px 6px 0px;
box-shadow: $tertiary 0 0 6px 0px;
border-radius: 0;
}
@ -126,7 +126,6 @@
.selected-name {
color: $primary;
cursor: default;
border: 1px solid $primary-medium;
border-radius: 3px;
box-shadow: 0 0 2px $secondary inset, 0 1px 0 rgba(0,0,0,0.05);

View File

@ -45,7 +45,7 @@
top: 0;
}
.select-kit-collection, {
.select-kit-collection {
border-radius: inherit;
}
}
@ -91,7 +91,6 @@
flex-direction: row;
-webkit-box-pack: justify;
-ms-flex-pack: justify;
justify-content: space-between;
.selected-name {
text-align: left;
@ -106,7 +105,7 @@
}
.btn-clear {
padding: 0px 10px;
padding: 0 10px;
border: 0;
background: none;
}
@ -261,8 +260,8 @@
overflow: hidden;
position: fixed;
outline: 0;
left: 0px;
top: 0px;
left: 0;
top: 0;
}
}

View File

@ -34,7 +34,6 @@
.name, .d-icon {
color: $secondary;
color: $secondary;
}
}

View File

@ -3,7 +3,7 @@
border: 1px solid $primary-low;
padding: 5px;
background: $secondary;
box-shadow: 0 0px 2px rgba(0,0,0, .2);
box-shadow: 0 0 2px rgba(0,0,0, .2);
z-index: z("dropdown");
position: absolute;

View File

@ -108,7 +108,7 @@
}
}
.timeline-last-read {
right: 0px;
right: 0;
margin-left: 0;
i.progress {
display: none

View File

@ -47,7 +47,7 @@
.open {
.grippie {
cursor: row-resize;
padding: 4px 0px;
padding: 4px 0;
background: $tertiary;
&:before {
content: '';

View File

@ -60,7 +60,7 @@ h4,
h5,
h6 {
+ p {
margin-top:0px;
margin-top:0;
}
}

View File

@ -908,7 +908,7 @@ a.attachment:before {
.who-liked {
margin-top: 20px;
margin-bottom: 0px;
margin-bottom: 0;
width: 100%;
text-align: right;
}
@ -924,7 +924,7 @@ span.highlighted {
.read-state {
color: $tertiary-medium;
position: absolute;
right: 0px;
right: 0;
top: 2em;
font-size: 0.571em;
}

View File

@ -71,7 +71,7 @@
.topic-status-info {
border-top: 1px solid $primary-low;
padding: 10px 0px;
padding: 10px 0;
height: 20px;
max-width: 757px;
}
@ -96,7 +96,6 @@
position: relative;
left: 340px;
width: 135px;
padding: 5px;
button.full {
width: 100%;

View File

@ -111,7 +111,7 @@
.user-invite-controls {
background-color: $primary-low;
padding: 5px 10px 0px 0;
padding: 5px 10px 0 0;
height: 35px;
}
@ -134,7 +134,7 @@
&.group {
.details {
padding: 15px 0px;
padding: 15px 0;
margin: 0;
color: dark-light-choose(lighten($primary, 10%), $secondary);
}

View File

@ -79,7 +79,7 @@ blockquote {
&.activity-nav,
&.preferences-nav {
position: absolute;
right: 0px;
right: 0;
top: -57px;
}
@ -103,7 +103,7 @@ blockquote {
.d-icon-caret-down {
position: absolute;
right: 0px;
right: 0;
}
.drop {

View File

@ -3,11 +3,11 @@
}
.group-header {
margin: 0px;
margin: 0;
}
.group-name {
margin: 5px 0px 0px 0px;
margin: 5px 0 0 0;
}
.group-nav {
@ -29,7 +29,7 @@
.group-activity-nav.mobile-nav {
position: absolute;
right: 0px;
right: 0;
top: -55px;
}
@ -44,7 +44,7 @@
.group-flair-inputs {
.group-flair-right {
margin: 0px
margin: 0
}
}
}

View File

@ -55,12 +55,12 @@
}
.modal-header {
padding: 10px 0px 10px 10px;
padding: 10px 0 10px 10px;
h3 {
display: inline;
font-size: $font-up-2;
margin: 0px;
margin: 0;
}
}
.close {

View File

@ -38,7 +38,7 @@
/* both blocks that appear under the standard post control buttons */
.notification-options, .pinned-options {
float: left;
margin-top: 0px;
margin-top: 0;
padding-top: 1px;
clear: both;
}
@ -223,4 +223,4 @@ sup sup, sub sup, sup sub, sub sub { top: 0; }
.btn.pull-right {
margin-right: 0;
}
}
}

View File

@ -129,7 +129,6 @@ input[type="submit"].btn::-moz-focus-inner {
margin: 1px 0 0;
list-style: none;
background-color: #ffffff;
border: 1px solid #ccc;
border: 1px solid rgba(0, 0, 0, 0.2);
border-radius: 5px;
box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
@ -213,7 +212,7 @@ body {
// this removes the unwanted top margin on a paragraph under a heading
h1+p, h2+p, h3+p, h4+p, h5+p, h6+p {
margin-top:0px;
margin-top:0;
}
blockquote {

View File

@ -402,7 +402,6 @@ disabled look for disabled choices in the results dropdown
.select2-container-multi .select2-choices {
height: auto !important;
height: 1%;
margin: 0;
padding: 0 5px 0 0;
position: relative;
@ -558,8 +557,8 @@ html[dir="rtl"] .select2-search-choice-close {
overflow: hidden !important;
position: absolute !important;
outline: 0 !important;
left: 0px !important;
top: 0px !important;
left: 0 !important;
top: 0 !important;
}
.select2-display-none {

View File

@ -52,7 +52,6 @@ body.stop-scrolling {
.sweet-alert p {
color: #797979;
font-size: 16px;
text-align: center;
font-weight: 300;
position: relative;
text-align: inherit;
@ -132,14 +131,14 @@ body.stop-scrolling {
margin-top: 10px;
margin-bottom: 17px;
font-size: 18px;
box-shadow: inset 0px 1px 1px rgba(0, 0, 0, 0.06);
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.06);
padding: 0 12px;
display: none;
-webkit-transition: all 0.3s;
transition: all 0.3s; }
.sweet-alert input:focus {
outline: none;
box-shadow: 0px 0px 3px #c4e6f5;
box-shadow: 0 0 3px #c4e6f5;
border: 1px solid #b4dbed; }
.sweet-alert input:focus::-moz-placeholder {
transition: opacity 0.3s 0.03s ease;
@ -195,7 +194,7 @@ body.stop-scrolling {
.sweet-alert button.cancel:active {
background-color: #a8a8a8; }
.sweet-alert button.cancel:focus {
box-shadow: rgba(197, 205, 211, 0.8) 0px 0px 2px, rgba(0, 0, 0, 0.0470588) 0px 0px 0px 1px inset !important; }
box-shadow: rgba(197, 205, 211, 0.8) 0 0 2px, rgba(0, 0, 0, 0.0470588) 0 0 0 1px inset !important; }
.sweet-alert button[disabled] {
opacity: .6;
cursor: default; }
@ -216,7 +215,6 @@ body.stop-scrolling {
height: 80px;
border: 4px solid gray;
-webkit-border-radius: 40px;
border-radius: 40px;
border-radius: 50%;
margin: 20px auto;
padding: 0;
@ -291,7 +289,6 @@ body.stop-scrolling {
.sweet-alert .sa-icon.sa-success::before, .sweet-alert .sa-icon.sa-success::after {
content: '';
-webkit-border-radius: 40px;
border-radius: 40px;
border-radius: 50%;
position: absolute;
width: 60px;
@ -315,14 +312,13 @@ body.stop-scrolling {
left: 30px;
-webkit-transform: rotate(-45deg);
transform: rotate(-45deg);
-webkit-transform-origin: 0px 60px;
transform-origin: 0px 60px; }
-webkit-transform-origin: 0 60px;
transform-origin: 0 60px; }
.sweet-alert .sa-icon.sa-success .sa-placeholder {
width: 80px;
height: 80px;
border: 4px solid rgba(165, 220, 134, 0.2);
-webkit-border-radius: 40px;
border-radius: 40px;
border-radius: 50%;
box-sizing: content-box;
position: absolute;
@ -414,13 +410,13 @@ body.stop-scrolling {
@-webkit-keyframes slideFromTop {
0% {
top: 0%; }
top: 0; }
100% {
top: 50%; } }
@keyframes slideFromTop {
0% {
top: 0%; }
top: 0; }
100% {
top: 50%; } }
@ -428,13 +424,13 @@ body.stop-scrolling {
0% {
top: 50%; }
100% {
top: 0%; } }
top: 0; } }
@keyframes slideToTop {
0% {
top: 50%; }
100% {
top: 0%; } }
top: 0; } }
@-webkit-keyframes slideFromBottom {
0% {
@ -547,7 +543,7 @@ body.stop-scrolling {
top: 54px; }
84% {
width: 55px;
right: 0px;
right: 0;
top: 35px; }
100% {
width: 47px;
@ -565,7 +561,7 @@ body.stop-scrolling {
top: 54px; }
84% {
width: 55px;
right: 0px;
right: 0;
top: 35px; }
100% {
width: 47px;

View File

@ -195,7 +195,7 @@ body.wizard {
.wizard-btn {
border-radius: 2px;
font-size: $font-0;
border: 0px;
border: 0;
padding: 0.5em;
transition: background-color .3s;
margin-right: 0.5em;

View File

@ -1,5 +1,5 @@
.poll-ui-builder-form {
margin: 0px;
margin: 0;
.input-group {
padding: 10px;

View File

@ -4,7 +4,7 @@ $text-color: #9E9E9E;
$option-background: dark-light-diff($primary, $secondary, 90%, -65%);
div.poll {
margin: 10px 0px;
margin: 10px 0;
border: 1px solid $border-color;
@include unselectable;

View File

@ -113,7 +113,7 @@ License: MIT
.sp-clear-enabled .sp-clear {
display: block;
position:absolute;
top:0px;
top:0;
right:0;
bottom:0;
left:84%;