2018-08-29 11:11:58 +00:00
|
|
|
$ideal-viewport-width-num: 1260;
|
|
|
|
$ideal-viewport-width: #{$ideal-viewport-width-num}px;
|
|
|
|
$ideal-content-width-num: 1150;
|
|
|
|
$ideal-content-width: #{$ideal-content-width-num}px;
|
|
|
|
$ideal-viewport-padding-num: 24;
|
2018-09-21 10:13:21 +00:00
|
|
|
$ideal-viewport-padding: #{$ideal-viewport-padding-num}px;
|
2018-08-29 11:11:58 +00:00
|
|
|
$minimum-viewport-padding: 10px;
|
|
|
|
$ideal-content-padding: 33px;
|
|
|
|
|
|
|
|
// workaround bulma's sweeping box-sizing
|
|
|
|
// so we can verify the ideal widths are the same
|
|
|
|
|
|
|
|
%viewport-container {
|
|
|
|
box-sizing: content-box;
|
|
|
|
}
|
|
|
|
%viewport-container {
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
}
|
2018-10-19 15:17:02 +00:00
|
|
|
%modal-dialog > *,
|
2018-08-29 11:11:58 +00:00
|
|
|
%content-container > * {
|
|
|
|
box-sizing: border-box;
|
|
|
|
}
|
|
|
|
%content-container-restricted {
|
|
|
|
max-width: $ideal-content-width;
|
|
|
|
}
|
|
|
|
%viewport-container {
|
|
|
|
padding-left: calc(#{$ideal-viewport-padding-num}% / (#{$ideal-viewport-width-num} / 100));
|
|
|
|
padding-right: calc(#{$ideal-viewport-padding-num}% / (#{$ideal-viewport-width-num} / 100));
|
|
|
|
padding-left: calc(#{$ideal-viewport-padding-num}vw / (#{$ideal-viewport-width-num} / 100));
|
|
|
|
padding-right: calc(#{$ideal-viewport-padding-num}vw / (#{$ideal-viewport-width-num} / 100));
|
|
|
|
}
|
2018-09-21 10:13:21 +00:00
|
|
|
%content-container {
|
|
|
|
padding-left: calc(33% / (#{$ideal-viewport-width-num} / 100));
|
|
|
|
padding-right: calc(33% / (#{$ideal-viewport-width-num} / 100));
|
|
|
|
padding-left: calc(24vw / (#{$ideal-viewport-width-num} / 100));
|
|
|
|
padding-right: calc(24vw / (#{$ideal-viewport-width-num} / 100));
|
|
|
|
}
|
2018-08-29 11:11:58 +00:00
|
|
|
@media #{$--min-padding} {
|
|
|
|
%viewport-container {
|
|
|
|
padding-left: $minimum-viewport-padding;
|
|
|
|
padding-right: $minimum-viewport-padding;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
@media #{$--max-padding} {
|
|
|
|
%viewport-container {
|
|
|
|
padding-left: $ideal-viewport-padding;
|
|
|
|
padding-right: $ideal-viewport-padding;
|
|
|
|
}
|
|
|
|
%content-container {
|
|
|
|
padding-left: $ideal-viewport-padding;
|
|
|
|
padding-right: $ideal-viewport-padding;
|
|
|
|
}
|
|
|
|
}
|
2019-12-17 18:47:37 +00:00
|
|
|
form > fieldset [role='group'] {
|
|
|
|
display: flex;
|
|
|
|
flex-wrap: wrap;
|
|
|
|
flex-direction: row;
|
|
|
|
}
|
|
|
|
[role='group'] fieldset {
|
|
|
|
width: 50%;
|
|
|
|
}
|
|
|
|
[role='group'] fieldset:not(:first-of-type) {
|
|
|
|
padding-left: 20px;
|
|
|
|
border-left: 1px solid;
|
|
|
|
border-left: $gray-500;
|
|
|
|
}
|
|
|
|
[role='group'] fieldset:not(:last-of-type) {
|
|
|
|
padding-right: 20px;
|
|
|
|
}
|