Add BumbleberryOverrideHelper for modern feature support and update main.js for responsive column visibility although not needed with override. Fixes #10
This commit is contained in:
parent
5e6f962c95
commit
c2d1bdd017
@ -166,6 +166,20 @@
|
||||
if (!window.initNodeFunctions) {
|
||||
window.initNodeFunctions = [];
|
||||
}
|
||||
|
||||
// this code is used to hide columns with class "column-set" on small screens
|
||||
// but is not really necessary, was fixed with bumbleberry_overridehelp.rb
|
||||
function handleColumnSetVisibility() {
|
||||
var isMobile = window.innerWidth <= 679;
|
||||
var elements = document.querySelectorAll('.table-th.column-set, th.column-set');
|
||||
elements.forEach(function(el) {
|
||||
el.style.display = isMobile ? 'none' : '';
|
||||
});
|
||||
}
|
||||
|
||||
window.initNodeFunctions.push(handleColumnSetVisibility);
|
||||
window.addEventListener('resize', handleColumnSetVisibility);
|
||||
|
||||
window.initNodeFunctions.push(function(node) {
|
||||
forEachElement('.number-field,.email-field,.text-field,.password-field,.search-field', function(field) {
|
||||
var input = field.querySelector('input');
|
||||
|
||||
@ -7,14 +7,17 @@ $bug-list: (
|
||||
"pre-overflow-not-auto": false,
|
||||
"code-font-not-ems-and-not-monospace": false
|
||||
);
|
||||
$markup-settings: ("audio": false);
|
||||
$markup-settings: (
|
||||
"audio": false
|
||||
);
|
||||
|
||||
@import "bumbleberry";
|
||||
@import "settings";
|
||||
|
||||
$zindex-base: 0;
|
||||
|
||||
html, body {
|
||||
html,
|
||||
body {
|
||||
color: $black;
|
||||
position: relative;
|
||||
z-index: $zindex-base;
|
||||
@ -25,7 +28,20 @@ body {
|
||||
padding-bottom: 20vw;
|
||||
}
|
||||
|
||||
h1, h2, h3, h4, h5, h6, label, button, .button, dt, th, .table-th, nav.sub-menu, legend {
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
h6,
|
||||
label,
|
||||
button,
|
||||
.button,
|
||||
dt,
|
||||
th,
|
||||
.table-th,
|
||||
nav.sub-menu,
|
||||
legend {
|
||||
@include font-family(secondary);
|
||||
font-weight: normal;
|
||||
}
|
||||
@ -35,7 +51,8 @@ h2 {
|
||||
font-size: 6vw;
|
||||
}
|
||||
|
||||
h3, legend {
|
||||
h3,
|
||||
legend {
|
||||
font-size: 4.5vw;
|
||||
margin: 0.75em 0;
|
||||
line-height: 1.333em;
|
||||
@ -100,11 +117,15 @@ a {
|
||||
display: none;
|
||||
}
|
||||
|
||||
table, .table {
|
||||
table,
|
||||
.table {
|
||||
margin-bottom: 2em;
|
||||
margin-left: 1em;
|
||||
|
||||
th, td, .table-th, .table-td {
|
||||
th,
|
||||
td,
|
||||
.table-th,
|
||||
.table-td {
|
||||
text-align: left;
|
||||
padding: 0.25em 0.5em;
|
||||
border: 0.1rem solid $light-gray;
|
||||
@ -124,7 +145,8 @@ table, .table {
|
||||
}
|
||||
}
|
||||
|
||||
th, .table-th {
|
||||
th,
|
||||
.table-th {
|
||||
background-color: $extra-light-gray;
|
||||
|
||||
&.corner {
|
||||
@ -190,6 +212,7 @@ table, .table {
|
||||
}
|
||||
|
||||
.cell-editor {
|
||||
|
||||
&[type=number]::-webkit-inner-spin-button,
|
||||
&[type=number]::-webkit-outer-spin-button {
|
||||
-webkit-appearance: none;
|
||||
@ -210,7 +233,8 @@ table, .table {
|
||||
}
|
||||
}
|
||||
|
||||
+ .editor, &.always-edit {
|
||||
+.editor,
|
||||
&.always-edit {
|
||||
td {
|
||||
position: relative;
|
||||
vertical-align: top;
|
||||
@ -273,11 +297,15 @@ table, .table {
|
||||
}
|
||||
}
|
||||
|
||||
tr.editable, tr.editor {
|
||||
tr.editable,
|
||||
tr.editor {
|
||||
td {
|
||||
white-space: nowrap;
|
||||
|
||||
&.date, &.datetime, &.money, &.number {
|
||||
&.date,
|
||||
&.datetime,
|
||||
&.money,
|
||||
&.number {
|
||||
font-family: monospace;
|
||||
font-size: 1.25em;
|
||||
text-align: right;
|
||||
@ -439,7 +467,8 @@ body.expanded-element {
|
||||
display: table-row;
|
||||
}
|
||||
|
||||
.table-th, .table-td {
|
||||
.table-th,
|
||||
.table-td {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
@ -451,9 +480,14 @@ body.expanded-element {
|
||||
padding: 1em;
|
||||
}
|
||||
|
||||
.table-tr, .table-th, .table-td {
|
||||
.table-tr,
|
||||
.table-th,
|
||||
.table-td {
|
||||
display: block;
|
||||
overflow: auto;
|
||||
border-width: 0 !important;
|
||||
border-style: none !important;
|
||||
border-color: transparent !important;
|
||||
}
|
||||
|
||||
.table-tr {
|
||||
@ -461,6 +495,27 @@ body.expanded-element {
|
||||
}
|
||||
}
|
||||
|
||||
// this code is used to hide columns with class "column-set" on small screens
|
||||
// but is not really necessary, was fixed with bumbleberry_overridehelp.rb
|
||||
@media only screen and (max-width: 679px) {
|
||||
.responsive-table {
|
||||
|
||||
.table-tr,
|
||||
.table-th,
|
||||
.table-td {
|
||||
border-width: 0 !important;
|
||||
border-style: none !important;
|
||||
border-color: transparent !important;
|
||||
}
|
||||
}
|
||||
|
||||
// th class="column-set" are not necessary in mobile and break newer
|
||||
// versions of Chrome (144)
|
||||
th.column-set {
|
||||
display: none !important;
|
||||
}
|
||||
}
|
||||
|
||||
button,
|
||||
.button {
|
||||
@include button;
|
||||
@ -492,7 +547,8 @@ button,
|
||||
background-color: $orange;
|
||||
}
|
||||
|
||||
&.subdued, #main &.subdued {
|
||||
&.subdued,
|
||||
#main &.subdued {
|
||||
background-color: $mid-gray;
|
||||
}
|
||||
|
||||
@ -572,7 +628,8 @@ button,
|
||||
&.center {
|
||||
text-align: center;
|
||||
|
||||
button, .button {
|
||||
button,
|
||||
.button {
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
}
|
||||
@ -588,7 +645,8 @@ button,
|
||||
justify-content: center;
|
||||
@include _(flex-wrap, wrap);
|
||||
|
||||
button, .button {
|
||||
button,
|
||||
.button {
|
||||
margin: 0.333em;
|
||||
}
|
||||
}
|
||||
@ -604,7 +662,8 @@ button,
|
||||
background-color: $blue;
|
||||
}
|
||||
|
||||
button[value="cancel"], button.red {
|
||||
button[value="cancel"],
|
||||
button.red {
|
||||
background-color: $red;
|
||||
}
|
||||
|
||||
@ -614,6 +673,7 @@ button,
|
||||
}
|
||||
|
||||
#main {
|
||||
|
||||
.registration-step-options,
|
||||
.vertical-registration-step-options {
|
||||
text-align: center;
|
||||
@ -745,7 +805,9 @@ ul.menu {
|
||||
text-align: center;
|
||||
margin-bottom: 3em;
|
||||
|
||||
&.error, &.complete, &.warning {
|
||||
&.error,
|
||||
&.complete,
|
||||
&.warning {
|
||||
display: block;
|
||||
}
|
||||
|
||||
@ -799,7 +861,9 @@ nav.sub-menu {
|
||||
@include default-box-shadow(top, 2);
|
||||
@include _(text-shadow, 0 0.05em 0.05em $white);
|
||||
|
||||
&:hover, &:active, &:focus {
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
background-color: $light-gray;
|
||||
}
|
||||
|
||||
@ -833,7 +897,8 @@ nav.sub-menu {
|
||||
}
|
||||
}
|
||||
|
||||
textarea, .textarea {
|
||||
textarea,
|
||||
.textarea {
|
||||
display: block;
|
||||
width: 100%;
|
||||
margin: 1em 0;
|
||||
@ -843,7 +908,9 @@ textarea, .textarea {
|
||||
@include _(transition, box-shadow 200ms ease-in-out);
|
||||
will-change: box-shadow;
|
||||
|
||||
&:hover, &:focus, &:active {
|
||||
&:hover,
|
||||
&:focus,
|
||||
&:active {
|
||||
@include _(box-shadow, 0 0 0 0.3em rgba(0, 0, 0, 0.05));
|
||||
}
|
||||
}
|
||||
@ -853,12 +920,24 @@ textarea, .textarea {
|
||||
}
|
||||
|
||||
.textarea {
|
||||
.ql-editor p, .ql-editor ol, .ql-editor ul, .ql-editor pre, .ql-editor blockquote, .ql-editor h1, .ql-editor h2, .ql-editor h3, .ql-editor h4, .ql-editor h5, .ql-editor h6 {
|
||||
|
||||
.ql-editor p,
|
||||
.ql-editor ol,
|
||||
.ql-editor ul,
|
||||
.ql-editor pre,
|
||||
.ql-editor blockquote,
|
||||
.ql-editor h1,
|
||||
.ql-editor h2,
|
||||
.ql-editor h3,
|
||||
.ql-editor h4,
|
||||
.ql-editor h5,
|
||||
.ql-editor h6 {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
}
|
||||
|
||||
textarea, .textarea .ql-editor {
|
||||
textarea,
|
||||
.textarea .ql-editor {
|
||||
background-image: repeating-linear-gradient(135deg, rgba(#000, 0.025), rgba(#000, 0.025) 0.1em, transparent 0.1em, transparent 0.4em);
|
||||
min-height: 15em;
|
||||
font-size: 1.25em;
|
||||
@ -872,7 +951,8 @@ textarea, .textarea .ql-editor {
|
||||
}
|
||||
}
|
||||
|
||||
.textarea, .workshop-description {
|
||||
.textarea,
|
||||
.workshop-description {
|
||||
> :first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
@ -895,7 +975,14 @@ textarea, .textarea .ql-editor {
|
||||
}
|
||||
|
||||
input {
|
||||
&[type="text"], &[type="password"], &[type="tel"], &[type="search"], &[type="email"], &[type="url"], &[type="number"] {
|
||||
|
||||
&[type="text"],
|
||||
&[type="password"],
|
||||
&[type="tel"],
|
||||
&[type="search"],
|
||||
&[type="email"],
|
||||
&[type="url"],
|
||||
&[type="number"] {
|
||||
display: block;
|
||||
font-size: 1.25em;
|
||||
outline: 0;
|
||||
@ -906,7 +993,8 @@ input {
|
||||
border-bottom: 0.15em solid transparent;
|
||||
}
|
||||
|
||||
&[type="number"], &[type="tel"] {
|
||||
&[type="number"],
|
||||
&[type="tel"] {
|
||||
@include font-family(secondary);
|
||||
}
|
||||
}
|
||||
@ -975,14 +1063,20 @@ input {
|
||||
will-change: box-shadow;
|
||||
}
|
||||
|
||||
&:focus, &:active, &:focus {
|
||||
&:focus,
|
||||
&:active,
|
||||
&:focus {
|
||||
|
||||
label {
|
||||
color: $black;
|
||||
}
|
||||
}
|
||||
|
||||
input {
|
||||
&:focus, &:active, &:hover {
|
||||
|
||||
&:focus,
|
||||
&:active,
|
||||
&:hover {
|
||||
@include _(box-shadow, 0 0 0 0.3em rgba(0, 0, 0, 0.05));
|
||||
}
|
||||
|
||||
@ -1058,7 +1152,11 @@ input {
|
||||
}
|
||||
}
|
||||
|
||||
label:hover, input:focus + label, input:active + label, label:focus, label:active {
|
||||
label:hover,
|
||||
input:focus+label,
|
||||
input:active+label,
|
||||
label:focus,
|
||||
label:active {
|
||||
.file-field-selector {
|
||||
@include _(box-shadow, 0 0 0 0.3em rgba(0, 0, 0, 0.05));
|
||||
}
|
||||
@ -1240,6 +1338,7 @@ input {
|
||||
@include before {
|
||||
background-color: $colour-5;
|
||||
}
|
||||
|
||||
@include after {
|
||||
visibility: visible;
|
||||
@include _(transform, rotate(45deg) scale(1));
|
||||
@ -1349,7 +1448,8 @@ form {
|
||||
@include _(flex, 1);
|
||||
}
|
||||
|
||||
button, .button {
|
||||
button,
|
||||
.button {
|
||||
margin-left: 1em;
|
||||
height: 2.6em;
|
||||
}
|
||||
@ -1397,7 +1497,8 @@ form {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
button, .button {
|
||||
button,
|
||||
.button {
|
||||
display: block;
|
||||
width: 100%;
|
||||
white-space: nowrap;
|
||||
@ -1467,7 +1568,8 @@ fieldset {
|
||||
}
|
||||
}
|
||||
|
||||
.locale-select, .text-editors {
|
||||
.locale-select,
|
||||
.text-editors {
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
@ -1574,7 +1676,8 @@ fieldset {
|
||||
.sub-comment {
|
||||
font-size: 0.8em;
|
||||
|
||||
.comment-title, time {
|
||||
.comment-title,
|
||||
time {
|
||||
top: -1em;
|
||||
}
|
||||
}
|
||||
@ -1588,6 +1691,7 @@ fieldset {
|
||||
|
||||
#main .columns & form {
|
||||
margin-top: 0;
|
||||
|
||||
button {
|
||||
@include _(transition, background-color 150ms ease-in-out);
|
||||
background-color: $mid-gray;
|
||||
@ -1626,12 +1730,16 @@ fieldset {
|
||||
}
|
||||
}
|
||||
|
||||
.flex-form, .flex-column {
|
||||
button, .button {
|
||||
.flex-form,
|
||||
.flex-column {
|
||||
|
||||
button,
|
||||
.button {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
|
||||
+ button, + .button {
|
||||
+button,
|
||||
+.button {
|
||||
margin-top: 0.75em;
|
||||
}
|
||||
}
|
||||
@ -1863,9 +1971,11 @@ ul.warnings {
|
||||
display: table;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
@if capable_of(flexbox, true) {
|
||||
@include _-(display, flex);
|
||||
}
|
||||
|
||||
list-style: none;
|
||||
margin: 2em 2em 5em 0;
|
||||
padding: 0;
|
||||
@ -1873,12 +1983,15 @@ ul.warnings {
|
||||
|
||||
li {
|
||||
position: relative;
|
||||
|
||||
@if not capable_of(flexbox, true) {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
@if capable_of(flexbox, true) {
|
||||
@include _(flex, 1);
|
||||
}
|
||||
|
||||
padding-top: 1.5em;
|
||||
|
||||
@include after {
|
||||
@ -2247,16 +2360,31 @@ a.logo {
|
||||
@if capable_of(svg) {
|
||||
|
||||
@include keyframes(active-logo) {
|
||||
0% { fill: $colour-1; }
|
||||
15% { fill: $colour-5; }
|
||||
30% { fill: $colour-3; }
|
||||
45% { fill: $colour-4; }
|
||||
60% { fill: $colour-2; }
|
||||
0% {
|
||||
fill: $colour-1;
|
||||
}
|
||||
|
||||
15% {
|
||||
fill: $colour-5;
|
||||
}
|
||||
|
||||
30% {
|
||||
fill: $colour-3;
|
||||
}
|
||||
|
||||
45% {
|
||||
fill: $colour-4;
|
||||
}
|
||||
|
||||
60% {
|
||||
fill: $colour-2;
|
||||
}
|
||||
}
|
||||
|
||||
svg.bb-icon-logo {
|
||||
fill: $colour-1;
|
||||
}
|
||||
|
||||
svg.bb-icon-logo-text {
|
||||
fill: $black;
|
||||
}
|
||||
@ -2301,7 +2429,8 @@ a.logo {
|
||||
font-size: 5vw;
|
||||
margin: 0;
|
||||
|
||||
h1, h2 {
|
||||
h1,
|
||||
h2 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@ -2377,7 +2506,8 @@ $header-tilt: 8deg;
|
||||
position: relative;
|
||||
z-index: $zindex-base;
|
||||
|
||||
.row, .columns {
|
||||
.row,
|
||||
.columns {
|
||||
position: static;
|
||||
}
|
||||
|
||||
@ -2423,16 +2553,14 @@ $header-tilt: 8deg;
|
||||
background-repeat: repeat;
|
||||
background-size: 30px 30px;
|
||||
@include _(animation, barberpole 500ms linear infinite);
|
||||
background-image: linear-gradient(
|
||||
45deg,
|
||||
background-image: linear-gradient(45deg,
|
||||
rgba($white, 0.1) 25%,
|
||||
transparent 25%,
|
||||
transparent 50%,
|
||||
rgba($white, 0.1) 50%,
|
||||
rgba($white, 0.1) 75%,
|
||||
transparent 75%,
|
||||
transparent
|
||||
);
|
||||
transparent);
|
||||
|
||||
svg {
|
||||
vertical-align: middle;
|
||||
@ -2528,11 +2656,15 @@ $header-tilt: 8deg;
|
||||
color: $colour-1;
|
||||
@include _(opacity, 0.65);
|
||||
margin: -4% -2%;
|
||||
|
||||
@if capable_of(calc) {
|
||||
font-size: calc(5vw + #{rems(7)});
|
||||
} @else {
|
||||
}
|
||||
|
||||
@else {
|
||||
font-size: rems(11);
|
||||
}
|
||||
|
||||
display: none;
|
||||
}
|
||||
|
||||
@ -2584,7 +2716,9 @@ $header-tilt: 8deg;
|
||||
font-size: 4.1vw;
|
||||
}
|
||||
|
||||
.site-info, .user-controls, .external {
|
||||
.site-info,
|
||||
.user-controls,
|
||||
.external {
|
||||
width: 100%;
|
||||
text-align: center;
|
||||
|
||||
@ -2613,7 +2747,10 @@ $header-tilt: 8deg;
|
||||
|
||||
.facebook {
|
||||
a {
|
||||
&:hover, &:active, &:focus {
|
||||
|
||||
&:hover,
|
||||
&:active,
|
||||
&:focus {
|
||||
svg {
|
||||
fill: #3B579D;
|
||||
}
|
||||
@ -2621,7 +2758,8 @@ $header-tilt: 8deg;
|
||||
}
|
||||
}
|
||||
|
||||
.github, .facebook {
|
||||
.github,
|
||||
.facebook {
|
||||
display: inline-block;
|
||||
margin: 0.5em;
|
||||
|
||||
@ -2657,7 +2795,10 @@ $header-tilt: 8deg;
|
||||
}
|
||||
|
||||
body.error-locale-not-available & {
|
||||
.github, .facebook, .locales {
|
||||
|
||||
.github,
|
||||
.facebook,
|
||||
.locales {
|
||||
visibility: hidden;
|
||||
}
|
||||
}
|
||||
@ -2683,6 +2824,7 @@ body {
|
||||
display: -webkit-flex;
|
||||
flex-direction: column;
|
||||
}
|
||||
|
||||
min-height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
@ -2773,7 +2915,8 @@ body {
|
||||
}
|
||||
}
|
||||
|
||||
button, .button {
|
||||
button,
|
||||
.button {
|
||||
margin: 0 0.25em 0.5em;
|
||||
}
|
||||
|
||||
@ -2817,7 +2960,8 @@ body {
|
||||
#info-dlg .message {
|
||||
text-align: left;
|
||||
|
||||
p, h4 {
|
||||
p,
|
||||
h4 {
|
||||
font-size: 0.8em;
|
||||
}
|
||||
|
||||
@ -2861,7 +3005,9 @@ body {
|
||||
}
|
||||
|
||||
@include keyframes(barberpole) {
|
||||
to { background-position: 60px 30px; }
|
||||
to {
|
||||
background-position: 60px 30px;
|
||||
}
|
||||
}
|
||||
|
||||
html :focus {
|
||||
@ -3009,7 +3155,8 @@ body.policy .policy-agreement ul {
|
||||
margin-bottom: 0.5em;
|
||||
}
|
||||
|
||||
.name, .role {
|
||||
.name,
|
||||
.role {
|
||||
display: inline;
|
||||
}
|
||||
|
||||
@ -3056,7 +3203,8 @@ body.policy .policy-agreement ul {
|
||||
vertical-align: top;
|
||||
margin-top: 2em;
|
||||
|
||||
h3, p:first-child {
|
||||
h3,
|
||||
p:first-child {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
@ -3150,7 +3298,8 @@ body.policy .policy-agreement ul {
|
||||
font-size: 1em;
|
||||
}
|
||||
|
||||
h5, h6 {
|
||||
h5,
|
||||
h6 {
|
||||
margin: 1em 0 0;
|
||||
}
|
||||
}
|
||||
@ -3165,7 +3314,8 @@ body.policy .policy-agreement ul {
|
||||
}
|
||||
}
|
||||
|
||||
#main .workshop-interest, .workshop-interest {
|
||||
#main .workshop-interest,
|
||||
.workshop-interest {
|
||||
text-align: right;
|
||||
|
||||
form {
|
||||
@ -3195,7 +3345,9 @@ body.policy .policy-agreement ul {
|
||||
@include _(border-radius, 0.25em);
|
||||
}
|
||||
|
||||
h4, h5, h6 {
|
||||
h4,
|
||||
h5,
|
||||
h6 {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@ -3453,7 +3605,8 @@ fieldset.likert {
|
||||
.responsive-table.likert {
|
||||
margin: 2em 0 1em;
|
||||
|
||||
.table-td, .table-thead .table-th {
|
||||
.table-td,
|
||||
.table-thead .table-th {
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
@ -3518,7 +3671,8 @@ fieldset.likert {
|
||||
font-size: 2.25em;
|
||||
}
|
||||
|
||||
h3, legend {
|
||||
h3,
|
||||
legend {
|
||||
font-size: 1.75em;
|
||||
}
|
||||
|
||||
@ -3547,11 +3701,13 @@ fieldset.likert {
|
||||
@include _(flex, 1);
|
||||
}
|
||||
|
||||
button, .button {
|
||||
button,
|
||||
.button {
|
||||
margin-left: 1em;
|
||||
height: 2.6em;
|
||||
|
||||
+ button, + .button {
|
||||
+button,
|
||||
+.button {
|
||||
margin-top: 0;
|
||||
margin-left: 0.75em;
|
||||
}
|
||||
@ -3560,6 +3716,7 @@ fieldset.likert {
|
||||
}
|
||||
|
||||
.input-field {
|
||||
|
||||
&.big select,
|
||||
&.big input {
|
||||
font-size: 2em;
|
||||
@ -3604,8 +3761,11 @@ fieldset.likert {
|
||||
}
|
||||
}
|
||||
|
||||
.flex-form, .flex-column {
|
||||
button, .button {
|
||||
.flex-form,
|
||||
.flex-column {
|
||||
|
||||
button,
|
||||
.button {
|
||||
width: auto;
|
||||
}
|
||||
}
|
||||
@ -3732,7 +3892,8 @@ fieldset.likert {
|
||||
}
|
||||
}
|
||||
|
||||
.info, .img {
|
||||
.info,
|
||||
.img {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
@ -3871,9 +4032,12 @@ fieldset.likert {
|
||||
@include _(flex, none);
|
||||
@include _(flex-basis, auto);
|
||||
}
|
||||
|
||||
margin: 0 1em;
|
||||
}
|
||||
.facebook, .external {
|
||||
|
||||
.facebook,
|
||||
.external {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
@ -3882,7 +4046,9 @@ fieldset.likert {
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
.site-info, .user-controls, .external {
|
||||
.site-info,
|
||||
.user-controls,
|
||||
.external {
|
||||
width: auto;
|
||||
}
|
||||
|
||||
@ -4038,7 +4204,8 @@ fieldset.likert {
|
||||
padding: 0.25em 0.5em;
|
||||
}
|
||||
|
||||
.table-th, .table-td {
|
||||
.table-th,
|
||||
.table-td {
|
||||
display: table-cell;
|
||||
}
|
||||
|
||||
@ -4054,7 +4221,9 @@ fieldset.likert {
|
||||
display: table-footer-group;
|
||||
}
|
||||
}
|
||||
} // medium
|
||||
}
|
||||
|
||||
// medium
|
||||
|
||||
@include breakpoint(large) {
|
||||
.responsive-table.likert {
|
||||
@ -4069,9 +4238,11 @@ fieldset.likert {
|
||||
&.no-image {
|
||||
min-height: 0;
|
||||
}
|
||||
|
||||
&.short {
|
||||
min-height: rems(25);
|
||||
}
|
||||
|
||||
&.no-image,
|
||||
&.short {
|
||||
h1 {
|
||||
|
||||
@ -1,6 +1,8 @@
|
||||
require 'net/https'
|
||||
|
||||
class ApplicationController < BaseController
|
||||
include BumbleberryOverrideHelper
|
||||
|
||||
protect_from_forgery with: :exception, except: [:do_confirm, :js_error, :admin_update]
|
||||
|
||||
before_filter :application_setup
|
||||
|
||||
11
app/helpers/bumbleberry_override_helper.rb
Normal file
11
app/helpers/bumbleberry_override_helper.rb
Normal file
@ -0,0 +1,11 @@
|
||||
module BumbleberryOverrideHelper
|
||||
MODERN_FEATURES = [:css3_boxsizing, :css_sel3, :flexbox, :css_grid, :svg].freeze
|
||||
|
||||
def capable_of(capability)
|
||||
if MODERN_FEATURES.include?(capability)
|
||||
true
|
||||
else
|
||||
super
|
||||
end
|
||||
end
|
||||
end
|
||||
6
pnpm-lock.yaml
generated
6
pnpm-lock.yaml
generated
@ -22,14 +22,14 @@ packages:
|
||||
hasBin: true
|
||||
dependencies:
|
||||
baseline-browser-mapping: 2.9.19
|
||||
caniuse-lite: 1.0.30001766
|
||||
caniuse-lite: 1.0.30001767
|
||||
electron-to-chromium: 1.5.283
|
||||
node-releases: 2.0.27
|
||||
update-browserslist-db: 1.2.3(browserslist@4.28.1)
|
||||
dev: false
|
||||
|
||||
/caniuse-lite@1.0.30001766:
|
||||
resolution: {integrity: sha512-4C0lfJ0/YPjJQHagaE9x2Elb69CIqEPZeG0anQt9SIvIoOH4a4uaRl73IavyO+0qZh6MDLH//DrXThEYKHkmYA==}
|
||||
/caniuse-lite@1.0.30001767:
|
||||
resolution: {integrity: sha512-34+zUAMhSH+r+9eKmYG+k2Rpt8XttfE4yXAjoZvkAPs15xcYQhyBYdalJ65BzivAvGRMViEjy6oKr/S91loekQ==}
|
||||
dev: false
|
||||
|
||||
/electron-to-chromium@1.5.283:
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user