updated buttons
This commit is contained in:
parent
af0e5c519b
commit
dc7d6773a9
@ -35,7 +35,11 @@ $btn-colors: (
|
|||||||
font-size: 1.05em;
|
font-size: 1.05em;
|
||||||
color: map-get($colors, font);
|
color: map-get($colors, font);
|
||||||
|
|
||||||
&:hover {
|
&[disabled] {
|
||||||
|
opacity: .7;
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover:not([disabled]) {
|
||||||
$hovers: map-get($colors, hover);
|
$hovers: map-get($colors, hover);
|
||||||
background-color: map-get($hovers, bg);
|
background-color: map-get($hovers, bg);
|
||||||
color: map-get($hovers, font);
|
color: map-get($hovers, font);
|
||||||
@ -83,7 +87,7 @@ $btn-colors: (
|
|||||||
font-size: 1.2em;
|
font-size: 1.2em;
|
||||||
border: unset;
|
border: unset;
|
||||||
|
|
||||||
&:hover {
|
&:hover:not([disabled]) {
|
||||||
background-color: $default-color;
|
background-color: $default-color;
|
||||||
color: $dark-gray;
|
color: $dark-gray;
|
||||||
|
|
||||||
|
@ -51,7 +51,7 @@
|
|||||||
import { defineProps, onMounted } from 'vue'
|
import { defineProps, onMounted } from 'vue'
|
||||||
import { useRoute, useRouter } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
import { useStore } from 'vuex'
|
import { useStore } from 'vuex'
|
||||||
import BaseButton from './BaseButton'
|
import BaseButton from './buttons/BaseButton'
|
||||||
import { marked } from 'marked'
|
import { marked } from 'marked'
|
||||||
|
|
||||||
defineProps({
|
defineProps({
|
||||||
|
@ -2,13 +2,14 @@
|
|||||||
<button
|
<button
|
||||||
class="btn"
|
class="btn"
|
||||||
:class="{ 'btn-reverse': isReverse }"
|
:class="{ 'btn-reverse': isReverse }"
|
||||||
|
title="Wyślij wiadomość"
|
||||||
>
|
>
|
||||||
<font-awesome-icon
|
<font-awesome-icon
|
||||||
v-if="hasIcon && icon"
|
v-if="hasIcon && icon"
|
||||||
class="icon"
|
class="icon"
|
||||||
:icon="icon"
|
:icon="icon"
|
||||||
/>
|
/>
|
||||||
<span><slot /></span>
|
<slot />
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -32,7 +33,7 @@ defineProps({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "scss/_btn";
|
@import "../../../scss/btn";
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
@include button($has-icon: true);
|
@include button($has-icon: true);
|
@ -5,7 +5,7 @@
|
|||||||
class="icon"
|
class="icon"
|
||||||
:icon="icon"
|
:icon="icon"
|
||||||
/>
|
/>
|
||||||
<span><slot /></span>
|
<slot />
|
||||||
</button>
|
</button>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
@ -25,7 +25,7 @@ defineProps({
|
|||||||
</script>
|
</script>
|
||||||
|
|
||||||
<style lang="scss" scoped>
|
<style lang="scss" scoped>
|
||||||
@import "scss/btn";
|
@import "../../../scss/btn";
|
||||||
|
|
||||||
.btn {
|
.btn {
|
||||||
@include ghost-button();
|
@include ghost-button();
|
@ -33,7 +33,10 @@
|
|||||||
</div>
|
</div>
|
||||||
<div id="grid-photo">
|
<div id="grid-photo">
|
||||||
<figure id="about-photo">
|
<figure id="about-photo">
|
||||||
<img :src="`${publicPath}assets/me.jpg`">
|
<img
|
||||||
|
:src="`${publicPath}assets/me.jpg`"
|
||||||
|
alt="Moje zdjęcie"
|
||||||
|
>
|
||||||
</figure>
|
</figure>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@ -42,7 +45,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import BaseButton from '../BaseButton'
|
import BaseButton from '../buttons/BaseButton'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
@ -18,7 +18,7 @@
|
|||||||
import { ref, onMounted } from 'vue'
|
import { ref, onMounted } from 'vue'
|
||||||
import { useRouter } from 'vue-router'
|
import { useRouter } from 'vue-router'
|
||||||
import Projects from '../SelectedProjects'
|
import Projects from '../SelectedProjects'
|
||||||
import GhostButton from '../GhostButton'
|
import GhostButton from '../buttons/GhostButton'
|
||||||
|
|
||||||
const router = useRouter()
|
const router = useRouter()
|
||||||
|
|
||||||
|
@ -53,7 +53,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup>
|
<script setup>
|
||||||
import BaseButton from '../../BaseButton'
|
import BaseButton from '../../buttons/BaseButton'
|
||||||
import {ref, reactive, watch, computed} from 'vue'
|
import {ref, reactive, watch, computed} from 'vue'
|
||||||
|
|
||||||
function emailValidate (mailObj) {
|
function emailValidate (mailObj) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user