ToolJet/frontend/src/_styles/theme.scss

788 lines
17 KiB
SCSS
Raw Normal View History

2021-04-10 07:23:30 +00:00
body {
font-family: 'Roboto', sans-serif;
}
2021-04-01 10:59:44 +00:00
.editor {
.header-container {
max-width: 100%;
}
.query-manager {
.btn {
height: 31px;
}
.nav-header {
.nav-tabs {
border-bottom: 0;
}
}
2021-04-07 07:03:03 +00:00
.advanced-options-container {
2021-04-08 01:20:30 +00:00
2021-04-07 07:03:03 +00:00
}
}
2021-04-10 14:25:32 +00:00
.left-sidebar::-webkit-scrollbar {
width: 0;
background: transparent;
}
.left-sidebar::-webkit-scrollbar-thumb {
background: #FF0000;
}
.left-sidebar {
2021-04-01 10:59:44 +00:00
height: 100%;
width: 12%;
2021-04-01 10:59:44 +00:00
position: fixed;
z-index: 1;
left: 0;
2021-04-01 10:59:44 +00:00
overflow-x: hidden;
flex: 1 1 auto;
background-color: #fff;
background-clip: border-box;
border: solid rgba(0, 0, 0, 0.125);
border-width: 0px 1px 3px 0px;
2021-04-01 10:59:44 +00:00
.accordion-item {
border: solid rgba(101,109,119,.16);
2021-04-02 09:24:51 +00:00
border-width: 1px 0px 1px 0px;
2021-04-01 10:59:44 +00:00
}
2021-04-10 14:25:32 +00:00
.datasources-container {
height: 50%;
overflow-y: scroll;
}
.variables-container {
height: 50%;
overflow-y: scroll;
}
.variables-container::-webkit-scrollbar, .datasources-container::-webkit-scrollbar {
width: 0;
background: transparent;
}
.variables-container::-webkit-scrollbar-thumb, .datasources-container::-webkit-scrollbar-thumb {
background: #FF0000;
}
.datasources-container {
bottom: 0;
height: 500px;
border: solid rgba(101,109,119,.16);
border-width: 1px 0px 1px 0px;
.datasources-header {
border: solid rgba(0, 0, 0, 0.125);
border-width: 0px 0px 1px 0px;
}
}
2021-04-10 14:25:32 +00:00
2021-04-01 10:59:44 +00:00
}
.editor-sidebar {
height: 100%;
width: 15%;
2021-04-01 10:59:44 +00:00
position: fixed;
2021-04-02 12:52:14 +00:00
z-index: 10;
right: 0;
2021-04-01 10:59:44 +00:00
overflow-x: hidden;
flex: 1 1 auto;
top: 56px;
2021-04-01 10:59:44 +00:00
background-color: #fff;
background-clip: border-box;
border: solid rgba(0, 0, 0, 0.125);
border-width: 0px 0px 0px 1px;
2021-04-01 10:59:44 +00:00
.nav-tabs .nav-link {
border-top-left-radius: 0px;
border-top-right-radius: 0px;
}
2021-04-02 09:24:51 +00:00
.inspector {
2021-04-05 04:48:58 +00:00
.form-control-plaintext {
padding: 0;
}
2021-04-02 09:24:51 +00:00
.header {
border: solid rgba(0, 0, 0, 0.125);
border-width: 0px 0px 2px 0px;
height: 40px;
2021-04-01 10:59:44 +00:00
2021-04-02 09:24:51 +00:00
.component-name {
font-weight: 500;
}
.component-action-button {
right: 10px;
position: fixed;
}
}
.CodeMirror {
font-size: 12px;
}
2021-04-02 09:24:51 +00:00
.properties-container {
.field {
.form-label {
font-size: 12px;
}
.text-field {
height: 30px;
font-size: 12px;
}
.form-select {
height: 30px;
font-size: 12px;
}
2021-04-02 09:24:51 +00:00
}
}
2021-04-01 10:59:44 +00:00
}
2021-04-12 17:45:39 +00:00
.components-container::-webkit-scrollbar {
width: 0;
height: 0;
background: transparent;
}
.components-container::-webkit-scrollbar-thumb {
background: transparent;
}
2021-04-01 10:59:44 +00:00
.components-container {
2021-04-12 17:45:39 +00:00
height: 88%;
overflow: scroll;
2021-04-01 10:59:44 +00:00
.component-image-holder {
background: #f6f7fb;
border-radius: 8px;
border: 1px solid #d0d0d0;
2021-04-05 05:34:26 +00:00
height: 50px;
2021-04-01 10:59:44 +00:00
img {
margin: 0 auto;
2021-04-05 05:34:26 +00:00
padding: 12px;
2021-04-01 10:59:44 +00:00
}
}
.component-title {
display: block;
font-weight: 500;
margin-top: 5px;
font-size: 0.8rem;
}
.component-description {
color: grey;
font-size: 0.7rem;
}
}
}
.main {
margin-left: 12%;
margin-right: 13%;
2021-04-01 10:59:44 +00:00
padding: 0px 10px;
2021-04-01 12:58:25 +00:00
.canvas-container::-webkit-scrollbar {
width: 0;
background: transparent;
}
.canvas-container::-webkit-scrollbar-thumb {
background: #FF0000;
}
.canvas-container {
height: 100%;
position: fixed;
overflow-y: auto;
overflow-x: auto;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
.canvas-area {
width: 1280px;
min-height: 2200px;
background: #edeff5;
2021-04-01 12:58:25 +00:00
padding: 10px;
margin: 0px auto;
2021-04-10 07:23:30 +00:00
// margin-left: 50px;
background-size: 80px 80px;
// background-image: url(/public/images/tile.png);
background-repeat: repeat;
.resizer:hover {
border: solid 1px rgb(70, 165, 253);
.top-right, .top-left, .bottom-right, .bottom-left {
background: white;
border-radius: 10px;
border: solid 1px rgb(70, 165, 253);
}
}
2021-04-01 12:58:25 +00:00
}
}
.query-pane::-webkit-scrollbar {
width: 0;
background: transparent;
}
.query-pane::-webkit-scrollbar-thumb {
background: #FF0000;
}
2021-04-01 10:59:44 +00:00
.query-pane {
height: 350px;
width: 73%;
2021-04-01 10:59:44 +00:00
position: fixed;
z-index: 1;
left: 12%;
2021-04-01 10:59:44 +00:00
bottom: 0;
overflow-x: hidden;
flex: 1 1 auto;
2021-04-05 05:34:26 +00:00
2021-04-01 10:59:44 +00:00
background-color: #fff;
background-clip: border-box;
border: solid rgba(0, 0, 0, 0.125);
border-width: 1px 0px 0px 0px;
2021-04-03 05:25:41 +00:00
.table-responsive::-webkit-scrollbar {
width: 0;
background: transparent;
}
.table-responsive::-webkit-scrollbar-thumb {
background: #FF0000;
}
.query-row {
.query-copy-button {
display: none;
}
}
2021-04-10 02:06:17 +00:00
.query-row-selected {
background: #faf8f5;
}
.query-row:hover {
.query-copy-button {
display: inline-block;
}
}
2021-04-05 05:34:26 +00:00
.main-row {
2021-04-10 02:06:17 +00:00
height: 100%;
2021-04-05 05:34:26 +00:00
--tblr-gutter-x: 0rem;
}
.query-definition-pane {
.header {
border: solid rgba(0, 0, 0, 0.125);
border-width: 0px 0px 1px 0px;
}
}
2021-04-03 05:25:41 +00:00
.data-pane {
height: 100%;
min-height: 350px;
border: solid rgba(0, 0, 0, 0.125);
border-width: 0px 1px 0px 0px;
.queries-container {
.queries-header {
border: solid rgba(0, 0, 0, 0.125);
border-width: 0px 0px 1px 0px;
}
}
2021-04-03 05:25:41 +00:00
.header {
height: 40px;
2021-04-03 05:25:41 +00:00
text-align: center;
}
}
2021-04-01 10:59:44 +00:00
}
}
@media screen and (max-height: 450px) {
.sidebar {padding-top: 15px;}
.sidebar a {font-size: 18px;}
}
}
2021-04-02 11:09:55 +00:00
.viewer {
.header-container {
max-width: 100%;
}
.main {
padding: 0px 10px;
.canvas-container::-webkit-scrollbar {
width: 0;
background: transparent;
}
.canvas-container::-webkit-scrollbar-thumb {
background: #FF0000;
}
.canvas-container {
height: 100%;
width: 100%;
2021-04-02 11:09:55 +00:00
position: fixed;
overflow-y: auto;
overflow-x: auto;
-webkit-box-pack: center;
justify-content: center;
-webkit-box-align: center;
align-items: center;
.canvas-area {
width: 1280px;
min-height: 1200px;
background: #edeff5;
padding: 10px;
margin: 0px auto;
background-size: 80px 80px;
// background-image: url(/public/images/tile.png);
background-repeat: repeat;
}
}
}
}
2021-04-06 10:01:05 +00:00
.modal-header {
padding: 0 1.5rem 0 1.5rem;
2021-04-08 01:20:30 +00:00
}
.homepage-body {
a { color: inherit; }
a:hover {
color: inherit;
text-decoration:none;
}
.app-action-buttons {
display: none;
}
.app-name {
line-height: 20px;
}
.app-card {
height: 155px;
max-height: 155px;
}
.create-app {
background: #eefcfe7a;
border: 1px dashed #9d9d9d;
}
.create-app:hover {
background: #4ac4d600;
}
.app-card:hover {
background: #4ac4d600;
.app-action-buttons {
display: inline-flex;
}
.app-name {
display: none;
}
}
}
.datasource-picker {
.select-search {
width: 300px;
}
}
.select-search {
width: 100%;
position: relative;
font-family: 'Nunito Sans', sans-serif;
box-sizing: border-box;
}
.select-search *,
.select-search *::after,
.select-search *::before {
box-sizing: inherit;
}
/**
* Value wrapper
*/
.select-search__value {
position: relative;
z-index: 1;
}
.select-search__value::after {
content: '';
display: inline-block;
position: absolute;
top: calc(50% - 9px);
right: 19px;
width: 11px;
height: 11px;
}
/**
* Input
*/
.select-search__input {
display: block;
width: 100%;
padding: .4375rem .75rem;
font-size: .875rem;
font-weight: 400;
line-height: 1.4285714;
color: #232e3c;
background-color: #fff;
background-clip: padding-box;
border: 1px solid #dadcde;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
border-radius: 4px;
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
}
.select-search__input::-webkit-search-decoration,
.select-search__input::-webkit-search-cancel-button,
.select-search__input::-webkit-search-results-button,
.select-search__input::-webkit-search-results-decoration {
-webkit-appearance:none;
}
.select-search__input:not([readonly]):focus {
cursor: initial;
}
/**
* Options wrapper
*/
.select-search__select {
background: #fff;
box-shadow: 0 .0625rem .125rem rgba(0, 0, 0, 0.15);
}
/**
* Options
*/
.select-search__options {
list-style: none;
}
/**
* Option row
*/
.select-search__row:not(:first-child) {
border-top: 1px solid #eee;
}
/**
* Option
*/
.select-search__option,
.select-search__not-found {
display: block;
height: 36px;
width: 100%;
padding: 0 16px;
background: #fff;
border: none;
outline: none;
font-family: 'Noto Sans', sans-serif;
font-size: 14px;
text-align: left;
cursor: pointer;
}
.select-search--multiple .select-search__option {
height: 48px;
}
.select-search__option.is-selected {
background: #2FCC8B;
color: #fff;
}
.select-search__option.is-highlighted,
.select-search__option:not(.is-selected):hover {
background: rgba(47, 204, 139, 0.1);
}
.select-search__option.is-highlighted.is-selected,
.select-search__option.is-selected:hover {
background: #2eb378;
color: #fff;
}
/**
* Group
*/
.select-search__group-header {
font-size: 10px;
text-transform: uppercase;
background: #eee;
padding: 8px 16px;
}
/**
* States
*/
.select-search.is-disabled {
opacity: 0.5;
}
.select-search.is-loading .select-search__value::after {
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='50' height='50' viewBox='0 0 50 50'%3E%3Cpath fill='%232F2D37' d='M25,5A20.14,20.14,0,0,1,45,22.88a2.51,2.51,0,0,0,2.49,2.26h0A2.52,2.52,0,0,0,50,22.33a25.14,25.14,0,0,0-50,0,2.52,2.52,0,0,0,2.5,2.81h0A2.51,2.51,0,0,0,5,22.88,20.14,20.14,0,0,1,25,5Z'%3E%3CanimateTransform attributeName='transform' type='rotate' from='0 25 25' to='360 25 25' dur='0.6s' repeatCount='indefinite'/%3E%3C/path%3E%3C/svg%3E");
background-size: 11px;
}
.select-search:not(.is-disabled) .select-search__input {
cursor: pointer;
}
/**
* Modifiers
*/
.select-search--multiple {
border-radius: 3px;
overflow: hidden;
}
.select-search:not(.is-loading):not(.select-search--multiple) .select-search__value::after {
transform: rotate(45deg);
border-right: 1px solid #000;
border-bottom: 1px solid #000;
pointer-events: none;
}
.select-search--multiple .select-search__input {
cursor: initial;
}
.select-search--multiple .select-search__input {
border-radius: 3px 3px 0 0;
}
.select-search--multiple:not(.select-search--search) .select-search__input {
cursor: default;
}
.select-search:not(.select-search--multiple) .select-search__input:hover {
border-color: #2FCC8B;
}
.select-search:not(.select-search--multiple) .select-search__select {
position: absolute;
z-index: 2;
top: 44px;
right: 0;
left: 0;
border-radius: 3px;
overflow: auto;
max-height: 360px;
}
.select-search--multiple .select-search__select {
position: relative;
overflow: auto;
max-height: 260px;
border-top: 1px solid #eee;
border-radius: 0 0 3px 3px;
}
.select-search__not-found {
height: auto;
padding: 16px;
text-align: center;
color: #888;
}
2021-04-09 06:50:59 +00:00
.jet-table-footer {
.pagination {
width: 100%;
}
}
2021-04-09 12:00:06 +00:00
.jet-data-table-header {
max-height: 50px;
}
.jet-data-table {
2021-04-09 06:50:59 +00:00
2021-04-11 04:35:11 +00:00
.table-row:hover, .table-row:focus-within {
background: rgba(lightBlue, .25);
}
th:after {
content: ' ';
position: relative;
height: 0;
width: 0;
}
.sort-desc:after {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 5px solid #333;
border-bottom: 5px solid transparent;
left: 6px;
top: 8px;
}
.sort-asc:after {
border-left: 5px solid transparent;
border-right: 5px solid transparent;
border-top: 0px solid transparent;
border-bottom: 5px solid #333;
left: 6px;
bottom: 8px;
}
}
.btn-primary {
--tblr-btn-color: 74, 196, 214;
2021-04-10 07:39:41 +00:00
--tblr-btn-color-darker: 60,158,173
}
.form-check-input:checked {
background-color: #4ac4d6;
border-color: rgba(101,109,119,.24);
}
.btn:focus,.btn:active, .form-check-input:focus, .form-check-input:active, .form-control:focus, th:focus, tr:focus {
outline: none !important;
box-shadow: none;
}
2021-04-11 06:38:06 +00:00
.jet-container {
border-radius: 8px;
}
.select-search__option.is-selected {
2021-04-24 16:52:05 +00:00
background: #9ce5f0;
color: rgb(51, 50, 50);
}
.select-search__option.is-highlighted.is-selected, .select-search__option.is-selected:hover {
2021-04-24 16:52:05 +00:00
background: #9ce5f0;
color: rgb(44, 43, 43);
}
.select-search__option.is-highlighted, .select-search__option:hover {
2021-04-24 16:52:05 +00:00
background: #c4f1f7;
2021-04-16 16:45:10 +00:00
}
.select-search__options {
margin-left: -33px
}
.select-search__option.is-highlighted, .select-search__option:not(.is-selected):hover {
2021-04-24 16:52:05 +00:00
background: #d7f1f5;
2021-04-16 16:45:10 +00:00
}
.select-search:not(.select-search--multiple) .select-search__input:hover {
border-color: #49c3d6;
}
.DateInput_input {
font-weight: 300;
font-size: 14px;
padding: 4px 7px 2px;
}
.jet-data-table {
display: inline-block;
.th,
.td {
.resizer {
display: inline-block;
width: 5px;
height: 100%;
position: absolute;
right: 0;
top: 0;
transform: translateX(50%);
z-index: 1;
touch-action:none;
&.isResizing {
background: rgb(179, 173, 173);
}
}
}
}
2021-04-21 13:47:19 +00:00
.no-components-box {
border: 1px dashed rgb(74, 196, 214);
}
.form-control-plaintext:focus-visible {
outline: none;
outline-width:thin; outline-style:solid;
outline-color: #4ac4d6;
}
2021-04-24 07:54:36 +00:00
2021-04-24 16:52:05 +00:00
.select-search__input:focus-visible {
outline: none;
outline-color: #4ac4d6;
}
2021-04-24 07:54:36 +00:00
.form-control-plaintext {
padding: 5px;
}
2021-04-25 07:51:48 +00:00
.table-filters {
position: absolute;
bottom: 0;
width: 80%;
max-width: 600px;
margin-right: 10%;
right: 0;
height: 300px;
}