update css
This commit is contained in:
parent
9d0b70e459
commit
fd254627cb
@ -1,120 +1,176 @@
|
|||||||
/* Default Light Theme */
|
/* Default Light Theme */
|
||||||
body {
|
body {
|
||||||
font-family: Arial, sans-serif;
|
font-family: Arial, sans-serif;
|
||||||
background-color: #f5f5f5;
|
background-color: #f5f5f5;
|
||||||
color: #333;
|
color: #333;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
padding: 0;
|
padding: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 {
|
h1 {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
color: #4285f4;
|
color: #4285f4;
|
||||||
font-size: 36px;
|
font-size: 36px;
|
||||||
margin-top: 20px;
|
margin-top: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.container {
|
.container {
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
margin: 20px;
|
margin: 20px;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea {
|
textarea {
|
||||||
width: 45%;
|
width: 45%;
|
||||||
height: 200px;
|
height: 200px;
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
padding: 10px;
|
padding: 10px;
|
||||||
background-color: #fff;
|
background-color: #fff;
|
||||||
border: 2px solid #ccc;
|
border: 2px solid #ccc;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
color: #333;
|
color: #333;
|
||||||
font-size: 16px;
|
font-size: 16px;
|
||||||
resize: none;
|
resize: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea:focus {
|
textarea:focus {
|
||||||
border-color: #4285f4;
|
border-color: #4285f4;
|
||||||
outline: none;
|
outline: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
#startBtn {
|
#startBtn, #translateLettersBtn, #translateWordsBtn {
|
||||||
display: block;
|
display: block;
|
||||||
margin: 20px auto;
|
margin: 20px auto;
|
||||||
padding: 10px 20px;
|
padding: 10px 20px;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
background-color: #4285f4;
|
background-color: #4285f4;
|
||||||
color: white;
|
color: white;
|
||||||
border: none;
|
border: none;
|
||||||
border-radius: 50px;
|
border-radius: 50px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
transition: background-color 0.3s ease;
|
transition: background-color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#startBtn:hover {
|
#startBtn:hover {
|
||||||
background-color: #357ae8;
|
background-color: #357ae8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#timerDisplay, #statusText {
|
#timerDisplay, #statusText {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
color: #555;
|
color: #555;
|
||||||
}
|
}
|
||||||
|
|
||||||
#statusText {
|
#statusText {
|
||||||
color: #f44336;
|
color: #f44336;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Dark Theme (this will be applied dynamically) */
|
/* Dark Theme (this will be applied dynamically) */
|
||||||
body.dark-mode {
|
body.dark-mode {
|
||||||
background-color: #121212;
|
background-color: #121212;
|
||||||
color: #e0e0e0;
|
color: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
h1.dark-mode {
|
h1.dark-mode {
|
||||||
color: #8ab4f8;
|
color: #8ab4f8;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea.dark-mode {
|
textarea.dark-mode {
|
||||||
background-color: #1e1e1e;
|
background-color: #1e1e1e;
|
||||||
border-color: #333;
|
border-color: #333;
|
||||||
color: #e0e0e0;
|
color: #e0e0e0;
|
||||||
}
|
}
|
||||||
|
|
||||||
textarea.dark-mode:focus {
|
textarea.dark-mode:focus {
|
||||||
border-color: #8ab4f8;
|
border-color: #8ab4f8;
|
||||||
}
|
}
|
||||||
|
|
||||||
#startBtn.dark-mode {
|
#startBtn.dark-mode {
|
||||||
background-color: #8ab4f8;
|
background-color: #8ab4f8;
|
||||||
color: #121212;
|
color: #121212;
|
||||||
}
|
}
|
||||||
|
|
||||||
#startBtn.dark-mode:hover {
|
#startBtn.dark-mode:hover {
|
||||||
background-color: #76a7f3;
|
background-color: #76a7f3;
|
||||||
}
|
}
|
||||||
|
|
||||||
#timerDisplay.dark-mode, #statusText.dark-mode {
|
#timerDisplay.dark-mode, #statusText.dark-mode {
|
||||||
color: #b0b0b0;
|
color: #b0b0b0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#statusText.dark-mode {
|
#statusText.dark-mode {
|
||||||
color: #cf6679;
|
color: #cf6679;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Style for the theme toggle button (icon) */
|
/* Style for the theme toggle button (icon) */
|
||||||
#themeToggleBtn {
|
#themeToggleBtn {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
top: 20px;
|
top: 20px;
|
||||||
right: 20px; /* Changed from left to right */
|
right: 20px; /* Changed from left to right */
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
border: none;
|
border: none;
|
||||||
font-size: 24px;
|
font-size: 24px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
z-index: 1000; /* Ensure it stays on top */
|
z-index: 1000; /* Ensure it stays on top */
|
||||||
transition: color 0.3s ease;
|
transition: color 0.3s ease;
|
||||||
}
|
}
|
||||||
|
|
||||||
#themeToggleBtn:hover {
|
#themeToggleBtn:hover {
|
||||||
color: #f4b400; /* Add a hover color effect */
|
color: #f4b400; /* Add a hover color effect */
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/*VIDEOPREHRAVAC*/
|
||||||
|
.video {
|
||||||
|
position: relative;
|
||||||
|
width: 45%;
|
||||||
|
height: 200px;
|
||||||
|
max-height: 300px;
|
||||||
|
margin: 0 10px;
|
||||||
|
padding: 10px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: 2px solid #ccc;
|
||||||
|
border-radius: 4px;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.video video {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
border-radius: 4px;
|
||||||
|
background-color: #fff;
|
||||||
|
border: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
#prevBtn, #nextBtn {
|
||||||
|
position: absolute;
|
||||||
|
top: 50%;
|
||||||
|
transform: translateY(-50%);
|
||||||
|
font-size: 24px;
|
||||||
|
background-color: #4285f4;
|
||||||
|
color: white;
|
||||||
|
border: none;
|
||||||
|
border-radius: 50%;
|
||||||
|
width: 40px;
|
||||||
|
height: 40px;
|
||||||
|
cursor: pointer;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#prevBtn {
|
||||||
|
margin-left: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#nextBtn {
|
||||||
|
margin-right: 80px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#prevBtn:hover, #nextBtn:hover {
|
||||||
|
background-color: #357ae8;
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user