Skip to content
This repository has been archived by the owner on Nov 7, 2019. It is now read-only.

Commit

Permalink
Merge 5e94696 into 9594619
Browse files Browse the repository at this point in the history
  • Loading branch information
philli-m committed Oct 17, 2019
2 parents 9594619 + 5e94696 commit 455c1f9
Show file tree
Hide file tree
Showing 13 changed files with 374 additions and 244 deletions.
580 changes: 357 additions & 223 deletions apps/contrib/templates/a4_candy_contrib/component_library.html

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions liqd_product/assets/scss/_form.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ select {
border-color: $brand-primary;
box-shadow: 0 0 2px $brand-primary-tint inset;
border-radius: 0;
border-width: 2px;

&:invalid {
border-color: $brand-primary;
Expand Down
3 changes: 0 additions & 3 deletions liqd_product/assets/scss/components/_accordion.scss
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
.accordion {
border: solid 1px $border-color;
border-radius: 5px;

// make border-radius work with contents
overflow: hidden;
margin-bottom: $padding * 1.8;
}
Expand Down
2 changes: 1 addition & 1 deletion liqd_product/assets/scss/components/_action.scss
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@

.action__main {
@include multi-line-main(2);
margin-left: 2.5*$padding;
margin-left: 3*$padding;
}

.action__date {
Expand Down
1 change: 1 addition & 0 deletions liqd_product/assets/scss/components/_alerts.scss
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ $messages-margin-bottom: 25px;
background-color: lighten($brand-info, 40);
color: $text-color;
text-align: center;
border-radius: 0;
}

.alert--success {
Expand Down
5 changes: 2 additions & 3 deletions liqd_product/assets/scss/components/_category_formset.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@
}
}

.category-formset__form,
.category-formset__btn {
.category-formset__form {
@extend .l-tiles-2;
}

Expand All @@ -25,7 +24,7 @@

& ~ .category-formset__delete-label {
position: absolute;
right: 0.5em;
right: 1em;
top: 0.6em;
color: $gray;
}
Expand Down
1 change: 0 additions & 1 deletion liqd_product/assets/scss/components/_commenting.scss
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
margin-bottom: $spacer / 2;
padding: $padding;
border: 1px solid $border-color;
border-radius: ($padding / 2);
}

.commenting--toc__button {
Expand Down
1 change: 0 additions & 1 deletion liqd_product/assets/scss/components/_doc_toc.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
padding: 0;
font-size: $font-size-lg;
border: 1px solid $border-color;
border-radius: 0.3em;
}

.doc-toc__toggle {
Expand Down
7 changes: 6 additions & 1 deletion liqd_product/assets/scss/components/_dropdown.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.dropdown {
position: relative;
text-align: left;
// margin-bottom: $spacer / 2; for bootstrap
}

.dropdown-item {
Expand Down Expand Up @@ -107,3 +106,9 @@
display: none;
}
}

.filter-bar {
.dropdown {
margin-right: 0.25em;
}
}
2 changes: 0 additions & 2 deletions liqd_product/assets/scss/components/_progress.scss
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,6 @@
align-items: center;
padding: $padding;
border: 1px solid $border-color;
border-top-left-radius: 0.3em;
border-top-right-radius: 0.3em;
border-bottom: 0;
}

Expand Down
5 changes: 1 addition & 4 deletions liqd_product/assets/scss/components/_rating.scss
Original file line number Diff line number Diff line change
Expand Up @@ -11,15 +11,12 @@
.rating-button {
font-weight: normal;
padding: 0 0.4em;
margin-right: 0.2em;

&.is-read-only,
&:disabled {
cursor: default;
}

&:first-child {
margin-right: 0.2em;
}
}

@mixin rating-button($color) {
Expand Down
2 changes: 1 addition & 1 deletion liqd_product/assets/scss/components/_tile.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
.tile {
display: flex;
flex-direction: column;
margin-bottom: $padding;
margin: 0.5*$r-spacer 0.5*$r-spacer 0.5*$r-spacer 0.5*$r-spacer;
page-break-inside: avoid;
overflow-wrap: break-word;
background-color: $body-bg;
Expand Down
8 changes: 4 additions & 4 deletions liqd_product/templates/a4forms/includes/inline_form.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{% load i18n widget_tweaks %}
<div class="js-form category-formset__form form-group">
<div class="category-formset__form__category">
<div class="js-form category-formset__form form-group form-row">
<div class="category-formset__form__category col pl-0">
{% if can_delete %}
<input type="checkbox" name="{{ form.DELETE.html_name }}" id="{{ form.DELETE.id_for_label }}" class="category-formset__delete">
{% endif %}
Expand All @@ -11,7 +11,7 @@
{{ form.name }}

{% if not form.name.value %}
<button type="button" class="category-formset__delete-label js-remove-form" title="{% trans 'Remove category' %}">
<button type="button" class="category-formset__delete-label js-remove-form col pr-0" title="{% trans 'Remove category' %}">
<i class="fa fa-times" aria-label="{% trans 'Remove category' %}"></i>
</button>
{% elif can_delete %}
Expand All @@ -29,7 +29,7 @@
<label for="{{ form.name.id_for_label }}" class="sr-only">
{{ form.name.label }}
</label>
<div class="category-formset__form__icon select-icon">
<div class="category-formset__form__icon select-icon col">
{{ form.icon|add_class:'d-none category-icon-select' }}
</div>
{% endif %}
Expand Down

0 comments on commit 455c1f9

Please sign in to comment.