mirror of
https://github.com/discourse/discourse.git
synced 2025-02-07 20:08:26 +00:00
Remove SASS spacing function
This commit is contained in:
parent
040b8c00a4
commit
67429335d5
@ -4,7 +4,6 @@
|
|||||||
@import "common/foundation/base";
|
@import "common/foundation/base";
|
||||||
@import "common/foundation/mixins";
|
@import "common/foundation/mixins";
|
||||||
@import "common/foundation/variables";
|
@import "common/foundation/variables";
|
||||||
@import "common/foundation/spacing";
|
|
||||||
@import "common/select-kit/*";
|
@import "common/select-kit/*";
|
||||||
@import "common/components/*";
|
@import "common/components/*";
|
||||||
@import "common/input_tip";
|
@import "common/input_tip";
|
||||||
|
@ -723,8 +723,8 @@
|
|||||||
|
|
||||||
.modal-tab {
|
.modal-tab {
|
||||||
list-style: none;
|
list-style: none;
|
||||||
padding: s(1 2);
|
padding: 4px 8px;
|
||||||
margin-right: s(1);
|
margin-right: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
|
|
||||||
&.is-active {
|
&.is-active {
|
||||||
@ -734,7 +734,7 @@
|
|||||||
&.single-tab {
|
&.single-tab {
|
||||||
background: none;
|
background: none;
|
||||||
color: $primary;
|
color: $primary;
|
||||||
padding: s(1 0);
|
padding: 4px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -6,7 +6,7 @@
|
|||||||
z-index: z("dropdown");
|
z-index: z("dropdown");
|
||||||
box-shadow: shadow("card");
|
box-shadow: shadow("card");
|
||||||
background-color: $secondary;
|
background-color: $secondary;
|
||||||
padding: s(2 2 1 2);
|
padding: 8px 8px 4px 8px;
|
||||||
width: 300px;
|
width: 300px;
|
||||||
display: none;
|
display: none;
|
||||||
&.visible {
|
&.visible {
|
||||||
@ -17,7 +17,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin-bottom: s(1);
|
margin-bottom: 4px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
@ -46,7 +46,7 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
.social-link {
|
.social-link {
|
||||||
margin-right: s(2);
|
margin-right: 8px;
|
||||||
font-size: $font-up-4;
|
font-size: $font-up-4;
|
||||||
.d-icon {
|
.d-icon {
|
||||||
color: dark-light-choose($tertiary, white);
|
color: dark-light-choose($tertiary, white);
|
||||||
@ -69,7 +69,7 @@
|
|||||||
.actions {
|
.actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: flex-end;
|
align-items: flex-end;
|
||||||
margin-top: s(2);
|
margin-top: 8px;
|
||||||
|
|
||||||
.sources {
|
.sources {
|
||||||
display: flex;
|
display: flex;
|
||||||
@ -79,7 +79,7 @@
|
|||||||
max-width: 45%;
|
max-width: 45%;
|
||||||
|
|
||||||
.social-link {
|
.social-link {
|
||||||
margin-right: s(2);
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -96,7 +96,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.new-topic {
|
.new-topic {
|
||||||
margin-right: s(4);
|
margin-right: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 5fr;
|
grid-template-columns: 1fr 5fr;
|
||||||
grid-template-rows: auto auto 1fr auto;
|
grid-template-rows: auto auto 1fr auto;
|
||||||
grid-row-gap: s(5);
|
grid-row-gap: 20px;
|
||||||
.user-primary-navigation {
|
.user-primary-navigation {
|
||||||
grid-column-start: 1;
|
grid-column-start: 1;
|
||||||
grid-column-end: 3;
|
grid-column-end: 3;
|
||||||
@ -46,10 +46,10 @@
|
|||||||
.user-content {
|
.user-content {
|
||||||
.list-actions {
|
.list-actions {
|
||||||
display: flex;
|
display: flex;
|
||||||
margin-bottom: s(3);
|
margin-bottom: 12px;
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
margin-right: s(3);
|
margin-right: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -264,7 +264,7 @@
|
|||||||
color: $secondary;
|
color: $secondary;
|
||||||
display: flex;
|
display: flex;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
margin-bottom: s(4);
|
margin-bottom: 16px;
|
||||||
> div,
|
> div,
|
||||||
> div a {
|
> div a {
|
||||||
display: flex;
|
display: flex;
|
||||||
|
@ -25,7 +25,7 @@
|
|||||||
.title {
|
.title {
|
||||||
font-size: $font-0;
|
font-size: $font-0;
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
margin-bottom: s(2);
|
margin-bottom: 8px;
|
||||||
|
|
||||||
.post-date {
|
.post-date {
|
||||||
color: $primary-medium;
|
color: $primary-medium;
|
||||||
@ -45,7 +45,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.topic-share-url {
|
.topic-share-url {
|
||||||
margin-bottom: s(2);
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.sources {
|
.sources {
|
||||||
@ -56,7 +56,7 @@
|
|||||||
|
|
||||||
.social-link {
|
.social-link {
|
||||||
font-size: $font-up-6;
|
font-size: $font-up-6;
|
||||||
margin-right: s(2);
|
margin-right: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -65,18 +65,18 @@
|
|||||||
.share-and-invite.modal .invite.modal-panel {
|
.share-and-invite.modal .invite.modal-panel {
|
||||||
.error-message,
|
.error-message,
|
||||||
.success-message {
|
.success-message {
|
||||||
margin-bottom: s(2);
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.body {
|
.body {
|
||||||
.invite-user-control,
|
.invite-user-control,
|
||||||
.group-access-control,
|
.group-access-control,
|
||||||
.show-custom-message-control {
|
.show-custom-message-control {
|
||||||
margin-bottom: s(4);
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.instructions {
|
.instructions {
|
||||||
margin-bottom: s(2);
|
margin-bottom: 8px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.email-or-username-input {
|
.email-or-username-input {
|
||||||
@ -96,7 +96,7 @@
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
||||||
.btn-primary {
|
.btn-primary {
|
||||||
margin-right: s(2);
|
margin-right: 8px;
|
||||||
|
|
||||||
&:last-child {
|
&:last-child {
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
|
@ -1,23 +0,0 @@
|
|||||||
$base-space: 4px;
|
|
||||||
|
|
||||||
@function s(
|
|
||||||
$sizes: (
|
|
||||||
0
|
|
||||||
)
|
|
||||||
) {
|
|
||||||
$spaces: ();
|
|
||||||
@each $size in $sizes {
|
|
||||||
@if ($size == 0) {
|
|
||||||
// Strip units if 0
|
|
||||||
$size: $size * $base-space;
|
|
||||||
$size: $size / ($size * 0 + 1);
|
|
||||||
} @else if ($size == auto) {
|
|
||||||
$size: auto;
|
|
||||||
} @else {
|
|
||||||
$size: $size * $base-space;
|
|
||||||
}
|
|
||||||
|
|
||||||
$spaces: append($spaces, $size);
|
|
||||||
}
|
|
||||||
@return $spaces;
|
|
||||||
}
|
|
@ -9,7 +9,7 @@
|
|||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
align-items: stretch;
|
align-items: stretch;
|
||||||
min-height: 75px;
|
min-height: 75px;
|
||||||
padding: s(0 6);
|
padding: 0 24px;
|
||||||
order: 2;
|
order: 2;
|
||||||
|
|
||||||
button {
|
button {
|
||||||
@ -39,7 +39,7 @@
|
|||||||
|
|
||||||
#modal-alert {
|
#modal-alert {
|
||||||
max-width: 100%;
|
max-width: 100%;
|
||||||
padding: s(2 4);
|
padding: 8px 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.login-modal {
|
.login-modal {
|
||||||
@ -68,7 +68,7 @@
|
|||||||
#login-form {
|
#login-form {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
flex: 1 0 auto;
|
flex: 1 0 auto;
|
||||||
padding: s(0 6);
|
padding: 0 24px;
|
||||||
+ #login-buttons {
|
+ #login-buttons {
|
||||||
border-left: 1px solid $primary-low; // Only show border when login-form is present
|
border-left: 1px solid $primary-low; // Only show border when login-form is present
|
||||||
}
|
}
|
||||||
@ -171,7 +171,7 @@
|
|||||||
}
|
}
|
||||||
form {
|
form {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
padding: s(4 6);
|
padding: 16px 24px;
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
max-height: 475px;
|
max-height: 475px;
|
||||||
@media screen and (max-height: 650px) {
|
@media screen and (max-height: 650px) {
|
||||||
|
@ -50,8 +50,8 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-content {
|
.user-content {
|
||||||
padding-bottom: s(3);
|
padding-bottom: 12px;
|
||||||
margin-bottom: s(3);
|
margin-bottom: 12px;
|
||||||
background-color: $secondary;
|
background-color: $secondary;
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
@ -118,7 +118,7 @@
|
|||||||
|
|
||||||
.primary {
|
.primary {
|
||||||
.primary-textual {
|
.primary-textual {
|
||||||
padding: s(0 1 1);
|
padding: 0 4px 4px;
|
||||||
a[href] {
|
a[href] {
|
||||||
text-decoration: underline;
|
text-decoration: underline;
|
||||||
}
|
}
|
||||||
@ -146,7 +146,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.secondary {
|
.secondary {
|
||||||
margin-top: s(4);
|
margin-top: 16px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -183,7 +183,7 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
> li {
|
> li {
|
||||||
display: inline;
|
display: inline;
|
||||||
margin-left: s(3);
|
margin-left: 12px;
|
||||||
.d-button-label {
|
.d-button-label {
|
||||||
line-height: 1;
|
line-height: 1;
|
||||||
}
|
}
|
||||||
@ -246,7 +246,7 @@
|
|||||||
|
|
||||||
.instructions {
|
.instructions {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-top: s(1);
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -43,18 +43,18 @@ span.badge-posts {
|
|||||||
flex: 1 1 auto;
|
flex: 1 1 auto;
|
||||||
}
|
}
|
||||||
&.button-count {
|
&.button-count {
|
||||||
padding: s(2 1 2 2);
|
padding: 8px 4px 8px 8px;
|
||||||
+ .toggle-like,
|
+ .toggle-like,
|
||||||
+ .create-flag {
|
+ .create-flag {
|
||||||
padding: s(2 2 2 1);
|
padding: 8px 8px 8px 4px;
|
||||||
}
|
}
|
||||||
&.my-likes,
|
&.my-likes,
|
||||||
&.regular-likes {
|
&.regular-likes {
|
||||||
display: flex;
|
display: flex;
|
||||||
max-width: unset;
|
max-width: unset;
|
||||||
padding: s(2);
|
padding: 8px;
|
||||||
.d-icon {
|
.d-icon {
|
||||||
padding-left: s(2);
|
padding-left: 8px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -4,8 +4,8 @@
|
|||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: 1fr 1fr;
|
grid-template-columns: 1fr 1fr;
|
||||||
grid-template-rows: auto auto auto;
|
grid-template-rows: auto auto auto;
|
||||||
grid-row-gap: s(5);
|
grid-row-gap: 20px;
|
||||||
grid-column-gap: s(4);
|
grid-column-gap: 16px;
|
||||||
.user-primary-navigation {
|
.user-primary-navigation {
|
||||||
grid-column-start: 1;
|
grid-column-start: 1;
|
||||||
grid-row-start: 1;
|
grid-row-start: 1;
|
||||||
@ -31,14 +31,14 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.user-main {
|
.user-main {
|
||||||
margin-top: s(3);
|
margin-top: 12px;
|
||||||
|
|
||||||
.user-content {
|
.user-content {
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
background-color: $secondary;
|
background-color: $secondary;
|
||||||
table {
|
table {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
margin-top: s(3);
|
margin-top: 12px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -48,12 +48,12 @@
|
|||||||
|
|
||||||
.secondary {
|
.secondary {
|
||||||
dl {
|
dl {
|
||||||
padding: s(2) 0;
|
padding: 8px 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.details {
|
.details {
|
||||||
margin-bottom: s(3);
|
margin-bottom: 12px;
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
line-height: $line-height-small;
|
line-height: $line-height-small;
|
||||||
@ -69,7 +69,7 @@
|
|||||||
}
|
}
|
||||||
display: block;
|
display: block;
|
||||||
float: none;
|
float: none;
|
||||||
margin: s(2 auto);
|
margin: 8px auto;
|
||||||
img.avatar {
|
img.avatar {
|
||||||
float: none;
|
float: none;
|
||||||
}
|
}
|
||||||
@ -117,7 +117,7 @@
|
|||||||
color: $primary;
|
color: $primary;
|
||||||
|
|
||||||
.avatar {
|
.avatar {
|
||||||
margin: 0 0 s(3);
|
margin: 0 0 12px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.primary-textual {
|
.primary-textual {
|
||||||
@ -129,7 +129,7 @@
|
|||||||
|
|
||||||
.bio {
|
.bio {
|
||||||
color: $primary;
|
color: $primary;
|
||||||
margin: 0 auto s(2);
|
margin: 0 auto 8px;
|
||||||
max-width: 700px;
|
max-width: 700px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
|
||||||
@ -155,7 +155,7 @@
|
|||||||
height: 200px;
|
height: 200px;
|
||||||
}
|
}
|
||||||
.user-profile-avatar {
|
.user-profile-avatar {
|
||||||
margin-top: s(-15);
|
margin-top: -60px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -267,11 +267,11 @@
|
|||||||
padding-bottom: 2em;
|
padding-bottom: 2em;
|
||||||
|
|
||||||
.instructions {
|
.instructions {
|
||||||
margin-top: s(1);
|
margin-top: 4px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.controls-dropdown {
|
.controls-dropdown {
|
||||||
margin-bottom: s(4);
|
margin-bottom: 16px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.delete-account {
|
.delete-account {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user