Files
roll20-character-sheets/ChroniquesGalactiques/cog.css
T
2025-01-25 12:03:18 +01:00

810 lines
14 KiB
CSS

/* Version 4.8.0 - 2025-01-25 */
/* Police Google Fonts */
@import url('https://fonts.googleapis.com/css?family=Maven+Pro&display=swap');
/* Couleurs (anciennes)
Base bleu = #2F5860
Bleu light = #7F989D
Degrade fond : 575D51 9B9E99 CECBC4 DDDAD2 ECEDE8 FDFEFD
*/
div,
button,
textarea,
span,
input,
select,
table,
tr,
td,
th {
box-sizing: border-box;
font-family: "Verdana";
font-size: 12px;
}
div.sheet-mainBg {
/* variables */
--cog-font: "Maven Pro";
--cog-bgcolor: #3E5082; /* #2f5860; */
--cog-txcolor: #F1E05C;
--cog-bgsecond: #7F989D;
/* base */
width: 850px;
background: linear-gradient(#9b9e99, #cecbc4, #dddad2, #ecede8, #fdfefd);
border: 2px solid var(--cog-bgcolor);
border-radius: 10px;
padding: 6px 0px 6px 0px;
}
.charsheet .repcontrol button.repcontrol_edit,
.charsheet .repcontrol button.repcontrol_add {
border-radius: 5px;
margin: 5px;
padding-top: 0px;
padding-bottom: 0px;
font-size: small;
}
table {
width: 100%;
border-collapse: collapse;
}
tr,
td,
th {
vertical-align: top !important;
}
table.sheet-tabsep {
border-collapse: separate;
border-spacing: 4px 2px;
}
summary {
display: list-item;
}
.sheet-boxtext details[open] {
background-color: lightyellow;
}
.sheet-imghr {
width: 850px;
height: 5px;
padding: 0px;
/* box-shadow: 1px 1px 8px #555; */
}
.sheet-imghr-up {
width: 850px;
height: 5px;
padding: 0px;
text-align: center;
margin-top: -24px;
/* box-shadow: 1px 1px 8px #555; */
}
.sheet-boxtitre {
font-family: var(--cog-font);
font-size: 15px;
background-color: var(--cog-bgcolor);
text-align: center;
font-style: normal;
text-transform: capitalize;
color: var(--cog-txcolor);
border: 1px solid #8379B6;
white-space: nowrap;
padding: 2px 4px 2px 4px;
}
.sheet-boxtitresmall {
font-family: var(--cog-font);
font-size: 13px;
background-color: var(--cog-bgcolor);
text-align: center;
font-style: normal;
font-weight: normal;
color: var(--cog-txcolor);
border: none;
white-space: nowrap;
padding: 1px 2px 1px 2px;
vertical-align: top;
}
.sheet-boxinput {
background-color: white;
text-align: center;
font-style: normal;
font-weight: normal;
color: black;
border: 1px solid var(--cog-bgcolor);
white-space: nowrap;
vertical-align: middle !important;
}
.sheet-boxinputleft {
background-color: white;
text-align: left;
font-style: normal;
font-weight: normal;
color: black;
border: 1px solid var(--cog-bgcolor);
white-space: nowrap;
vertical-align: middle !important;
}
.sheet-boxinputlight {
background-color: white;
text-align: center;
font-style: normal;
font-weight: normal;
color: black;
border: 1px solid var(--cog-bgsecond);
white-space: nowrap;
vertical-align: middle !important;
}
.sheet-boxvoie {
background-color: white;
text-align: left;
font-style: normal;
font-weight: normal;
color: black;
border-top: none;
border-bottom: 1px dotted var(--cog-bgcolor);
border-left: 1px solid var(--cog-bgcolor);
border-right: 1px solid var(--cog-bgcolor);
white-space: nowrap;
}
.sheet-boxtext {
width: 266px;
padding: 2px;
}
.sheet-align-right {
float: right;
}
.sheet-txt-left {
text-align: left;
}
.sheet-txt-center {
text-align: center;
}
.sheet-txt-right {
text-align: right;
}
.sheet-txt-bold {
font-weight: bold;
}
.sheet-txt-italic {
font-style: italic;
}
.sheet-optgroup {
background: gray;
font-weight: bold;
color: white;
}
span.sheet-label {
padding: 0;
}
span.sheet-levels {
display: inline-block;
width: 3.5em;
text-align: right;
border: 1px gray solid;
border-radius: 3px;
padding: 0 5px;
}
input[type='text'].sheet-boxability {
width: 92%;
border-style: none;
}
textarea.sheet-boxability {
overflow-x: hidden;
}
span.sheet-boxability,
div.sheet-boxability {
white-space: pre-wrap;
font-size: x-small;
user-select: text;
}
div.sheet-boxability {
padding: 5px;
}
.sheet-textfat {
font-family: var(--cog-font);
font-size: 15px;
font-weight: bold;
color: var(--cog-bgcolor);;
border: none;
text-align: center;
}
.sheet-textfatleft {
font-family: var(--cog-font);
font-size: 15px;
font-weight: bold;
color: var(--cog-bgcolor);
border: none;
text-align: left;
padding-left: 4px;
padding-right: 4px;
}
.sheet-textbase {
font-family: var(--cog-font);
font-size: 14px;
color: var(--cog-bgcolor);
border: none;
text-align: center;
}
.sheet-textbasesmall {
color: var(--cog-bgcolor);
border: none;
font-size: 11px;
}
.sheet-texttitresmall {
color: white;
font-size: 8px;
font-weight: normal;
}
.sheet-mainBg button[type='roll'].sheet-boxtitre {
height: 20px;
font-family: var(--cog-font);
font-size: 15px;
font-weight: normal;
text-decoration: none;
background: none;
background-image: none;
border: none;
box-shadow: none;
text-shadow: none;
}
.sheet-mainBg button[type='roll'].sheet-boxtitre:hover {
font-weight: bold;
background-color: var(--cog-bgsecond);
border: 1px solid #8379B6;
}
.sheet-mainBg button[type='roll'].sheet-neutre,
.sheet-mainBg button[type='roll'].sheet-output {
color: var(--cog-bgcolor);;
font-weight: normal;
font-size: 20px;
text-decoration: none;
background: none;
background-image: none;
border: none;
box-shadow: none;
text-shadow: none;
padding: 0px;
margin: 0px;
}
.sheet-mainBg button[type='roll'].sheet-neutre:hover,
.sheet-mainBg button[type='roll'].sheet-output:hover {
font-weight: bold;
}
.sheet-mainBg button[type='roll'].sheet-output {
font-family: pictos;
}
.sheet-mainBg button[type='roll'].sheet-output:before {
content: '';
}
button[type='action'].sheet-boxtitre:hover {
border-radius: 2px;
background-color: var(--cog-bgsecond);
}
button.sheet-flatbtn {
border: 0px;
background-color: transparent;
background-image: none;
font-size: 12px !important;
}
button.sheet-linkbtn {
margin-left: 0px !important;
padding-left: 0px !important;
color: var(--cog-bgcolor);
}
.sheet-mainBg button[type='roll'].sheet-iconbtn::before {
content: '';
}
span.sheet-iconbtn {
font-family: pictos;
font-size: large !important;
}
.sheet-iconbtn:hover {
color: orange;
}
img.sheet-iconimg {
width: 16px;
}
img.sheet-iconimg:hover {
width: 20px;
background-color: tomato;
border-radius: 100%;
}
input,
select {
border: none;
box-shadow: none;
max-height: 22px;
padding: 0px;
margin: 0px;
}
select.sheet-carac {
width: 62px;
}
select.sheet-pjstatus {
width: 75px;
}
select.sheet-selectmin {
width: 18px;
-webkit-appearance: none;
-moz-appearance: none;
appearance: none;
}
input[type='number'] {
width: 60px;
text-align: right;
}
input[type='text'] {
width: 100%;
text-align: left;
padding-left: 4px;
}
input[disabled] {
background-color: white;
font-style: italic;
}
input:not([disabled]):hover {
background-color: var(--cog-bgsecond);
}
select:not([disabled]):hover {
background-color: var(--cog-bgsecond);
}
input.sheet-nobox {
border-bottom: 2px dotted var(--cog-bgcolor);
}
input.sheet-buff {
border-bottom: 1px dotted #000000;
}
.sheet-mainBg textarea {
border: none;
box-shadow: none;
padding: 1px;
margin: 0px;
height: 1.5em;
resize: vertical;
vertical-align: top;
}
textarea.sheet-voixdesc {
resize: none;
height: 100%;
overflow-y: auto;
}
.sheet-container {
display: flex;
}
td.sheet-buff {
padding: 2px;
}
td.sheet-buff-text {
width: 12%;
}
/* TABS */
div.sheet-tab-content {
display: none;
}
input.sheet-fp1:checked ~ div.sheet-fp1,
input.sheet-fp2:checked ~ div.sheet-fp2,
input.sheet-fp3:checked ~ div.sheet-fp3,
input.sheet-fp4:checked ~ div.sheet-fp4,
input.sheet-tab1:checked ~ div.sheet-tab1,
input.sheet-tab2:checked ~ div.sheet-tab2,
input.sheet-tab3:checked ~ div.sheet-tab3,
input.sheet-tab4:checked ~ div.sheet-tab4,
input.sheet-tab5:checked ~ div.sheet-tab5 {
display: block;
}
input.sheet-tab {
width: 120px;
height: 18px;
position: relative;
color: #5c2e05;
vertical-align: middle;
left: 50px;
margin: -52px;
cursor: pointer;
z-index: 2;
opacity: 0;
}
input.sheet-tab + span::before {
content: attr(title);
border: solid 1px #c8c8c8;
border-bottom-color: black;
border-bottom-width: thin;
text-align: center;
display: inline-block;
background: #fff;
width: 118px;
height: 18px;
z-index: 1;
}
input.sheet-tab:checked + span::before {
background: #dcdcdc;
border-bottom-color: #fff;
border-bottom-width: 5px;
font-weight: bold;
}
button.sheet-subtab {
margin-top: 5px;
margin-left: 5px;
width: 150px;
color: var(--cog-txcolor);
background-color: var(--cog-bgcolor);
border: 1px solid purple;
border-radius: 5px;
}
button.sheet-subtab:hover {
font-weight: bold;
}
input.sheet-toggle-subtab2:not([value="skills"]) ~ div.sheet-subtab2-skills,
input.sheet-toggle-subtab2:not([value="traits"]) ~ div.sheet-subtab2-traits,
input.sheet-toggle-subtab2:not([value="modsit"]) ~ div.sheet-subtab2-modsit,
input.sheet-toggle-subtab2:not([value="buffs"]) ~ div.sheet-subtab2-buffs {
display: none;
}
input.sheet-hidden-tab {
display: none;
height: 0px;
position: relative;
top: -10px;
}
.sheet-block-hidden,
.sheet-block-switch:checked ~ .sheet-block-show {
display: block;
}
.sheet-block-show,
.sheet-block-switch:checked ~ .sheet-block-hidden {
display: none;
}
/*Optional block switch, no margin */
.sheet-optional-block-switch {
display: none;
position: relative;
}
.sheet-optional-block {
position: relative;
}
.sheet-optional-block-switch:checked ~ .sheet-optional-block {
display: block;
}
.sheet-optional-block,
.sheet-optional-block-switch:checked {
display: none;
}
input.sheet-toggle-show:not(:checked) ~ div.sheet-toggle-body,
input.sheet-toggle-hide:checked ~ div.sheet-toggle-body {
display: none;
}
/* Switch -- styled checkboxes */
input[type='checkbox'].sheet-block-switch {
opacity: 0;
width: 16px;
height: 16px;
position: relative;
top: 5px;
left: 6px;
margin: -10px;
cursor: pointer;
z-index: 1;
}
input[type='checkbox'].sheet-block-switch + span::before {
margin-right: 4px;
line-height: 14px;
text-align: center;
display: inline-block;
vertical-align: middle;
content: '►';
width: 16px;
height: 16px;
font-size: 12px;
}
input[type='checkbox'].sheet-block-switch:checked + span::before {
content: '▼';
}
.sheet-block-hidden,
.sheet-block-switch:checked ~ .sheet-block-show {
display: block;
}
.sheet-block-show,
.sheet-block-switch:checked ~ .sheet-block-hidden {
display: none;
}
/* Option display : Gears */
.sheet-options-flag {
opacity: 0;
top: -8px;
right: 0px;
position: absolute;
width: 16px;
min-height: 16px;
z-index: 2;
}
.sheet-options-flag + span {
top: -8px;
right: 0px;
position: absolute;
white-space: nowrap;
width: 16px;
height: 16px;
font-size: 16px;
font-family: pictos;
color: #bbbbbb;
cursor: pointer;
margin-top: 0px;
display: none;
}
.sheet-options-flag:hover + span,
.sheet-options-flag:checked + span {
color: orange;
display: block;
}
.sheet-attack:hover .sheet-options-flag + span {
display: block;
}
.sheet-options {
display: none;
}
.sheet-options-flag:checked ~ .sheet-options {
display: block;
}
.sheet-setup-abilities {
float: right;
}
.sheet-ship-epbox {
margin: 0;
padding: 0;
float: left;
}
div.sheet-scroll-300 {
font-size: smaller;
overflow-y: scroll;
overflow-x: hidden;
max-height: 300px;
}
textarea.sheet-statblock {
margin: 5px;
border: 1px dashed;
height: 12em;
word-break: break-all;
}
textarea.sheet-sbresult {
border: none;
background-color: transparent;
height: 6em;
}
ul.sheet-release-notes {
list-style: none;
margin: 5px;
}
/* TEMPLATES */
.sheet-rolltemplate-co1 {
/* variables */
--cog-font: "Maven Pro";
--cog-bgcolor: #3E5082;
--cog-txcolor: #F1E05C;
--cog-bgsecond: #7F989D;
}
.sheet-rolltemplate-co1 .sheet-imghr {
width: 100%;
height: 4px;
padding: 0px;
margin: 0px;
}
.sheet-rolltemplate-co1 table {
width: 100%;
padding: 2px;
/* border: 1px solid #2F5860; */
/* border-radius: 6px; */
background-color: #ffffff;
border-collapse: collapse;
}
.sheet-rolltemplate-co1 .sheet-roundtable {
border: 1px solid var(--cog-bgcolor);
border-radius: 6px;
overflow: auto;
}
.sheet-rolltemplate-co1 th {
color: var(--cog-bgcolor);
margin: 0px;
padding: 0px 5px 0px 5px;
font-size: 16px;
text-align: left;
font-family: var(--cog-font);
font-variant: small-caps;
font-weight: bold;
white-space: nowrap;
}
.sheet-rolltemplate-co1 .sheet-subheader {
color: #000;
font-size: 12px;
font-style: italic;
font-family: "Verdana";
font-variant: small-caps;
text-align: right;
white-space: nowrap;
}
.sheet-rolltemplate-co1 .sheet-tcat {
font-family: "Verdana";
font-size: 12px;
font-weight: normal;
text-align: right;
padding-right: 2px;
}
.sheet-rolltemplate-co1 td {
margin: 0px;
padding: 2px 5px 2px 5px;
font-family: "Verdana";
font-size: 12px;
font-weight: normal;
white-space: nowrap;
}
.sheet-rolltemplate-co1 div.sheet-desc {
margin: 5px;
max-height: 150px;
overflow-y: auto;
}
.sheet-rolltemplate-co1 div.sheet-text {
font-size: 90%;
font-style: italic;
text-align: justify;
text-justify: inter-word;
margin: 5px;
}
.sheet-rolltemplate-co1 .inlinerollresult {
background-color: rgba(255, 255, 255, 0.9);
border-width: 1px;
border-color: var(--cog-bgsecond);
border-style: solid;
border-radius: 25%;
font-family: var(--cog-font);
font-size: 16px;
}
.sheet-rolltemplate-co1 .inlinerollresult.fullcrit {
color: #3fb315;
border-width: 2px;
border-color: #3fb315;
border-style: solid;
border-radius: 25%;
font-family: var(--cog-font);
font-size: 16px;
}
.sheet-rolltemplate-co1 .inlinerollresult.fullfail {
color: #b31515;
border-width: 2px;
border-color: #b31515;
border-style: solid;
border-radius: 25%;
font-family: var(--cog-font);
font-size: 16px;
}
.sheet-rolltemplate-co1 .inlinerollresult.importantroll {
color: var(--cog-bgcolor);
border-width: 2px;
border-color: var(--cog-bgcolor);
border-style: solid;
border-radius: 25%;
font-family: var(--cog-font);
font-size: 16px;
}
.sheet-rolltemplate-co1.sheet-rolltemplate-darkmode,
.sheet-rolltemplate-co1.sheet-rolltemplate-darkmode th {
color: #333 !important;
}
.sheet-rolltemplate-co1.sheet-rolltemplate-darkmode .inlinerollresult {
color: #f6f6f6;
}