mirror of
https://github.com/searxng/searxng
synced 2024-01-01 19:24:07 +01:00
Add calculator
This commit is contained in:
parent
04d8c4304c
commit
43773774ed
3 changed files with 97 additions and 0 deletions
|
|
@ -172,6 +172,7 @@ module.exports = function (grunt) {
|
|||
all: {
|
||||
src: {
|
||||
'warning': 'node_modules/ionicons/dist/svg/alert-outline.svg',
|
||||
'calculator-outline': 'node_modules/ionicons/dist/svg/calculator-outline.svg',
|
||||
'close': 'node_modules/ionicons/dist/svg/close-outline.svg',
|
||||
'chevron-up-outline': 'node_modules/ionicons/dist/svg/chevron-up-outline.svg',
|
||||
'chevron-right': 'node_modules/ionicons/dist/svg/chevron-forward-outline.svg',
|
||||
|
|
|
|||
|
|
@ -448,6 +448,7 @@ article[data-vim-selected].category-social {
|
|||
grid-template-rows: min-content min-content 1fr min-content;
|
||||
gap: 0 @results-gap;
|
||||
grid-template-areas:
|
||||
"calculator sidebar"
|
||||
"corrections sidebar"
|
||||
"answers sidebar"
|
||||
"urls sidebar"
|
||||
|
|
@ -459,6 +460,45 @@ article[data-vim-selected].category-social {
|
|||
margin-top: 0;
|
||||
}
|
||||
|
||||
#calculator {
|
||||
grid-area: calculator;
|
||||
padding: 1rem;
|
||||
margin-bottom: 1em;
|
||||
border-radius: 1em;
|
||||
|
||||
#calc_header {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
|
||||
#calc_title {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
#calc_icon {
|
||||
display: inline-flex;
|
||||
align-items: center;
|
||||
margin-right: 0.3em;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#calc_input {
|
||||
font-size: 2rem;
|
||||
padding: 1.7rem 1rem 1rem;
|
||||
margin-bottom: 0.5rem;
|
||||
text-align: end;
|
||||
}
|
||||
|
||||
#calc_keypad {
|
||||
display: flex;
|
||||
|
||||
#keypad_group {
|
||||
display: grid;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
#urls {
|
||||
padding: 0;
|
||||
grid-area: urls;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue