Commit 31a20e5a authored by Lyza Danger Gardner's avatar Lyza Danger Gardner

Adjust sizing of spacing variables

parent 0602c8df
...@@ -103,7 +103,7 @@ ...@@ -103,7 +103,7 @@
} }
&__header-icon { &__header-icon {
margin-right: var.$layout-space--small; margin-right: var.$layout-space--xsmall;
} }
&__title { &__title {
......
...@@ -11,7 +11,7 @@ ...@@ -11,7 +11,7 @@
.annotation-body__collapse-toggle { .annotation-body__collapse-toggle {
@include layout.row(right); @include layout.row(right);
@include layout.vertical-space(var.$layout-space--small); @include layout.vertical-space(var.$layout-space--xsmall);
.annotation-body__collapse-toggle-button { .annotation-body__collapse-toggle-button {
@include buttons.button--labeled; @include buttons.button--labeled;
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
&__reply-toggle { &__reply-toggle {
@include buttons.button--link; @include buttons.button--link;
padding: 0 var.$layout-space--small; padding: 0 var.$layout-space--xsmall;
} }
// Timestamps are right aligned in a flex row // Timestamps are right aligned in a flex row
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@include utils.font--small; @include utils.font--small;
@include utils.border-top; @include utils.border-top;
// Space between border and text content // Space between border and text content
padding-top: var.$layout-space--small; padding-top: var.$layout-space--xsmall;
// Container with two icons (representing CC licenses) // Container with two icons (representing CC licenses)
// with a very small amount of spacing between them // with a very small amount of spacing between them
...@@ -14,6 +14,6 @@ ...@@ -14,6 +14,6 @@
@include layout.row; @include layout.row;
@include layout.horizontal-rhythm(1px); @include layout.horizontal-rhythm(1px);
// Add space before text // Add space before text
margin-right: var.$layout-space--xsmall; margin-right: var.$layout-space--xxsmall;
} }
} }
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
&__icon-button { &__icon-button {
@include buttons.button--input; @include buttons.button--input;
padding: var.$layout-space--xsmall var.$layout-space--small; padding: var.$layout-space--xxsmall var.$layout-space--xsmall;
} }
&__form-input { &__form-input {
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
&__permissions { &__permissions {
@include utils.font--small; @include utils.font--small;
margin: var.$layout-space--small 0; margin: var.$layout-space--xsmall 0;
} }
&__arrow { &__arrow {
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
font-weight: 300; font-weight: 300;
// TODO cleanup // TODO cleanup
padding: var.$layout-space--small; padding: var.$layout-space--xsmall;
margin-bottom: var.$layout-space; margin-bottom: var.$layout-space;
&__btn { &__btn {
......
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
.selection-tabs__icon { .selection-tabs__icon {
color: var.$grey-mid; color: var.$grey-mid;
margin: 0 var.$layout-space--xsmall; margin: 0 var.$layout-space--xxsmall;
} }
.selection-tabs--theme-clean { .selection-tabs--theme-clean {
......
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
@use "../../variables" as var; @use "../../variables" as var;
.tag-editor { .tag-editor {
margin: var.$layout-space--small 0; margin: var.$layout-space--xsmall 0;
&__input { &__input {
@include forms.form-input; @include forms.form-input;
...@@ -15,13 +15,13 @@ ...@@ -15,13 +15,13 @@
&__tags { &__tags {
@include layout.row; @include layout.row;
flex-wrap: wrap; flex-wrap: wrap;
margin: var.$layout-space--small 0; margin: var.$layout-space--xsmall 0;
} }
&__item { &__item {
@include layout.row; @include layout.row;
margin: var.$layout-space--xsmall var.$layout-space--small margin: var.$layout-space--xxsmall var.$layout-space--xsmall
var.$layout-space--small 0; var.$layout-space--xsmall 0;
} }
&__edit { &__edit {
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
background: var.$grey-1; background: var.$grey-1;
border-radius: var.$border-radius 0 0 var.$border-radius; border-radius: var.$border-radius 0 0 var.$border-radius;
border-right-width: 0; border-right-width: 0;
padding: 2px var.$layout-space--small; padding: 2px var.$layout-space--xsmall;
} }
&__delete { &__delete {
...@@ -38,7 +38,7 @@ ...@@ -38,7 +38,7 @@
@include utils.border; @include utils.border;
color: var.$grey-mid; color: var.$grey-mid;
background-color: var.$grey-1; background-color: var.$grey-1;
padding: 0 var.$layout-space--small; padding: 0 var.$layout-space--xsmall;
border-radius: 0 var.$border-radius var.$border-radius 0; border-radius: 0 var.$border-radius var.$border-radius 0;
&:hover { &:hover {
......
...@@ -9,9 +9,9 @@ ...@@ -9,9 +9,9 @@
&__item { &__item {
@include utils.border; @include utils.border;
margin: var.$layout-space--xsmall var.$layout-space--small margin: var.$layout-space--xxsmall var.$layout-space--xsmall
var.$layout-space--xsmall 0; var.$layout-space--xxsmall 0;
padding: 2px var.$layout-space--small; padding: 2px var.$layout-space--xsmall;
background: var.$grey-0; background: var.$grey-0;
border-radius: var.$border-radius; border-radius: var.$border-radius;
} }
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
@include layout.row; @include layout.row;
&--reply { &--reply {
margin-top: var.$layout-space--small; margin-top: var.$layout-space--xsmall;
} }
&--reply &__content { &--reply &__content {
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
z-index: 1; z-index: 1;
left: 0; left: 0;
width: 100%; width: 100%;
padding: 0 var.$layout-space--small; padding: 0 var.$layout-space--xsmall;
@include responsive.tablet-and-up { @include responsive.tablet-and-up {
// When displaying in a wider viewport (desktop/tablet outside of sidebar) // When displaying in a wider viewport (desktop/tablet outside of sidebar)
......
...@@ -52,7 +52,7 @@ ...@@ -52,7 +52,7 @@
} }
&__menu-label { &__menu-label {
padding: var.$layout-space--xsmall; padding: var.$layout-space--xxsmall;
} }
} }
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
.top-bar__login-button { .top-bar__login-button {
@include buttons.button; @include buttons.button;
@include utils.font--large; @include utils.font--large;
padding: 0 var.$layout-space--xsmall; padding: 0 var.$layout-space--xxsmall;
color: var.$color-brand; color: var.$color-brand;
&:hover { &:hover {
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
.tutorial { .tutorial {
&__list { &__list {
@include layout.vertical-rhythm(var.$layout-space--small); @include layout.vertical-rhythm(var.$layout-space--xsmall);
} }
&__icon { &__icon {
......
...@@ -80,12 +80,12 @@ $line-height: 1.4; ...@@ -80,12 +80,12 @@ $line-height: 1.4;
// this, iOS will zoom into the field when focused. // this, iOS will zoom into the field when focused.
$touch-input-font-size: 16px; $touch-input-font-size: 16px;
// Layout margins // Layout spacing
// ------------------------- // -------------------------
$layout-h-margin: 15px; // Legacy
$layout-space: 1em; $layout-space: 1em;
$layout-space--xsmall: $layout-space / 4; $layout-space--xxsmall: $layout-space * (1/4);
$layout-space--small: $layout-space / 2; $layout-space--xsmall: $layout-space * (1/2);
$layout-space--small: $layout-space * (3/4);
$layout-space--medium: $layout-space; $layout-space--medium: $layout-space;
// Minimum recommended size for tap targets on mobile. // Minimum recommended size for tap targets on mobile.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment