mirror of
https://github.com/LibreTranslate/LibreTranslate.git
synced 2024-11-25 09:21:04 +00:00
Add switch type (text or files ) button
This commit is contained in:
parent
3e9d4c2c24
commit
e58b8ff97d
2 changed files with 23 additions and 1 deletions
|
@ -23,6 +23,10 @@ h3.header {
|
||||||
margin-top: 0 !important;
|
margin-top: 0 !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.mb-1 {
|
||||||
|
margin-bottom: 1rem;
|
||||||
|
}
|
||||||
|
|
||||||
.position-relative {
|
.position-relative {
|
||||||
position: relative;
|
position: relative;
|
||||||
}
|
}
|
||||||
|
@ -114,6 +118,21 @@ h3.header {
|
||||||
display: flex;
|
display: flex;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.btn-switch-type {
|
||||||
|
background-color: #fff;
|
||||||
|
color: #42A5F5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-switch-type:hover {
|
||||||
|
background-color: #eee;
|
||||||
|
color: #42A5F5;
|
||||||
|
}
|
||||||
|
|
||||||
|
.btn-switch-type.active {
|
||||||
|
background-color: #42A5F5;
|
||||||
|
color: #fff;
|
||||||
|
}
|
||||||
|
|
||||||
.btn-action {
|
.btn-action {
|
||||||
display: flex;
|
display: flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
|
|
|
@ -105,7 +105,10 @@
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<h3 class="header center">Translation API</h3>
|
<h3 class="header center">Translation API</h3>
|
||||||
|
<div class="col s12 mb-1">
|
||||||
|
<a class="btn btn-switch-type active"><i class="material-icons left">title</i>Translate text</a>
|
||||||
|
<a class="btn btn-switch-type"><i class="material-icons left">description</i>Translate files</a>
|
||||||
|
</div>
|
||||||
<form class="col s12">
|
<form class="col s12">
|
||||||
<div class="row mb-0">
|
<div class="row mb-0">
|
||||||
<div class="col s6 language-select">
|
<div class="col s6 language-select">
|
||||||
|
|
Loading…
Reference in a new issue