mirror of
https://github.com/LucasVbr/own-workspace.git
synced 2026-05-19 10:53:19 +00:00
add responsive
This commit is contained in:
+2
-3
@@ -1,6 +1,5 @@
|
|||||||
<template>
|
<template>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
<div class="pause"></div>
|
|
||||||
<to-do-list></to-do-list>
|
<to-do-list></to-do-list>
|
||||||
<div class="aside">
|
<div class="aside">
|
||||||
<div class="ytb" v-show="displayYoutube">
|
<div class="ytb" v-show="displayYoutube">
|
||||||
@@ -16,6 +15,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import ToDoList from "@/components/ToDoList";
|
import ToDoList from "@/components/ToDoList";
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
name: 'App',
|
name: 'App',
|
||||||
components: {
|
components: {
|
||||||
@@ -43,9 +43,8 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
body {
|
body {
|
||||||
background: -webkit-linear-gradient( 0deg, rgba(255, 253, 226, 1) 0%, rgba(255, 228, 164, 1) 50%, rgba(255, 217, 153, 1) 100%);
|
background: #fdde95;
|
||||||
}
|
}
|
||||||
|
|
||||||
footer {
|
footer {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
margin-top: 16px;
|
margin-top: 16px;
|
||||||
|
|||||||
@@ -63,6 +63,7 @@ export default {
|
|||||||
}
|
}
|
||||||
if (!this.isRestingTime) {
|
if (!this.isRestingTime) {
|
||||||
this.enableButton("pause");
|
this.enableButton("pause");
|
||||||
|
this.enableButton("reset");
|
||||||
}
|
}
|
||||||
this.disableButton("start");
|
this.disableButton("start");
|
||||||
let all = document.querySelectorAll("#presetTime button");
|
let all = document.querySelectorAll("#presetTime button");
|
||||||
@@ -121,7 +122,7 @@ export default {
|
|||||||
}
|
}
|
||||||
this.prettyTime()
|
this.prettyTime()
|
||||||
this.countDownTimer()
|
this.countDownTimer()
|
||||||
}, 1000)
|
}, 1)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
changeDots() {
|
changeDots() {
|
||||||
@@ -172,6 +173,7 @@ export default {
|
|||||||
#startStop > button{
|
#startStop > button{
|
||||||
font-size: 32px;
|
font-size: 32px;
|
||||||
width: 120px;
|
width: 120px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#params {
|
#params {
|
||||||
@@ -182,6 +184,7 @@ export default {
|
|||||||
margin: 8px;
|
margin: 8px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
width: 62px;
|
width: 62px;
|
||||||
|
text-align: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
#seconds {
|
#seconds {
|
||||||
@@ -193,26 +196,46 @@ export default {
|
|||||||
width: 10vw;
|
width: 10vw;
|
||||||
}
|
}
|
||||||
|
|
||||||
#message {
|
@media (max-width: 490px) {
|
||||||
font-size: 1.6rem;
|
#message {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.dot {
|
@media (min-width: 490px) {
|
||||||
|
#message {
|
||||||
|
font-size: 1.6rem;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 390px) {
|
||||||
|
.dot {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.active {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (min-width: 390px) {
|
||||||
|
.dot {
|
||||||
height: 25px;
|
height: 25px;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
background-color: lightslategrey;
|
background-color: lightslategrey;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin: 12px 4px 12px 4px;
|
margin: 12px 4px 12px 4px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.active {
|
.active {
|
||||||
height: 25px;
|
height: 25px;
|
||||||
width: 25px;
|
width: 25px;
|
||||||
background-color: mediumseagreen;
|
background-color: mediumseagreen;
|
||||||
border-radius: 50%;
|
border-radius: 50%;
|
||||||
margin: 12px 4px 12px 4px;
|
margin: 12px 4px 12px 4px;
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</style>
|
</style>
|
||||||
@@ -62,7 +62,8 @@ export default {
|
|||||||
}
|
}
|
||||||
|
|
||||||
#pomodoro {
|
#pomodoro {
|
||||||
width: 60%;
|
width: 50%;
|
||||||
|
margin-right: 32px;
|
||||||
}
|
}
|
||||||
|
|
||||||
#todolist {
|
#todolist {
|
||||||
|
|||||||
Reference in New Issue
Block a user