Data Request API helper #10
9 changed files with 48 additions and 12 deletions
|
|
@ -23,10 +23,6 @@
|
|||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1rem;
|
||||
|
||||
button {
|
||||
flex-grow: 1;
|
||||
}
|
||||
}
|
||||
|
||||
label {
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
display: flex;
|
||||
flex-direction: column;
|
||||
margin: 0;
|
||||
border: 1px solid yellowgreen;
|
||||
border: 1px solid rebeccapurple;
|
||||
border-radius: 4px;
|
||||
padding: 4px 8px;
|
||||
|
||||
|
|
@ -19,7 +19,15 @@
|
|||
display: flex;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
/* Same height as the icons used for loading/disconnected */
|
||||
height: 35px;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.control-row {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
gap: 1rem;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
20
styles/elements/div.css
Normal file
20
styles/elements/div.css
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
.taf > .window-content div {
|
||||
&.chip {
|
||||
display: inline flex;
|
||||
color: var(--chip-color);
|
||||
background: var(--chip-background);
|
||||
border: 1px solid var(--chip-border-color);
|
||||
border-radius: 4px;
|
||||
|
||||
.key {
|
||||
padding: 2px 4px;
|
||||
}
|
||||
|
||||
.value {
|
||||
padding: 2px 4px;
|
||||
border-radius: 0 4px 4px 0;
|
||||
color: var(--chip-value-color);
|
||||
background: var(--chip-value-background);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -18,7 +18,7 @@
|
|||
|
||||
.taf > .window-content span {
|
||||
&.loader {
|
||||
--size: 40px;
|
||||
--size: 35px;
|
||||
width: var(--size);
|
||||
height: var(--size);
|
||||
border-radius: 50%;
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
/* Resets */
|
||||
@import url("./resets/hr.css") layer(resets);
|
||||
@import url("./resets/inputs.css") layer(resets);
|
||||
@import url("./resets/button.css") layer(resets);
|
||||
|
||||
/* Themes */
|
||||
@import url("./themes/dark.css") layer(themes);
|
||||
|
|
@ -10,6 +11,7 @@
|
|||
|
||||
/* Elements */
|
||||
@import url("./elements/utils.css") layer(elements);
|
||||
@import url("./elements/div.css") layer(elements);
|
||||
@import url("./elements/headers.css") layer(elements);
|
||||
@import url("./elements/hr.css") layer(elements);
|
||||
@import url("./elements/input.css") layer(elements);
|
||||
|
|
|
|||
3
styles/resets/button.css
Normal file
3
styles/resets/button.css
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
.taf > .window-content button {
|
||||
height: initial;
|
||||
}
|
||||
|
|
@ -1,3 +1,10 @@
|
|||
.theme-dark {
|
||||
--prosemirror-background: var(--color-cool-5);
|
||||
|
||||
/* Chip Variables */
|
||||
--chip-color: #fff7ed;
|
||||
|
Oliver marked this conversation as resolved
Outdated
|
||||
--chip-background: #2b3642;
|
||||
--chip-value-color: #fff7ed;
|
||||
--chip-value-background: #10161d;
|
||||
--chip-border-color: var(--chip-value-background);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,8 @@
|
|||
<div>
|
||||
<button data-action="">
|
||||
<div class="control-row">
|
||||
<button data-action="cancelRequest">
|
||||
Cancel Request
|
||||
|
Oliver marked this conversation as resolved
Outdated
Oliver
commented
Localizing this would be nice Localizing this would be nice
|
||||
</button>
|
||||
<button data-action="">
|
||||
<button data-action="finishEarly">
|
||||
Finish Request Early
|
||||
|
Oliver marked this conversation as resolved
Outdated
Oliver
commented
Localizing this would be nice Localizing this would be nice
|
||||
</button>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
<taf-icon
|
||||
data-tooltip="taf.Apps.QueryStatus.user-disconnected-tooltip"
|
||||
name="icons/disconnected"
|
||||
var:size="40px"
|
||||
var:size="35px"
|
||||
var:stroke="currentColor"
|
||||
var:fill="currentColor"
|
||||
></taf-icon>
|
||||
|
|
@ -32,14 +32,14 @@
|
|||
{{#if (eq user.status "finished")}}
|
||||
<div class="chip-list">
|
||||
{{#each user.answers as | answer |}}
|
||||
<span class="chip">
|
||||
<div class="chip">
|
||||
<span class="key">
|
||||
{{ @key }}
|
||||
</span>
|
||||
<span class="value">
|
||||
{{ answer }}
|
||||
</span>
|
||||
</span>
|
||||
</div>
|
||||
{{/each}}
|
||||
</div>
|
||||
{{/if}}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue
Need to add light theme of these variables