mirror of
https://github.com/LucasVbr/own-workspace.git
synced 2026-05-19 10:53:19 +00:00
refactor css, change logos, add todo button, better responsive + UI/UX
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<template>
|
||||
<div class="container">
|
||||
<div id="todolist">
|
||||
<div>
|
||||
<div id="input">
|
||||
<input @keydown.enter="addItem(item)" type="text" name="todo" id="todo_input" v-model="item"
|
||||
placeholder="Ex: Finir exos maths">
|
||||
<button @click="addItem(item)" id="add_button">+</button>
|
||||
</div>
|
||||
<div id="liste">
|
||||
<div v-for="item in items" :key="item" class="item">
|
||||
@@ -50,6 +51,9 @@ export default {
|
||||
.container {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
max-height: 770px;
|
||||
overflow: auto;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#pomodoro {
|
||||
@@ -70,20 +74,56 @@ export default {
|
||||
min-width: 150px;
|
||||
height: 52px;
|
||||
padding: 12px 20px;
|
||||
margin: 8px 0;
|
||||
margin: 8px 16px 0px 0px;
|
||||
box-sizing: border-box;
|
||||
border-radius: 16px;
|
||||
border: 3px solid #79624c;
|
||||
border: 3px solid #a59182;
|
||||
}
|
||||
|
||||
#todo_input:hover {
|
||||
border: 3px solid #87725f;
|
||||
}
|
||||
|
||||
#todo_input:focus {
|
||||
outline: none !important;
|
||||
border: 3px solid #343197;
|
||||
border: 3px solid #5b4735;
|
||||
}
|
||||
|
||||
#input {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
#add_button {
|
||||
font-size: 2rem;
|
||||
line-height: 1;
|
||||
width: 52px;
|
||||
min-width: 52px;
|
||||
height: 52px;
|
||||
margin: 8px 16px 0px 0px;
|
||||
border-radius: 16px;
|
||||
border: 3px solid #79624c;
|
||||
background-color: #79624c;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#add_button:hover {
|
||||
border: 3px solid #5b4735;
|
||||
background-color: #5b4735;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#add_button:active {
|
||||
border: 3px solid #3a2b18;
|
||||
background-color: #3a2b18;
|
||||
color: white;
|
||||
}
|
||||
|
||||
#liste {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
padding-right: 16px;
|
||||
}
|
||||
|
||||
.item {
|
||||
@@ -95,13 +135,12 @@ export default {
|
||||
padding: 12px 22px 12px 22px;
|
||||
border-radius: 12px;
|
||||
min-width: 82px;
|
||||
box-shadow: rgba(111, 111, 111, 0.2) 0px 7px 29px 0px;
|
||||
word-break: break-all;
|
||||
background-color: white;
|
||||
}
|
||||
|
||||
.item:hover {
|
||||
box-shadow: #ff0000 0px 1px 6px 0px;
|
||||
box-shadow: #79624c 0px 1px 6px 0px;
|
||||
}
|
||||
|
||||
#trash {
|
||||
@@ -109,4 +148,21 @@ export default {
|
||||
padding-left: 8px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
@media (max-width: 675px) {
|
||||
#add_button {
|
||||
margin-right: 0;
|
||||
margin-top: 8px;
|
||||
}
|
||||
#todolist {
|
||||
margin-right: 32px;
|
||||
}
|
||||
#liste {
|
||||
padding-right: 0;
|
||||
margin-top: 8px;
|
||||
max-height: 320px;
|
||||
height: 100%;
|
||||
overflow: auto;
|
||||
}
|
||||
}
|
||||
</style>
|
||||
Reference in New Issue
Block a user