Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
66 changes: 66 additions & 0 deletions src/components/ButtonNewElement.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
<template>
<div class="add-element-button">
<hr class="line line-left">
<div class="add-element">+</div>
<hr class="line line-right">
</div>
</template>

<script>
export default {
name: "ButtonNewElement"
};
</script>

<style>
.add-element-button {
display: flex;
flex-direction: row;
align-items: center;
opacity: 0;
margin-top: 15px;
}

.add-element-button:hover {
cursor: pointer;
opacity: 1;
transition: 1s;
}

.add-element-button .add-element {
border: 1px solid #208afa;
box-sizing: border-box;
color: #208afa;
border-radius: 15px;
width: 30px;
height: 30px;
display: flex;
justify-content: center;
align-items: center;
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 21px;
margin: 0 10px;
}

.add-element-button .line {
width: calc(50% - 25px);
/* border: 1px solid #208afa; */
border: none;
background-color: #208afa;
height: 2px;
color: white;
opacity: 0.5;
}

.add-element-button.active .line-right,
.add-element-button.active .add-element {
display: none;
}

.add-element-button.active .line-left {
width: 100%;
background-color: #fab965;
}
</style>