This commit is contained in:
parent
c33a997dc5
commit
57507756ec
14 changed files with 864 additions and 97 deletions
139
static/css/style-instantanswer.css
Normal file
139
static/css/style-instantanswer.css
Normal file
|
@ -0,0 +1,139 @@
|
|||
.instant-container {
|
||||
position: absolute;
|
||||
top: 140px;
|
||||
right: 175px;
|
||||
width: 500px;
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.instant-box {
|
||||
border: 1px solid var(--snip-border);
|
||||
background-color: var(--snip-background);
|
||||
border-radius: 8px;
|
||||
padding: 15px;
|
||||
margin-bottom: 20px;
|
||||
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
||||
}
|
||||
|
||||
.instant-box h3 {
|
||||
margin-top: 0;
|
||||
color: var(--highlight);
|
||||
font-size: 20px;
|
||||
border-bottom: 1px solid var(--border);
|
||||
padding-bottom: 10px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
.instant-result {
|
||||
margin: 15px 0;
|
||||
font-size: 16px;
|
||||
line-height: 1.5;
|
||||
}
|
||||
|
||||
.calc-container {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: 10px;
|
||||
margin-top: 15px;
|
||||
}
|
||||
|
||||
.calc-input {
|
||||
padding: 10px;
|
||||
width: 95%;
|
||||
font-size: 18px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
background-color: var(--search-bg);
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.calc-buttons {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 5px;
|
||||
}
|
||||
|
||||
.calc-buttons button {
|
||||
padding: 10px;
|
||||
font-size: 18px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
background-color: var(--button);
|
||||
color: var(--fg);
|
||||
cursor: pointer;
|
||||
transition: background-color 0.2s;
|
||||
}
|
||||
|
||||
.calc-buttons button:hover {
|
||||
background-color: var(--search-select);
|
||||
}
|
||||
|
||||
.calc-result {
|
||||
margin-top: 10px;
|
||||
padding: 10px;
|
||||
font-size: 20px;
|
||||
border: 1px solid var(--border);
|
||||
border-radius: 4px;
|
||||
background-color: var(--snip-background);
|
||||
}
|
||||
|
||||
.calc-history {
|
||||
display: flex;
|
||||
flex-direction: column-reverse;
|
||||
font-family: monospace;
|
||||
font-size: 16px;
|
||||
color: var(--fg);
|
||||
background-color: var(--search-bg);
|
||||
border: 1px solid var(--border);
|
||||
padding: 10px;
|
||||
border-radius: 4px;
|
||||
height: 120px;
|
||||
overflow-y: auto;
|
||||
white-space: pre-line;
|
||||
overflow-anchor: none;
|
||||
}
|
||||
|
||||
.calc-buttons {
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
gap: 8px;
|
||||
}
|
||||
|
||||
.calc-buttons button {
|
||||
padding: 20px;
|
||||
font-size: 20px;
|
||||
border-radius: 6px;
|
||||
background-color: var(--search-bg);
|
||||
border: 1px solid var(--border);
|
||||
color: var(--fg);
|
||||
}
|
||||
|
||||
.calc-buttons .equals {
|
||||
background-color: #2ecc71;
|
||||
color: #fff;
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
.calc-buttons .equals:hover {
|
||||
background-color: #27ae60;
|
||||
}
|
||||
|
||||
|
||||
/* Responsive adjustments */
|
||||
@media only screen and (max-width: 1220px) {
|
||||
.instant-container {
|
||||
position: relative;
|
||||
width: 100%;
|
||||
top: 0;
|
||||
right: 0;
|
||||
margin-left: 175px;
|
||||
margin-top: 20px;
|
||||
}
|
||||
}
|
||||
|
||||
@media only screen and (max-width: 880px) {
|
||||
.instant-container {
|
||||
width: 90%;
|
||||
margin-left: 20px;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue