discourse-data-explorer/assets/stylesheets/explorer.scss

474 lines
7.8 KiB
SCSS
Raw Normal View History

table.group-reports {
width: 100%;
table-layout: fixed;
th:first-child {
width: 30%;
}
th:nth-child(2) {
width: 60%;
}
th:last-child {
width: 20%;
text-align: right;
}
tbody tr td {
padding: 0.5em;
&:first-child {
font-size: $font-up-1;
}
&:last-child {
text-align: right;
}
}
}
2015-07-01 00:21:14 -04:00
.https-warning {
color: var(--danger);
2015-07-01 00:21:14 -04:00
}
2015-07-08 19:46:36 -04:00
.query-editor {
margin-bottom: 15px;
2019-04-07 02:05:43 -04:00
.panels-flex {
display: flex;
height: 400px;
border: 1px solid var(--primary-very-low);
}
&.no-schema {
.editor-panel {
width: 100%;
}
.right-panel {
width: 0;
button.unhide {
position: absolute;
2019-04-07 02:05:43 -04:00
margin-left: -53px;
z-index: 1;
}
}
}
.editor-panel {
2019-04-07 02:05:43 -04:00
flex-grow: 1;
.ace-wrapper {
position: relative;
2019-04-07 02:05:43 -04:00
height: 100%;
2015-07-08 19:46:36 -04:00
width: 100%;
}
.ace_editor {
position: absolute;
left: 0;
right: 0;
top: 0;
bottom: 0;
2015-07-08 19:46:36 -04:00
}
}
.right-panel {
2019-04-07 02:05:43 -04:00
flex-shrink: 0;
flex-grow: 0;
width: 345px;
2015-07-08 19:46:36 -04:00
.schema {
border-left: 1px solid var(--primary-low);
2019-04-07 02:05:43 -04:00
height: 100%;
2015-07-08 19:46:36 -04:00
overflow-y: scroll;
overflow-x: hidden;
color: var(--primary-high);
font-size: var(--font-down-1);
position: relative;
2015-07-08 19:46:36 -04:00
.schema-search {
padding: 0.5em;
position: sticky;
background-color: var(--secondary);
top: 0px;
z-index: 1;
}
2015-07-08 19:46:36 -04:00
.schema-table-name {
font-weight: bold;
border-bottom: 1px solid var(--primary-low);
2015-07-08 19:46:36 -04:00
padding-left: 5px;
.fa {
width: 6px;
}
}
ul {
list-style-type: none;
margin: 0;
}
dl {
margin: 0;
}
dl > div > * {
padding-top: 2px;
padding-bottom: 2px;
}
dl > div {
clear: both;
2015-07-08 19:46:36 -04:00
}
dt {
display: inline-block;
vertical-align: text-top;
overflow-wrap: break-word;
width: 110px;
margin-left: 5px;
&.sensitive {
color: var(--danger);
2015-07-08 19:46:36 -04:00
}
}
dd {
display: inline-block;
vertical-align: text-top;
2015-07-28 14:18:22 -04:00
width: 110px;
color: var(--tertiary);
2015-07-08 19:46:36 -04:00
margin: 0;
padding-left: 7px;
border-left: 1px dotted var(--primary-low-mid);
2015-07-08 19:46:36 -04:00
.schema-typenotes {
color: var(--primary-medium);
2015-07-08 19:46:36 -04:00
font-style: italic;
}
.popup-info {
color: var(--primary-medium);
2015-07-09 18:46:19 -04:00
.popup {
display: none;
}
&:hover .popup {
display: block;
}
&:focus .popup {
display: block;
}
.popup {
width: 180px;
2018-11-08 01:34:04 -05:00
padding: 4px;
position: relative;
border: 1px solid;
background: var(--secondary);
2018-11-08 01:34:04 -05:00
padding-right: calc(5px + 0.5em);
}
2015-07-09 18:46:19 -04:00
.popup ol {
2018-11-08 01:34:04 -05:00
padding: 0px;
position: relative;
list-style: none;
> li:before {
content: attr(value) ": ";
2015-07-09 18:46:19 -04:00
}
}
2015-07-08 19:46:36 -04:00
}
}
}
}
.grippie {
2019-04-07 02:05:43 -04:00
cursor: nwse-resize;
2015-07-08 19:46:36 -04:00
clear: both;
2019-04-07 02:05:43 -04:00
font-size: $font-down-2;
2015-07-09 16:20:21 -04:00
-webkit-user-select: none;
color: var(--primary);
2019-04-07 02:05:43 -04:00
text-align: right;
background: var(--primary-very-low);
border: 1px solid var(--primary-very-low);
2019-04-07 02:05:43 -04:00
.d-icon {
transform: rotate(90deg);
}
2015-07-08 19:46:36 -04:00
}
}
2015-06-30 13:20:22 -04:00
.query-edit {
> .name {
display: flex;
align-items: center;
margin-bottom: 1em;
h1 {
display: inline-block;
margin: 0 0.5em 0 0;
color: var(--primary);
a {
color: currentColor;
}
}
2015-06-30 13:20:22 -04:00
}
button.previous {
margin-right: 0.5em;
.d-icon {
margin-left: -0.15em; // fixing fontawesome horizontal alignment
}
}
.name-text-field {
width: 100%;
}
.name input,
.desc textarea {
width: 100%;
margin: 0;
2015-06-30 13:20:22 -04:00
}
2015-07-01 15:31:55 -04:00
&:not(.editing) .desc {
margin: 10px 0;
}
.groups {
margin-bottom: 10px;
.label {
margin-right: 10px;
color: var(--primary-high);
}
.name {
display: inline;
}
}
2015-07-08 16:45:13 -04:00
}
2015-08-03 18:14:23 -04:00
.query-run {
2015-08-03 18:15:04 -04:00
margin-top: 25px;
2015-08-03 18:14:23 -04:00
.query-plan {
display: inline-block;
margin-left: 15px;
}
}
.clear {
clear: both;
}
2015-07-08 16:45:13 -04:00
.schema-title {
display: block;
margin: auto;
}
.query-params {
border: 1px solid var(--header_primary-medium);
.params-form {
margin: 5px;
html.desktop-view & {
flex-direction: row;
flex-wrap: wrap;
}
}
.param > input,
.param > .select-kit {
margin: 9px;
}
.invalid input {
background-color: var(--danger-low);
2015-07-14 19:01:38 -04:00
}
.invalid .ac-wrap {
background-color: var(--danger-low);
2015-07-14 19:01:38 -04:00
}
2015-06-30 22:51:38 -04:00
.param {
display: flex;
align-items: center;
flex: 0;
2015-07-14 19:01:38 -04:00
.ac-wrap {
display: inline-block;
2015-07-15 14:00:31 -04:00
input {
width: 100px !important; // override an inline style
}
2015-07-14 19:01:38 -04:00
}
input,
.select-kit {
width: auto;
max-width: 250px;
}
2015-06-30 22:51:38 -04:00
}
}
.query-list,
.query-create,
.query-edit,
.query-results,
.query-params,
.https-warning {
2015-06-29 15:10:24 -04:00
margin: 10px 0;
}
2015-07-09 16:58:22 -04:00
.query-create {
display: flex;
input {
margin-right: 0.5em;
margin-bottom: 0;
}
}
.query-results {
section {
width: 100%;
overflow: auto;
max-height: 1000px;
}
table {
width: 100%;
margin-top: 10px;
td {
padding: 8px;
}
}
thead {
th {
position: sticky;
top: 0;
color: var(--primary);
background: var(--primary-low);
z-index: z("base");
}
}
}
2018-05-09 14:04:14 -04:00
.query-list {
display: flex;
align-items: flex-start;
.btn-left {
margin-right: 0.5em;
}
.btn-right {
margin-left: auto;
margin-right: 0.5em;
2018-05-09 14:04:14 -04:00
}
li.none {
2018-05-09 15:49:43 -04:00
display: none;
2018-05-09 14:04:14 -04:00
}
.import-btn {
display: flex;
}
2018-05-09 14:04:14 -04:00
}
.recent-queries {
thead {
.created-by {
width: 15%;
}
.group-names {
width: 15%;
.group-names-header {
position: absolute;
bottom: 8px;
left: 6px;
}
}
.created-at {
width: 15%;
}
.heading {
position: relative;
color: var(--primary-medium);
padding: 50px 0px 0px 0px;
th.sortable {
font-weight: normal;
}
.heading-toggle {
bottom: 0;
position: absolute;
display: inline-block;
}
}
}
.query-row {
a {
width: 100%;
}
.query-name {
color: var(--primary);
}
.query-desc {
display: block;
color: var(--primary-high);
}
.query-created-by {
color: var(--primary-high);
}
.query-group-names {
color: var(--tertiary);
a {
display: inline;
}
}
.query-created-at {
color: var(--primary-medium);
}
}
.query-row:hover {
background-color: inherit;
}
tr a {
color: inherit;
cursor: pointer;
display: inline-block;
}
.no-search-results {
color: var(--primary-medium);
}
}
.result-info {
float: left;
}
.result-about {
color: var(--primary-high);
float: right;
}
.result-explain {
padding-top: 1em;
margin-bottom: 0px;
}
.result-post-link {
display: block;
color: inherit !important;
}
.result-json {
display: flex;
}
.result-json-value {
flex: 1;
margin-right: 0.5em;
max-width: 250px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
}
2015-07-09 16:58:22 -04:00
.explorer-pad-bottom {
margin-bottom: 200px;
}
.share-report {
cursor: pointer;
label {
color: var(--primary-high);
}
input {
margin-right: 4px;
}
.popup {
background-color: var(--secondary);
position: absolute;
box-shadow: var(--shadow-card);
padding: 12px;
z-index: 1;
}
}
.left-buttons,
.right-buttons {
display: flex;
align-items: flex-start;
}
.left-buttons .btn {
margin-right: 0.5em;
}
.right-buttons .btn {
margin-left: 0.5em;
}
.query-group-bookmark {
&.bookmarked .d-icon {
color: var(--tertiary);
}
}