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

Adjust sizing of spacing variables

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