Files
term_portal/express/public/sass/components/_dictionaries-main.scss
T
2022-12-07 04:43:36 +01:00

911 lines
15 KiB
SCSS

@use "../variables/variables" as v;
body {
background-color: v.$nav-white;
}
.side-nav-title {
font-family: "Roboto";
font-style: normal;
font-weight: 300;
font-size: 1.5rem;
line-height: 1.75rem;
color: #848c91;
}
.dictionary-content {
background-color: white;
border-radius: 6px;
box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.25);
}
.dictionary-title {
font-size: 1.375rem;
color: v.$navigation-maincolor;
font-weight: 500;
}
.dictionary-attributes {
font-size: 1rem;
line-height: 18.75px;
color: #46535b;
font-weight: 400;
margin-top: 3px;
}
.dictionary-value {
font-size: 1.5rem;
color: #46535b;
line-height: 18.75px;
}
.dictionary-list-button {
font-size: 1.125rem;
color: #46535b;
font-family: Roboto;
font-weight: 400;
background-color: white;
border-radius: 6px;
border-width: 1px;
border-color: rgb(185, 181, 181);
width: 200px;
height: 40px;
}
@media screen and(min-width:500px) {
.dictionary-value {
white-space: nowrap;
}
}
.optional-floating-grey-action-button {
background-color: inherit;
color: #46535b;
border-color: #c0c2c4;
border-width: 1px;
}
.optional-floating-action-button {
background-color: v.$navigation-maincolor;
border: none;
color: white;
}
.input-name-txt {
color: #46535b;
font-family: Roboto;
font-weight: 400;
font-size: 0.75rem;
}
.input[type="text"] {
margin-left: 10px;
}
.multiple {
width: 100%;
}
.name-info-txt {
color: #848c90;
font-family: Roboto;
font-weight: 400;
font-size: 0.875rem;
}
.name-input {
height: 42px;
width: 100%;
border: 1px solid #b6bec3;
}
.form-control {
border-radius: 0;
}
.input-group-text {
border-radius: 0;
}
#input-new-author {
background: #e0e6ea;
border: 1px dashed #848c91;
box-sizing: border-box;
border-radius: 6px;
}
.input-new-btn {
background: #e0e6ea;
border: 1px dashed #848c91;
box-sizing: border-box;
border-radius: 6px;
}
.input-new-btn:focus {
background-color: v.$side-nav-mobile-color;
}
.new-author-text-btn {
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 1.125rem;
line-height: 21px;
/* identical to box height */
color: #46535b;
}
.p-squeeze-lg {
}
.delete-author {
background-color: white;
// border: 1px solid #ced4da;
border: none;
}
.delete-author-btn {
border: 1px solid #b6bec3;
border-left: none;
background-color: white;
cursor: pointer;
}
.icon-trash {
border-right: none;
}
#input-new-area {
background: #e0e6ea;
border: 1px dashed #848c91;
box-sizing: border-box;
border-radius: 6px;
// cursor: pointer;
// background-color: v.$side-nav-mobile-color;
}
.area-input {
border: 1px solid #ced4da;
border-radius: 0.25rem;
height: 42px;
}
.input-group
> :not(:first-child):not(.dropdown-menu):not(.valid-tooltip):not(.valid-feedback):not(.invalid-tooltip):not(.invalid-feedback) {
border-top-left-radius: 3px;
border-bottom-left-radius: 3px;
}
.delete-area-btn {
cursor: pointer;
}
// .language-subgroups {
// margin-left: 5px;
// }
#termin-subgroup-label {
margin-left: 30px;
}
#definition-subgroup-label {
margin-left: 30px;
}
#synonym-subgroup-label {
margin-left: 30px;
}
.language-code {
height: 20px;
width: 17px;
text-align: center;
background-color: #b6bec3;
}
.code {
vertical-align: middle;
font-family: Roboto;
font-size: 0.625rem;
color: white;
text-transform: uppercase;
}
.dictionary-element-definition {
font-family: Roboto;
border-radius: 6px;
background-color: white;
}
.key-word-name {
font-family: Roboto;
font-weight: 500;
font-size: 1rem;
line-height: 19px;
color: v.$navigation-maincolor;
}
.language-translation {
font-family: Roboto;
font-size: 1rem;
font-style: normal;
font-weight: normal;
color: #3a464e;
}
.definition-subtitle {
font-family: Roboto;
font-style: normal;
font-weight: 500;
font-size: 0.875rem;
line-height: 16px;
color: #3a464e;
}
.definition {
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 0.875rem;
line-height: 16px;
max-width: 750px;
color: #3a464e;
}
.form-check-label {
font-size: 1rem;
margin-left: 7px;
margin-top: 2px;
// line-height: 18.75px;
}
.form-switch .form-check-input {
height: 20px;
width: 40px;
}
.definition-text {
margin-left: 18px;
}
.info-text-for-button {
font-family: Roboto;
font-style: normal;
font-weight: 300;
font-size: 1.125rem;
line-height: 21px;
color: v.$navigation-maincolor;
}
.white-border-background {
border-radius: 6px;
background-color: white;
}
.btn-advanced {
background: v.$navigation-maincolor;
box-shadow: 0px 4px 4px rgba(0, 0, 0, 0.12);
border-radius: 6px;
color: white;
}
.visible-th {
width: 8%;
}
// Users page
.users-subtitle-txt {
font-family: Roboto;
font-style: normal;
font-weight: 300;
font-size: 1.125rem;
line-height: 21px;
color: v.$navigation-maincolor;
}
.user-rights-column-title {
font-family: Roboto;
font-style: normal;
font-weight: 300;
font-size: 1.125rem;
line-height: 21px;
/* identical to box height */
color: v.$navigation-maincolor;
}
.user-data {
background-color: v.$side-nav-mobile-color;
border-radius: 6px;
}
.user-name-last-name {
font-family: Roboto;
font-style: normal;
font-weight: bold;
font-size: 1rem;
line-height: 19px;
color: #46535b;
}
.user-email {
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 1rem;
line-height: 19px;
color: #46535b;
}
.horizontal-row-table {
background-color: white;
opacity: 0.75;
}
.new-user-info {
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 0.75rem;
line-height: 14px;
/* identical to box height */
text-transform: uppercase;
color: #46535b;
}
.btn-color {
background-color: v.$navigation-maincolor;
color: white;
}
.icon-trash-delete {
cursor: pointer;
}
.hidden-text {
display: none;
width: 75px;
}
// Table style
.table-users {
width: 100%;
border-collapse: collapse;
}
.table-users td,
.table-users th {
padding: 12px 15px;
// border: 1px solid #ddd;
text-align: center;
font-size: 1rem;
}
.new-row {
border-top: 1px solid white;
}
/*responsive*/
@media (max-width: 1192px) {
.table-users thead {
display: none;
}
.table-users,
.table-users tbody,
.table-users tr,
.table-users td {
display: block;
overflow: hidden;
width: 100%;
}
.table-users tr {
margin-bottom: 15px;
}
.table-users td {
overflow: hidden;
text-overflow: ellipsis;
text-align: left;
// padding-right: 50%;
text-align: left;
position: relative;
}
.table-users td::before {
content: attr(data-label);
position: absolute;
margin-left: 35px;
font-size: 1rem;
text-align: left;
}
}
// Import a file
.file-import {
border-radius: 6px;
background-color: white;
}
input[type="file"] {
display: none;
}
.radio-button {
display: inline-block;
}
.form-check-input:checked {
background-color: v.$navigation-maincolor;
border-color: v.$navigation-maincolor;
}
.header-table-wrapper {
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 0.75rem;
line-height: 14px;
/* identical to box height */
text-transform: uppercase;
color: #46535b;
}
// Terminology canididates
.terminology-input {
width: 80px;
}
// Dictionary export
.radio-button-labels {
font-family: Roboto;
font-style: normal;
font-weight: normal;
font-size: 1rem;
line-height: 164.69%;
/* or 26px */
color: #46535b;
text-transform: none;
}
// Dictionary content
.site-link {
padding: 11px;
text-decoration: none;
font-size: 1.125rem;
line-height: 21px;
background-color: inherit;
border: none;
cursor: pointer;
}
.active-site-link {
color: v.$navigation-maincolor;
border-bottom: 6px solid v.$navigation-maincolor;
}
.date-scroller {
background: #ffffff;
border-radius: 0px 0px 8px 8px;
height: 65px;
// overflow: auto;
}
.date-list {
overflow: auto;
overflow-x: hidden;
scroll-behavior: smooth;
}
.latest-version-el {
border: 2px solid lightblue !important;
}
.date-element {
border: 1px solid #b6bec4;
box-sizing: border-box;
border-radius: 6px;
text-decoration: none;
color: #46535b;
cursor: pointer;
margin: 0px 10px;
padding: 4px 8px;
min-width: 140px;
}
#go-left {
cursor: pointer;
}
#go-right {
cursor: pointer;
}
#hide-dates {
height: 40px;
}
.btn-dates-group {
position: relative;
display: inline-flex;
vertical-align: middle;
}
.explanation-field {
font-size: 1.063rem;
flex: 1 1 0;
background: #ffffff;
min-height: 40px;
height: 42px;
overflow-x: hidden;
overflow-y: hidden;
resize: none;
max-height: 200px;
text-align: left;
outline: none;
}
textarea.form-control {
min-height: 40px;
}
.languages-group-white {
background-color: white;
border-radius: 6px;
}
.multimedia-section {
background: #e4e7e8;
border-radius: 6px;
}
.hr-languages {
width: 98%;
margin-left: auto;
margin-right: auto;
background: #7a7a7a;
}
.select-content-state option:disabled {
color: #a8a8a8;
}
.hide-preview {
display: none !important;
}
.green-button {
background: #88b52f;
border-radius: 6px;
}
.advanced-blue-btn {
width: 120px;
}
.options-width-box {
min-width: 200px;
}
.options-another-box {
min-width: 122px;
}
.opened-row-data {
height: 5px;
}
.homonym-field {
width: 48px;
}
#modal-spinner {
position: fixed;
left: 50%;
top: 80%;
transform: translate(-50%, -50%);
}
.modal-spinner-center {
margin: auto;
}
// Media queries
@media screen and (min-width: 756px) {
.dictionary-element-definition {
margin-left: 180px;
}
.definition-text {
margin-left: 65px;
}
}
.disabled-input {
pointer-events: none;
opacity: 0.5;
}
// Adjust select2 styles
.select2 {
width: 100% !important;
}
.select2-selection {
height: 42px;
}
.select2-selection--multiple {
overflow: hidden;
height: auto;
}
.select2-container--default
.select2-selection--multiple
.select2-selection__choice__remove {
border: none;
right: 0;
padding-top: 4px;
padding-bottom: 4px;
left: inherit;
}
.select2-container--default
.select2-selection--multiple
.select2-selection__choice {
padding-left: 6px;
padding-bottom: 3px;
padding-right: 4px;
margin-top: 4px;
margin-left: 8px;
padding-top: 5px;
white-space: unset;
background-color: v.$side-nav-mobile-color;
}
.select2-container--default .select2-search--inline .select2-search__field {
height: 25px;
}
.select2-container .select2-search--inline .select2-search__field {
margin-top: 10px;
}
.select2-container--default .select2-selection--multiple {
border: 1px solid #ced4da;
}
.select2-container--default
.select2-selection--multiple
.select2-selection__choice__display {
color: v.$navigation-maincolor;
font-family: Roboto;
font-size: 1rem;
font-style: normal;
font-weight: 400;
line-height: 19px;
letter-spacing: 0em;
text-align: left;
margin-right: 12px;
}
.select2-container--default
.select2-selection--multiple
.select2-selection__choice {
border: none;
}
.select2-container--default .select2-selection--multiple {
border-radius: 0;
}
.autocomplete {
background-color: white;
// border-radius: 6px;
font-size: 1rem;
}
// li {
// list-style: none;
// }
.hide-dropdown {
display: none;
}
// Select2 validation
.select2-validation {
padding-right: calc(1.5em + 0.75rem);
background-image: url("/images/exclamation-triangle-red.svg");
background-repeat: no-repeat;
background-position: right calc(0.375em + 0.1875rem) center;
background-size: calc(0.75em + 0.375rem) calc(0.75em + 0.375rem);
border: 1px solid #dc3545 !important;
}
.select2-validation:focus {
box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25);
}
.invalid-feedback-selection {
width: 100%;
margin-top: 0.25rem;
font-size: 0.875em;
color: #dc3545;
}
.hidden-section {
display: none;
}
// Validation
.was-validated .form-check-input:valid ~ .form-check-label {
color: unset;
}
.was-validated .form-check-input:valid {
border-color: rgba(0, 0, 0, 0.25);
}
.was-validated .form-check-input:valid:checked {
background-color: v.$navigation-maincolor;
border-color: v.$navigation-maincolor;
}
.was-validated .form-control:valid {
border-color: #ced4da;
background-image: none;
}
.was-validated .form-control:valid:focus {
border-color: #ced4da;
box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}
.was-validated .form-control:invalid {
background-image: url("/images/exclamation-triangle-red.svg");
}
// Summernote
.note-editing-area {
background-color: white;
}
.note-editor .dropdown-toggle::after {
all: unset;
}
.note-editor .note-dropdown-menu {
box-sizing: content-box;
}
.note-editor .note-modal-footer {
box-sizing: content-box;
}
// Adjust bootstrap styles
.btn-outline-dates {
// color: v.$navigation-maincolor;
border: 1px solid #b6bec4;
box-sizing: border-box;
border-radius: 6px;
}
.btn-outline-dates:hover {
color: #fff;
background-color: v.$navigation-maincolor;
border-color: v.$navigation-maincolor;
}
.btn-check:checked + .btn-outline-dates,
.btn-check:active + .btn-outline-dates,
.btn-outline-dates:active,
.btn-outline-dates.active,
.btn-outline-dates.dropdown-toggle.show {
color: #fff;
background: v.$navigation-maincolor;
border: 1px solid v.$navigation-maincolor;
box-sizing: border-box;
border-radius: 6px;
}
.form-check-input[type="checkbox"]:indeterminate {
background-color: white;
border: 1px solid rgba(0, 0, 0, 0.25);
// background-image: url("/images/white-checkbox.svg");
background-image: none;
}
.indeterminate-cbox[type="checkbox"] {
background-image: url("/images/x-checkbox.svg");
}
.indeterminate-cbox[type="checkbox"]:not(:checked) + .form-check-label {
color: #848c91;
}
.indeterminate-cbox[type="checkbox"]:indeterminate + .form-check-label {
color: #212529;
}
/*
@media (min-width: 1400px) {
.p-squeeze-lg {
width: 60rem;
}
}
*/
.table-dict-list {
border-radius: 6px;
.th {
font-weight: 300;
color: v.$navigation-maincolor;
}
.table-dict-content {
border-bottom: 1px solid v.$gray-3;
background-color: #ffffff;
&:nth-child(2) {
border-top-left-radius: 6px;
border-top-right-radius: 6px;
}
&:last-child {
border: none;
border-bottom-left-radius: 6px;
border-bottom-right-radius: 6px;
}
.dpr {
padding-left: 3.5rem;
}
}
}
@media (min-width: v.$layout-breakpoint-small) {
.table-dict-list {
border-radius: 6px;
.table-dict-content {
.dpr {
padding-left: 0;
}
}
}
}
@media (min-width: v.$layout-breakpoint-medium) {
.p-squeeze-lg {
// padding: 0 17%;
}
}
@media (min-width: v.$layout-breakpoint-x-large) {
.p-squeeze-lg {
width: 60rem;
display: block;
margin: auto;
// padding: 1rem;
}
.errc {
padding-top: 169px;
}
}