-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #497 from Vizzuality/app/javascript/section-pages-…
…update Fix styles and add download form
- Loading branch information
Showing
27 changed files
with
635 additions
and
109 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,136 @@ | ||
@import "colors"; | ||
@import "typography"; | ||
|
||
.download { | ||
button { | ||
margin-right: 10px; | ||
} | ||
} | ||
.download-form { | ||
> * { | ||
margin-bottom: 20px; | ||
} | ||
h2 { | ||
font-size: 20px !important; | ||
font-weight: bold; | ||
} | ||
.--mandatory { | ||
color: $red; | ||
} | ||
.content { | ||
input[type="text"] { | ||
height: 40px; | ||
width: 100%; | ||
padding-inline: 10px; | ||
border-radius: 0; | ||
border: 1px solid #191919; | ||
&::placeholder { | ||
color: #595b5d; | ||
font-size: 12px; | ||
} | ||
} | ||
.text-inputs { | ||
margin-bottom: 20px; | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
gap: 20px; | ||
@include until($breakpoint-desktop) { | ||
grid-template-columns: 1fr; | ||
} | ||
label { | ||
display: block; | ||
line-height: 24px; | ||
margin-bottom: 9px; | ||
} | ||
.selector__container { | ||
list-style: none; | ||
margin: 0; | ||
.selector__header { | ||
height: 40px; | ||
} | ||
.selector__input { | ||
border: 0; | ||
background-color: $white !important; | ||
} | ||
.selector__value { | ||
font-size: 14px; | ||
} | ||
.selector__options { | ||
margin: 0; | ||
transform: translateY(-4px); | ||
list-style: none; | ||
max-height: 300px; | ||
overflow-y: auto; | ||
.selector__option { | ||
font-size: 14px; | ||
padding-block: 5px; | ||
} | ||
} | ||
} | ||
&.--full { | ||
.content__input { | ||
column-span: 2; | ||
} | ||
} | ||
} | ||
.checkbox-inputs { | ||
display: flex; | ||
flex-wrap: wrap; | ||
gap: 16px 20px; | ||
margin-bottom: 16px; | ||
.content__input { | ||
display: flex; | ||
flex-direction: row-reverse; | ||
align-items: center; | ||
gap: 12px; | ||
|
||
input { | ||
width: 24px; | ||
height: 24px; | ||
border-radius: 0; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
border: 2px solid $grey-dark; | ||
appearance: none; | ||
-webkit-appearance: none; | ||
&::before { | ||
content: ""; | ||
width: 12px; | ||
height: 12px; | ||
display: block; | ||
transform: scale(0); | ||
background-color: $blue; | ||
} | ||
&:checked { | ||
&::before { | ||
transform: scale(1); | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
.other-purposes-text { | ||
&.hidden { | ||
display: none; | ||
} | ||
} | ||
.error { | ||
color: $red; | ||
font-size: 12px; | ||
margin-top: 10px; | ||
} | ||
.form-buttons { | ||
margin-top: 20px; | ||
width: 50%; | ||
display: flex; | ||
gap: 8px; | ||
button { | ||
min-width: auto !important; | ||
} | ||
.is-primary { | ||
flex-grow: 1; | ||
} | ||
} | ||
} |
Oops, something went wrong.