You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

279 lines
6.4 KiB

3 years ago
/* src/assets/main.css */
3 years ago
.dice-roller {
3 years ago
position: relative;
display: inline-block;
cursor: pointer;
margin: 0 0.25em 0 0;
3 years ago
}
.dice-roller.no-icon {
3 years ago
margin: 0;
3 years ago
}
.dice-roller > div {
3 years ago
display: inline-block;
3 years ago
}
.dice-roller span {
3 years ago
font-weight: 700;
3 years ago
}
.dice-roller > .dice-roller-button {
3 years ago
display: inline-block;
position: relative;
font-size: inherit;
margin-left: 0.25em;
3 years ago
}
.dice-roller.has-embed .dice-roller-result {
3 years ago
width: 100%;
padding: 1rem;
3 years ago
}
.dice-roller.has-embed .dice-roller-result .markdown-embed {
3 years ago
display: flex;
margin-top: 0.5rem;
padding-right: 0;
3 years ago
}
.dice-roller.has-embed .dice-roller-button {
3 years ago
padding-top: 0.5rem;
3 years ago
}
.dice.tooltip {
3 years ago
max-width: unset !important;
3 years ago
}
.workspace .markdown-preview-view .dice-roller.has-embed {
3 years ago
display: flex;
padding-right: 0.25rem;
margin: 0.25rem 0;
3 years ago
}
.dice-no-results {
3 years ago
font-style: italic;
text-align: center;
3 years ago
}
.dice-roller.has-embed .internal-embed {
3 years ago
width: 100%;
3 years ago
}
3 years ago
.dice-roller.has-embed .internal-embed *:last-child:not(svg):not(.dice-content-copy) {
margin-bottom: 15px;
3 years ago
}
.dice-roller.has-embed .dice-file-name {
3 years ago
font-style: italic;
3 years ago
}
.dice-section-result {
3 years ago
position: relative;
3 years ago
}
.dice-content-copy {
3 years ago
color: var(--text-faint);
cursor: pointer;
height: fit-content;
3 years ago
}
.dice-content-copy.no-show {
3 years ago
display: none;
3 years ago
}
.dice-content-copy:hover {
3 years ago
color: var(--text-normal);
3 years ago
}
.dice-roller.has-embed .dice-section-result .dice-content-copy,
.dice-content-copy:hover {
3 years ago
opacity: 1;
3 years ago
}
.dice-roller-result {
3 years ago
position: relative;
3 years ago
}
3 years ago
.dice-roller-result .embedded-table-result p {
3 years ago
margin: 0;
display: inline-block;
3 years ago
}
3 years ago
.dice-roller-settings .coffee {
3 years ago
width: 60%;
color: var(--text-faint);
margin: 0.5rem auto;
text-align: center;
3 years ago
}
.dice-roller-settings .coffee img {
3 years ago
height: 30px;
3 years ago
}
3 years ago
.dice-roller-setting-additional-container > .setting-item:not(.setting-item-heading) {
border: 0px;
3 years ago
}
.dice-roller-setting-additional-container {
3 years ago
border-bottom: 1px solid var(--background-modifier-border);
border-top: 1px solid var(--background-modifier-border);
padding: 18px 0;
3 years ago
}
.dice-roller-setting-additional-container > .setting-item-heading:only-child {
3 years ago
padding-bottom: 18px;
3 years ago
}
.dice-roller-setting-additional-container > .additional .no-formulas {
3 years ago
width: auto;
display: block;
text-align: center;
3 years ago
}
.dice-roller-setting-additional-container > .additional > .setting-item {
3 years ago
border-top: 0;
padding-top: 9px;
3 years ago
}
3 years ago
.dice-roller-setting-additional-container > .additional > .setting-item > .setting-item-control > *:first-child {
margin: 0 6px;
3 years ago
}
.dice-roller-setting-additional-container .add-new-formula {
3 years ago
margin: 0 1rem;
padding: 1rem 1rem 0 1rem;
border-radius: 0.5rem;
box-shadow: 0 0 0.25rem var(--background-modifier-box-shadow);
3 years ago
}
3 years ago
.dice-roller-setting-additional-container .add-new-formula .formula-data .setting-item {
border: 0;
3 years ago
}
3 years ago
/* src/view/view.css */
3 years ago
.renderer-container {
3 years ago
position: absolute;
top: 0;
left: 0;
width: 100vw;
height: 100vh;
pointer-events: none;
z-index: 9999999;
transition: opacity 1s ease-out;
3 years ago
}
.dice-roller-view .dice-roller-roll:disabled {
3 years ago
cursor: not-allowed;
opacity: 0.75;
3 years ago
}
.workspace-split.mod-right-split .view-content.dice-roller-view {
3 years ago
padding: 0.5rem;
display: flex;
flex-flow: column nowrap;
justify-content: flex-start;
gap: 12px;
3 years ago
}
.dice-roller-view .dice-roller-grid {
3 years ago
display: grid;
grid-template-rows: auto auto;
justify-content: center;
gap: 6px;
3 years ago
}
.dice-roller-view .dice-roller-grid .dice-buttons {
3 years ago
display: flex;
flex-flow: row wrap;
align-items: center;
justify-content: center;
width: fit-content;
3 years ago
}
.dice-roller-view .dice-roller-grid .dice-custom-formula-container {
3 years ago
display: flex;
justify-content: space-between;
align-items: center;
3 years ago
}
.dice-roller-view .dice-roller-grid .dice-custom-formula {
3 years ago
display: flex;
justify-content: flex-start;
align-items: center;
3 years ago
}
.dice-roller-view .setting-editor-extra-setting-button {
3 years ago
width: fit-content;
3 years ago
}
.dice-roller-view .dice-button .clickable-icon > svg {
3 years ago
width: 36px;
height: 36px;
3 years ago
}
.dice-roller-view .dice-context {
3 years ago
display: grid;
grid-template-columns: 1fr auto;
3 years ago
}
.dice-roller-view .dice-context .add-subtract {
3 years ago
display: flex;
align-items: center;
3 years ago
}
3 years ago
.dice-roller-view input,
.dice-roller-view textarea {
width: 100%;
3 years ago
}
.dice-roller-view .dice-roller-grid .advantage-disadvantage {
3 years ago
display: flex;
justify-content: center;
align-items: center;
gap: 0.5rem;
3 years ago
}
.dice-roller-view .dice-roller-grid .advantage-disadvantage button {
3 years ago
margin: 0;
min-width: 66px;
3 years ago
}
.dice-roller-view .dice-roller-formula {
3 years ago
display: flex;
flex-flow: column nowrap;
justify-content: space-between;
align-items: flex-end;
gap: 12px;
3 years ago
}
.dice-roller-view .dice-roller-formula .action-buttons {
3 years ago
display: flex;
justify-content: flex-end;
3 years ago
}
.dice-roller-view .dice-roller-formula button {
3 years ago
margin-right: 0;
margin-left: 12px;
3 years ago
}
.dice-roller-view hr {
3 years ago
margin-bottom: 0;
3 years ago
}
.dice-roller-view .dice-roller-results-container .dice-roller-results-header {
3 years ago
display: flex;
justify-content: space-between;
align-items: center;
margin: 6px 0px;
width: 100%;
border-bottom: 1px solid var(--background-modifier-border);
}
.dice-roller-view .dice-roller-results-container .dice-roller-results-header h4 {
margin: 0px;
3 years ago
}
.dice-roller-view .dice-roller-results {
3 years ago
display: flex;
flex-flow: column nowrap;
gap: 6px;
3 years ago
}
.dice-roller-view .dice-roller-results .view-result {
3 years ago
display: flex;
flex-flow: column nowrap;
justify-content: center;
align-items: center;
border: 1px solid var(--background-modifier-border);
border-radius: 0.25rem;
position: relative;
3 years ago
}
.dice-roller-view .dice-roller-results .view-result .dice-content-copy {
3 years ago
position: absolute;
top: 0;
right: 0;
padding: 0.25rem;
3 years ago
}
.dice-roller-view .dice-roller-results .view-result .dice-result-reroll {
3 years ago
position: absolute;
top: 0;
left: 0;
padding: 0.25rem;
margin: 0;
3 years ago
}
.dice-roller-view .dice-roller-results .view-result strong {
3 years ago
font-size: x-large;
3 years ago
}
.dice-roller-view .dice-roller-results .view-result .result-context {
3 years ago
align-self: flex-end;
width: 100%;
display: flex;
align-items: center;
justify-content: space-between;
padding: 0.25rem;
font-size: x-small;
}
.dice-roller-view .dice-roller-results .view-result .result-context .clickable-icon {
margin-right: 0;
3 years ago
}
.dice-roller-view .dice-roller-results > span {
3 years ago
color: var(--text-muted);
margin: 0 auto;
3 years ago
}
.dice-renderer {
3 years ago
position: absolute;
top: 0;
left: 0;
3 years ago
}
3 years ago
/* src/styles.css */