-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce new design for the whole website
Fixes #116
- Loading branch information
Showing
129 changed files
with
3,090 additions
and
2,788 deletions.
There are no files selected for viewing
46 changes: 29 additions & 17 deletions
46
assets/css/part/ckeditor.css → assets/css/_layout/ckeditor-overrides.css
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,42 @@ | ||
.form-action-button { | ||
margin-top: 10px; | ||
position: sticky; | ||
bottom: 0; | ||
padding: 30px 0; | ||
|
||
text-align: center; | ||
} | ||
.form-action-button::before, .form-action-button::after { | ||
content: ''; | ||
position: absolute; | ||
top: 0; | ||
bottom: 0; | ||
|
||
/* cover shadow from .ui-block */ | ||
width: 20px; | ||
} | ||
.form-action-button::before { | ||
left: 0; | ||
transform: translateX(-100%); | ||
} | ||
.form-action-button::after { | ||
right: 0; | ||
transform: translateX(100%); | ||
} | ||
.form-action-button, .form-action-button::before, .form-action-button::after { | ||
/* keep color in sync with body background */ | ||
background: linear-gradient(rgba(255,255,255, 0), #f7f6f5 40%); | ||
} | ||
.form-action-button button { | ||
margin: 0 auto; | ||
padding-left: 30px; | ||
padding-right: 30px; | ||
} | ||
|
||
@media (max-width: 767px) | ||
{ | ||
/* keep in sync with .site-width padding */ | ||
.form-action-button::before, .form-action-button::after { | ||
width: 5vw; | ||
} | ||
} |
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,53 @@ | ||
.form-item + .form-item, | ||
.form-columns + .form-columns, | ||
.form-item + .form-columns, .form-columns + .form-item, | ||
.form-item + .form-group, .form-group + .form-item { | ||
margin-top: 20px; | ||
} | ||
|
||
.form-item label { | ||
display: inline-block; | ||
margin-bottom: 7px; | ||
} | ||
|
||
@media (min-width: 768px) | ||
{ | ||
.form-columns { | ||
display: grid; | ||
grid-auto-columns: 1fr; | ||
grid-auto-flow: column; | ||
grid-gap: 20px; | ||
} | ||
|
||
.form-columns .form-item + .form-item { | ||
margin-top: 0; | ||
} | ||
} | ||
|
||
.form-item-checkbox { | ||
position: relative; | ||
|
||
/* keep in sync with input/checkbox width */ | ||
padding-left: calc(19px + 10px); | ||
} | ||
.form-item-checkbox label { | ||
display: inline; | ||
margin-bottom: 0; | ||
} | ||
.form-item-checkbox input { | ||
position: absolute; | ||
left: 0; | ||
top: 1px; | ||
} | ||
|
||
.form-error-message { | ||
color: #ff0000; | ||
margin: 7px 0 0; | ||
font-weight: bold; | ||
} | ||
.form-help-message { | ||
font-size: 0.9em; | ||
font-style: italic; | ||
margin: 7px 0 0; | ||
opacity: 0.8; | ||
} |
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,33 @@ | ||
.form-widget-number-unit { | ||
position: relative; | ||
} | ||
.form-widget-number-unit input { | ||
/* keep in sync with input's padding right */ | ||
padding-right: calc(11px + 70px); | ||
} | ||
.form-widget-number-unit .unit-label { | ||
position: absolute; | ||
|
||
/* keep in sync with input's border width */ | ||
right: 1px; | ||
top: 1px; | ||
bottom: 1px; | ||
|
||
/* keep in sync with input's border radius */ | ||
border-top-right-radius: 7px; | ||
border-bottom-right-radius: 7px; | ||
|
||
/* keep in sync with input's border color */ | ||
border-left: 1px solid #cacaca; | ||
|
||
background: #f8f6f6; | ||
width: 70px; | ||
|
||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
} | ||
.form-widget-number-unit input:disabled + .unit-label { | ||
opacity: 0.4; | ||
cursor: not-allowed; | ||
} |
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,140 @@ | ||
input, textarea, select, button, a.button { | ||
width: 100%; | ||
padding: 6px 11px; | ||
background: #f9f9f9; | ||
border: 1px solid #cacaca; | ||
border-radius: 7px; | ||
|
||
outline: 0 solid transparent; | ||
transition: linear 0.1s background-color, linear 0.1s outline; | ||
|
||
font: inherit; | ||
color: inherit; | ||
box-sizing: border-box; | ||
} | ||
input:focus, textarea:focus, select:focus, button:focus, a.button:focus { | ||
outline: 2px solid rgb(240,127,31, 0.6); | ||
border-color: #F07F1F; | ||
background-color: #fff; | ||
|
||
/* needed for WebKit/Blink */ | ||
outline-offset: 0px; | ||
} | ||
input:disabled, textarea:disabled, select:disabled { | ||
opacity: 0.4; | ||
cursor: not-allowed; | ||
} | ||
input::placeholder, textarea::placeholder { | ||
color: inherit; | ||
opacity: 0.3; | ||
} | ||
textarea { | ||
resize: vertical; | ||
min-height: 130px; | ||
} | ||
input[type="number"] { | ||
text-align: center; | ||
} | ||
@supports (-webkit-app-region: initial) | ||
{ | ||
input[type="search"]::-webkit-search-cancel-button { | ||
/* remove "X" from search input in WebKit */ | ||
-webkit-appearance: none; | ||
} | ||
input::-webkit-calendar-picker-indicator { | ||
/* remove ugly arrow in inputs with datalist attribute in WebKit */ | ||
display: none; | ||
} | ||
} | ||
@supports (-webkit-nbsp-mode: initial) | ||
{ | ||
input[type="search"] { | ||
/* make search input consistent in WebKit, not Blink */ | ||
-webkit-appearance: none; | ||
} | ||
} | ||
|
||
select { | ||
/* hide default select arrow */ | ||
-moz-appearance: none; | ||
-webkit-appearance: none; | ||
appearance: none; | ||
|
||
background-image: url("data:image/svg+xml,%3Csvg height='16px' width='45px' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolygon fill='%23999' points='23.303,-0.002 12.467,10.834 1.63,-0.002 -0.454,2.082 12.467,15.002 14.551,12.918 25.387,2.082'/%3E%3C/svg%3E"); | ||
background-position: center right; | ||
background-repeat: no-repeat; | ||
background-size: 30px; | ||
} | ||
|
||
button, a.button { | ||
display: inline-block; | ||
width: auto; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
|
||
background: #f8f8f8; | ||
color: #ba5400; | ||
font-weight: bold; | ||
border-color: #ddd; | ||
box-shadow: 0 0 2px rgba(0,0,0, 0.17); | ||
} | ||
button:hover:not(:disabled), a.button:hover { | ||
background-color: #e9e9e9; | ||
} | ||
button:focus, a.button:focus { | ||
background-color: #f8f8f8; | ||
} | ||
button:active, a.button:active { | ||
opacity: 0.7; | ||
} | ||
button:disabled { | ||
opacity: 0.4; | ||
cursor: not-allowed; | ||
} | ||
|
||
a.button { | ||
text-align: center; | ||
width: auto; | ||
text-decoration: none; | ||
|
||
margin: 0; | ||
} | ||
|
||
fieldset { | ||
margin: 0; | ||
padding: 0; | ||
border: none; | ||
padding: 0; | ||
} | ||
|
||
input[type="checkbox"], input[type="radio"] { | ||
-moz-appearance: none; | ||
-webkit-appearance: none; | ||
appearance: none; | ||
|
||
display: inline-block; | ||
width: 19px; | ||
height: 19px; | ||
padding: 0; | ||
margin: 0; | ||
border-radius: 4px; | ||
|
||
background-position: center; | ||
background-repeat: no-repeat; | ||
background-size: 9px 9px; | ||
} | ||
input[type="radio"] { | ||
border-radius: 10px; | ||
} | ||
input[type="checkbox"]:checked { | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 1 1'%3E%3Crect fill='%23FF7500' rx='0.25' x='0' y='0' width='1' height='1'/%3E%3C/svg%3E"); | ||
} | ||
input[type="radio"]:checked { | ||
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='7' height='7' viewBox='0 0 1 1'%3E%3Crect fill='%23FF7500' rx='1' x='0' y='0' width='1' height='1'/%3E%3C/svg%3E"); | ||
} | ||
|
||
input[type="checkbox"]:focus-visible + label, input[type="radio"]:focus-visible + label { | ||
/* keep in sync with *:focus-visible */ | ||
outline-offset: 3px; | ||
outline: 2px solid rgb(240,127,31, 0.6); | ||
} |
Oops, something went wrong.