diff --git a/assets/styles/components.scss b/assets/styles/components.scss index 9cb66f847..3fcea3463 100644 --- a/assets/styles/components.scss +++ b/assets/styles/components.scss @@ -3,12 +3,16 @@ .iconified-input { align-items: center; display: inline-flex; + position: relative; input { padding-left: 2rem; + width: 100%; } svg { + position: absolute; + left: 0.6rem; height: 1rem; z-index: 1; @@ -35,7 +39,7 @@ border-radius: 2rem; &:hover, - &:focus { + &:focus-visible { background-color: var(--color-button-bg-hover); } @@ -306,7 +310,7 @@ background-color: var(--color-button-bg); font-weight: var(--font-weight-medium); font-size: var(--font-size-nm); - &:focus, + &:focus-visible, &:hover { background-color: var(--color-button-bg-hover); } @@ -326,7 +330,7 @@ color: var(--color-text); background-color: transparent; - &:focus, + &:focus-visible, &:hover, &.selected, &.nuxt-link-exact-active, @@ -349,7 +353,7 @@ @extend .button; color: var(--color-brand-inverted); background-color: var(--color-brand); - &:focus, + &:focus-visible, &:hover { background-color: var(--color-brand-hover); color: var(--color-brand-inverted); @@ -364,7 +368,7 @@ box-shadow: inset 0px -1px 1px rgba(0, 0, 0, 0.25); color: var(--color-brand-inverted); background-color: var(--color-brand); - &:focus, + &:focus-visible, &:hover { background-color: var(--color-brand-hover); color: var(--color-brand-inverted); diff --git a/assets/styles/global.scss b/assets/styles/global.scss index 345740800..e4cb46d27 100644 --- a/assets/styles/global.scss +++ b/assets/styles/global.scss @@ -146,7 +146,7 @@ body { --color-badge-red-bg: #db3162; --color-badge-green-text: #1ebb7b; --color-badge-green-bg: #24a54e; - --color-badge-yellow-text: #755920; + --color-badge-yellow-text: #dba22d; --color-badge-yellow-bg: #f7bb43; --color-block-quote: var(--color-code-bg); @@ -307,7 +307,7 @@ button { border: none; border-radius: var(--size-rounded-control); - &:focus, + &:focus-visible, &:hover { background-color: var(--color-button-bg-hover); color: var(--color-button-text-hover); diff --git a/components/ads/Advertisement.vue b/components/ads/Advertisement.vue index c39e42654..753edbfb4 100644 --- a/components/ads/Advertisement.vue +++ b/components/ads/Advertisement.vue @@ -79,6 +79,7 @@ export default { onSmallScreen: false, windowResizeListenerDebounce: null, ethicalAdLoad: null, + ethicalAdTries: 0, } }, head: { @@ -165,14 +166,18 @@ export default { }, refresh_ad() { if (this.ethical_ads_on) { + this.ethicalAdTries++ clearTimeout(this.ethicalAdLoad) - this.ethicalAdLoad = setTimeout(() => { - if (typeof window.ethicalads === 'undefined') { - console.log('EthicalAds are not loaded yet, retrying...') - this.refresh_ad() - } - ethicalads.load() - }, 100) + + if (this.ethicalAdTries <= 5) { + this.ethicalAdLoad = setTimeout(() => { + if (typeof window.ethicalads === 'undefined') { + console.log('EthicalAds are not loaded yet, retrying...') + this.refresh_ad() + } + ethicalads.load() + }, 100) + } } }, }, diff --git a/components/ui/Checkbox.vue b/components/ui/Checkbox.vue index 99c95176d..d06d503ec 100644 --- a/components/ui/Checkbox.vue +++ b/components/ui/Checkbox.vue @@ -1,9 +1,22 @@ @@ -25,6 +38,10 @@ export default { type: Boolean, default: false, }, + description: { + type: String, + default: '', + }, value: Boolean, clickEvent: { type: Function, diff --git a/components/ui/ProjectCard.vue b/components/ui/ProjectCard.vue index 98621e985..d525e8d76 100644 --- a/components/ui/ProjectCard.vue +++ b/components/ui/ProjectCard.vue @@ -1,5 +1,5 @@ diff --git a/layouts/default.vue b/layouts/default.vue index df9e0722c..79941e67f 100644 --- a/layouts/default.vue +++ b/layouts/default.vue @@ -1,14 +1,14 @@