Dungeon World French - Layout refresh and roll options (#6259)

* [WIP] DWFR Google fonts

* [WIP] layout redo

* [WIP] DW layout

* [WIP] options

* Layout & rolltemplate

* [fix] rolltemplate

* [FIX] spellcheck

* layout final

* [FIX] Layout

* Roll options added

* DW French - Rolltemplate Layout redo

* DW FR: damage adjusment

* DW FR: etats

* [fix]DW FR: etats
This commit is contained in:
Natha
2020-04-27 09:28:55 -04:00
committed by GitHub
parent 02f0aeb06f
commit 01d8fb2b95
3 changed files with 973 additions and 824 deletions
+304 -175
View File
@@ -1,6 +1,9 @@
@import url('https://fonts.googleapis.com/css?family=Balthazar|Roboto&display=swap');
.charsheet {
width: 850px;
background: white;
font-family: Balthazar;
font-size: 1.1em;
}
div{
border-radius: 0px;
@@ -11,36 +14,65 @@ textarea {
box-sizing: border-box;
width: 100%;
}
textarea:focus,
input:focus,
select:focus,
button:focus {
outline: none;
}
textarea,
input {
input,
input[type=number] {
outline: none;
box-shadow: none;
margin-bottom: 1px;
font-family: Arial;
font-family: Roboto;
border-radius: 0px;
color: #160101;
border-color: transparent;
background-color: white;
}
textarea:hover,
input:hover,
input[type=number]:hover {
border-color: #490403;
}
input[type=number] {
-moz-appearance: textfield;
appearance: textfield;
margin: 0;
text-align: center;
}
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
.sheet-header textarea,
.sheet-header input {
border: none;
}
textarea:placeholder-shown,
input:placeholder-shown,
input[type=number]:placeholder-shown {
background-color:#DDD5D0
}
input[type=number],
input[type="text"] {
width: 100%;
}
input[type=number]{
text-align: right;
}
select {
width: auto;
margin: 0;
font-family: Roboto;
color: #160101;
border:none;
}
input[disabled],
input[readonly] {
-moz-appearance: textfield;
background-color: #DDD5D0;
}
input[type=number]:disabled::-webkit-inner-spin-button,
input[type=number]:disabled::-webkit-outer-spin-button,
@@ -56,6 +88,14 @@ input[type=number]:read-only::-webkit-outer-spin-button {
background-image: none;
border: none;
}
/* ===== GENERAL CLASSES ===== */
.sheet-smalltext {
font-size: 0.9em;
}
.sheet-small-margin {
margin: 0 0.3em;
}
/* ===== LAYOUT ===== */
.sheet-col-left {
display: inline-block;
@@ -73,10 +113,105 @@ input[type=number]:read-only::-webkit-outer-spin-button {
.sheet-toggle:checked ~ .sheet-show {
display: none;
}
/* === ETATS === */
label.sheet-etat {
position: relative;
width: -moz-fit-content;
cursor: pointer;
text-align: center;
font-size: 0.9em;
text-transform: none;
font-family: Roboto;
width: 100%;
}
label.sheet-etat input[type="checkbox"] {
position: absolute;
z-index: 1;
opacity: 0;
}
label.sheet-etat span {
color: #CCC;
font-weight: normal;
}
label.sheet-etat span:hover{
color: white;
}
label.sheet-etat span::before {
font-family: pictos;
font-size: 1.1em;
content: "*";
margin-right: 0.3em;
}
label.sheet-etat input[type="checkbox"]:checked ~ span {
color: white;
font-weight: bold;
}
label.sheet-etat input[type="checkbox"]:checked ~ span::before {
content: "!";
font-weight: normal;
}
/* === OPTIONS === */
.sheet-options-ligne {
display: flex;
align-items: baseline;
justify-content: center;
}
.sheet-options-ligne div.sheet-header,
.sheet-options-ligne label {
margin-right: 0.3em;
}
.sheet-options-ligne label {
position: relative;
width: fit-content;
width: -moz-fit-content;
cursor: pointer;
font-family: Roboto;
font-size: 1em;
font-weight: normal;
}
.sheet-options-ligne label input[type="checkbox"],
.sheet-options-ligne label input[type="radio"] {
position: absolute;
z-index: 1;
opacity: 0;
}
.sheet-options-ligne label span {
border-style: solid;
border-color: transparent;
border-width: 0px 0px 1px 0px;
border-radius: 0 1em 1em 0;
color: #666666;
width: fit-content;
width: -moz-fit-content;
padding: 0.3em;
}
.sheet-options-ligne label span:hover{
border-color: #690805;
}
.sheet-options-ligne label span::after {
font-family: pictos;
font-size: 1.1em;
content: "*";
margin-left: 0.3em;
}
.sheet-options-ligne label input[type="checkbox"]:checked ~ span,
.sheet-options-ligne label input[type="radio"]:checked ~ span {
color: #490403;
border-color: #490403;
}
.sheet-options-ligne label input[type="checkbox"]:checked ~ span::after,
.sheet-options-ligne label input[type="radio"]:checked ~ span::after {
content: "3";
}
/* ===== SECTION HEADERS ===== */
.sheet-header {
display: inline-block;
background: linear-gradient(to right bottom, #3D2923 40%, #700200, #DE6928);
display: inline-flex;
align-items: center;
justify-content: space-between;
background: linear-gradient(to right bottom, #160101 40%, #700200, #DE6928);
color: #fff;
padding: 2px 0px;
vertical-align: middle;
@@ -85,7 +220,6 @@ input[type=number]:read-only::-webkit-outer-spin-button {
line-height: 32px;
font-size: 1.1em;
margin: 3px 0px;
box-align: center;
border-radius: 0px;
padding: 2px 2px 2px 8px;
}
@@ -114,34 +248,39 @@ input[type=number]:read-only::-webkit-outer-spin-button {
width: 2em;
}
button[type="roll"] {
height: 28px;
width: 28px;
margin: 2px;
padding: 4px;
padding-top: 5px;
font-size: 20px;
text-align: center;
height: 20px !important;
margin: 0 !important;
padding: 0 !important;
background: white;
border: none;
border-radius: 0px;
font-size: 1.1em !important;
color: #490403;
}
button[type="roll"]:before {
content: 'l' !important;
font-family: 'dicefontd6' !important;
font-size: 1.5em;
color: #490403;
font-weight: bold;
}
button[type="roll"]:hover{
color: #DE6928; /* #700200; #CD071E; */
font-weight: bold;
}
button[type="roll"]:hover:before {
content: 'L' !important;
font-weight: normal;
}
.sheet-header > * {
text-align: right;
height: 100%;
}
.sheet-header .sheet-section-name {
display: inline-block;
display: inline-flex;
margin-right: 2px;
font-weight: bold;
text-align: left;
font-size: 1.1em;
}
/* ===== MAIN HEADER ===== */
/* ===== MAIN HEADER ===== */
.sheet-topbar {
display: block;
padding: 4px;
@@ -161,28 +300,31 @@ button[type="roll"]:hover{
height: 45px;
padding: 3px;
margin: 0;
font-size: 22px;
font-weight: bold;
font-size: 1.8em;
line-height: 36px;
}
.sheet-topbar select option {
font-size: 1.2em;
}
.sheet-topbar .sheet-field-name {
width: 370px;
text-align: center;
background-color: white;
color: #3D2923;
color: #160101;
}
.sheet-topbar input.sheet-field-class,
.sheet-topbar select.sheet-field-class {
background: linear-gradient(to bottom right, #160101 40%, #700200, #DE6928);
color: white;
font-family: Balthazar;
}
.sheet-topbar input.sheet-field-class {
width: 200px;
text-align: center;
/* background-color: #3D2923; */
background: linear-gradient(to bottom right, #3D2923 40%, #700200, #DE6928);
color: white;
}
.sheet-topbar select.sheet-field-class {
width: 26px;
text-align: left;
background: linear-gradient(to bottom right, #3D2923 40%, #700200, #DE6928);
color: white;
}
.sheet-topbar select.sheet-field-class option {
color: black;
@@ -193,10 +335,6 @@ button[type="roll"]:hover{
width: 100%;
text-align: center;
}
.sheet-statistics .sheet-header {
/* width: 18%;
margin-right: 0.6%; */
}
.sheet-statistics .sheet-header:last-child {
margin-right: 0;
}
@@ -205,6 +343,7 @@ button[type="roll"]:hover{
display: block;
width:100%;
margin-bottom: 10px;
margin-top: 10px;
}
.sheet-attributes .sheet-header {
height: auto;
@@ -216,24 +355,25 @@ button[type="roll"]:hover{
}
.sheet-attributes .sheet-header > label {
height: 1em;
width: 100px;
width: fit-content;
width: -moz-fit-content;
margin: 0;
padding: 1px 2px;
margin: 0 12px;
padding: 0 0.3em;
text-transform: uppercase;
text-align: center;
font-weight: normal;
font-size: 12px;
font-size: 1em;
background: white;
transform: skew(-10deg);
-webkit-transform: skew(-10deg);
position: absolute;
color: #490403; /* #690805; */
}
.sheet-attributes .sheet-header > label.sheet-top {
top: -5px;
top: -0.3em;
left: 0.5em;
}
.sheet-attributes .sheet-header > label.sheet-bottom {
bottom: -2px;
bottom: -0.3em;
right: 0.5em;
}
.sheet-attributes .sheet-header input[type=number] {
background: white;
@@ -251,23 +391,19 @@ button[type="roll"]:hover{
padding: 1px;
overflow: hidden;
line-height: 14px;
font-size: 12px;
font-size: 1em;
text-align: center;
text-transform: uppercase;
font-weight: bold;
}
.sheet-attributes .sheet-row-2 label {
color: #DDD;
font-size: 80%;
}
.sheet-attributes .sheet-row-2 input {
height: 14px;
margin: 0;
}
.sheet-attributes .sheet-row-3 button {
position: absolute;
right: 2px;
bottom: 2px;
right: 0.5em;
bottom: 0.6em;
z-index: 1;
}
/* ==== Matériel ==== */
@@ -276,14 +412,14 @@ button[type="roll"]:hover{
padding: 0;
margin: 0;
padding: 2px 0px 2px 0px;
border-bottom : 1px dashed #3D2923;
border-bottom : 1px dashed #160101;
}
.sheet-section-gear input {
height: 25px;
}
.sheet-section-gear span {
color: gray;
font-size: 12px;
color: #690805;
font-size: 1em;
}
.sheet-section-gear input[name="attr_itemname"] {
width: 250px;
@@ -315,7 +451,7 @@ input[type="checkbox"].sheet-dispcheck{
z-index: 2;
margin: 0;
}
input[type="checkbox"].sheet-dispcheck + span{
input[type="checkbox"].sheet-dispcheck + span {
display: inline-block;
text-align: center;
padding: 0;
@@ -326,16 +462,20 @@ input[type="checkbox"].sheet-dispcheck + span{
height: 20px;
z-index: 1;
font-family: pictos;
color: #DDB29B; /* #EFBAC1; */
color: #DDB29B;
font-size: 20px;
line-height: 20px;
}
input[type="checkbox"].sheet-dispcheck:hover + span{
color: #DE6928; /* #ADDDAD; */
input[type="checkbox"].sheet-dispcheck:checked:hover + span,
input[type="checkbox"].sheet-dispcheck:hover + span {
color: #490403;
}
input[type="checkbox"].sheet-dispcheck:checked + span{
color: #DE6928;
}
input[type="checkbox"].sheet-dispcheck:checked + span + input[type="text"] {
font-weight: bold;
color: #700200; /* #557F55; */
border-bottom-color: #160101;
}
div.sheet-dispcheck {
width: 100%;
@@ -347,7 +487,7 @@ input[type="checkbox"].sheet-dispcheck:checked ~ div.sheet-dispcheck {
div.sheet-dispactionjet{
display: none;
}
input[type="checkbox"].sheet-selcheck:checked ~ div.sheet-dispactionjet{
input[type="checkbox"].sheet-selcheck:checked + div.sheet-dispactionjet{
display: block;
}
div.sheet-dispdegmod{
@@ -357,7 +497,7 @@ input[type="checkbox"].sheet-selcheck:checked ~ div.sheet-dispdegmod{
display: inline-block;
}
/* ===== Sélection Check ===== */
input[type="checkbox"].sheet-selcheck{
input[type="checkbox"].sheet-selcheck {
width: 20px;
height: 20px;
max-width: 20px;
@@ -365,6 +505,9 @@ input[type="checkbox"].sheet-selcheck{
z-index: 2;
margin: 0;
}
input[type="checkbox"].sheet-selcheck.sheet-hidden {
display: none;
}
input[type="checkbox"].sheet-selcheck + span{
display: inline-block;
text-align: center;
@@ -376,16 +519,16 @@ input[type="checkbox"].sheet-selcheck + span{
height: 20px;
z-index: 1;
font-family: pictos;
color: #DDB29B; /* #EFBAC1; */
color: #DDB29B;
font-size: 20px;
line-height: 20px;
}
input[type="checkbox"].sheet-selcheck:hover + span{
color: #DE6928; /* #ADDDAD; */
color: #DE6928;
}
input[type="checkbox"].sheet-selcheck:checked + span{
font-weight: bold;
color: #700200; /* #557F55; */
color: #490403;
}
/* ==== Action ==== */
div.sheet-action {
@@ -393,24 +536,29 @@ div.sheet-action {
padding: 0;
margin: 0;
padding: 2px 0px 2px 0px;
border-bottom : 1px dashed #3D2923;
}
button[type="roll"].sheet-btAction {
width: 20px;
margin: 0px 1px 0px 1px;
font-size: 20px;
}
div.sheet-actionligne{
display: block;
width: 100%;
border-bottom : 1px dashed #160101;
}
span.sheet-action {
min-width: 60px;
white-space: nowrap;
display: inline-block;
text-align: right;
color: gray;
font-style: italic;
color: #690805;
font-size: 1.1em;
margin-right: 2px;
}
div.sheet-actionligne {
display: flex;
align-items: baseline;
}
div.sheet-actionligne span {
white-space: nowrap;
color: #690805;
font-size: 1.1em;
margin: 0px 2px 0px 2px;
}
div.sheet-actionligne span.sheet-action {
margin: 0px 2px 0px 0px;
}
select.sheet-action{
padding: 0;
@@ -422,16 +570,20 @@ input[type=number].sheet-action{
width: 35px;
}
input[type="text"].sheet-actionname {
font-weight: bold;
width: 460px;
height: 25px;
font-size: 14px;
font-size: 1em;
}
textarea.sheet-actiondesc {
resize: vertical;
width: 450px;
display: inline-block;
}
input[type="text"].sheet-degmod {
padding: 2px;
width: 5em;
text-align: center;
}
/* ===== Onglets ===== */
div.sheet-onglbase,
div.sheet-onglspecial,
@@ -444,8 +596,8 @@ div.sheet-onglrecrue{
width: 100%;
text-align: left;
vertical-align: middle;
margin: 1px 0px 1px 0px;
border: 1px solid #3D2923;
margin: -1px 0px 1px 0px;
border: 1px solid #160101;
padding: 3px;
z-index: 0;
min-height: 250px;
@@ -476,24 +628,18 @@ input[type="radio"].sheet-onglnote + span,
input[type="radio"].sheet-onglrecrue + span{
color: #666666;
background-color: #BBBBBB;
font-size:15px;
text-align:center;
display: inline-block;
width: 85px;
height: 20px;
margin: 0;
margin-left: -85px;
margin-right: -4px;
padding:0;
margin-bottom: -2px;
padding-top: 5px;
font-size: 0.9em;
font-size: 1.1em;
border-style: solid;
border-width: 1px;
border-left-color: #666666;
border-top-color: #666666;
border-right-color: #666666;
border-bottom-color: #3D2923;
border-bottom-color: #160101;
border-top-left-radius: 0px;
border-top-right-radius: 15px;
z-index: 1;
@@ -505,15 +651,12 @@ input[type="radio"].sheet-onglavance:checked + span,
input[type="radio"].sheet-onglsort:checked + span,
input[type="radio"].sheet-onglnote:checked + span,
input[type="radio"].sheet-onglrecrue:checked + span{
font-weight: bold;
/* color: #3D2923;
background-color: white; */
color: white;
background: linear-gradient(to top left, #3D2923 40%, #700200, #DE6928);
border-left-color: #3D2923;
border-top-color: #3D2923;
border-right-color: #3D2923;
border-bottom-color: #3D2923;
background: linear-gradient(to top left, #160101 40%, #700200, #DE6928);
border-left-color: #160101;
border-top-color: #160101;
border-right-color: #160101;
border-bottom-color: #160101;
}
input[type="radio"].sheet-onglbase:checked ~ div.sheet-onglbase{
display: block;
@@ -583,98 +726,84 @@ input[type="radio"].sheet-voleur:checked ~ div.sheet-voleur {
padding: 0;
}
/* ==== TEMPLATES ==== */
.sheet-rolltemplate-jet table{
.sheet-rolltemplate-jet {
font-size: 1em;
}
.sheet-rolltemplate-jet .sheet-tpl-main{
background: white;
border: 1px solid #3D2923;
border-radius: 6px;
width: 100%;
padding: 2px;
font-family: 'Verdana';
color: #3D2923;
font-size: 0.9em;
font-family: Roboto;
color: #160101;
box-shadow: 10px 6px 6px #666666;
margin-bottom: 5px;
margin-left: -5px;
}
.sheet-rolltemplate-jet tr{
padding-top: 2px;
padding-bottom: 2px;
padding-right: 0px;
padding-left: 0px;
}
.sheet-rolltemplate-jet th{
padding: 3px;
font-size: 1.1em;
.sheet-rolltemplate-jet .sheet-tpl-pc {
text-align: center;
font-family: 'Contrail One';
font-family: Balthazar;
font-size: 1.25em;
padding: 0.15em;
}
.sheet-rolltemplate-jet .sheet-tpl-title{
font-size: 1.3em;
text-align: center;
font-family: Balthazar;
color: white;
/* background: #3D2923; */
background: linear-gradient(to right, #3D2923 40%, #700200, #DE6928);
background: linear-gradient(to right, #160101 40%, #700200, #DE6928);
font-weight: normal;
padding: 0.3em;
}
.sheet-rolltemplate-jet td{
padding: 2px;
text-align: left;
.sheet-rolltemplate-jet div.sheet-tpl-line {
display: flex;
align-items: baseline;
justify-content: flex-start;
padding-top: 0.1em;
padding-right: 0.2em;
padding-bottom: 0.1em;
padding-left: 0.2em;
}
.sheet-rolltemplate-jet td.sheet-tcat{
color: #3D2923;
font-style: italic;
.sheet-rolltemplate-jet .sheet-tpl-label {
color: #690805;
font-family: Balthazar;
font-size: 1.25em;
text-align: right;
border-right: 1px dashed #3D2923;
min-width: 25%;
padding-right: 0.2em;
}
.sheet-rolltemplate-jet .sheet-subheader{
font-style: italic;
text-align: right;
border-bottom: 1px dashed #3D2923;
color: #3D2923;
}
.sheet-rolltemplate-jet .sheet-desctitre{
font-style: italic;
text-align: right;
border-bottom: 1px dashed #3D2923;
border-top: 1px solid #3D2923;
color: #3D2923;
}
.sheet-rolltemplate-jet div.sheet-jetdesc{
font-family: 'Verdana', serif;
font-size: 0.9em;
.sheet-rolltemplate-jet div.sheet-jetdesc {
font-family: Roboto;
max-height: 140px;
overflow-y: auto;
padding: 0.2em;
}
.sheet-rolltemplate-jet .inlinerollresult{
font-size: 1em;
.sheet-rolltemplate-jet .inlinerollresult,
.sheet-rolltemplate-jet .inlinerollresult.fullcrit,
.sheet-rolltemplate-jet .inlinerollresult.fullfail,
.sheet-rolltemplate-jet .inlinerollresult.importantroll {
font-size: 1.2em;
background-color: transparent;
border-width: 0px 0px 0px 0px;
border-top-style: none;
border-right-style: none;
border-left-style: none;
border-bottom-style: none;
border: none;
}
.sheet-rolltemplate-jet .inlinerollresult.fullcrit{
color: #3FB315;
font-size: 1em;
background-color: transparent;
border-width: 0px 0px 0px 0px;
border-top-style: none;
border-right-style: none;
border-left-style: none;
border-bottom-style: none;
.sheet-rolltemplate-jet .sheet-success,
.sheet-rolltemplate-jet .sheet-success .inlinerollresult {
color: darkgreen;
}
.sheet-rolltemplate-jet .inlinerollresult.fullfail{
.sheet-rolltemplate-jet .sheet-partial,
.sheet-rolltemplate-jet .sheet-partial .inlinerollresult {
color: #160101;
}
.sheet-rolltemplate-jet .sheet-failure,
.sheet-rolltemplate-jet .sheet-failure .inlinerollresult {
color: #B31515;
font-size: 1em;
background-color: transparent;
border-width: 0px 0px 0px 0px;
border-top-style: none;
border-right-style: none;
border-left-style: none;
border-bottom-style: none;
}
.sheet-rolltemplate-jet .inlinerollresult.importantroll{
color: #4A57ED;
font-size: 1em;
background-color: transparent;
border-width: 0px 0px 0px 0px;
border-top-style: none;
border-right-style: none;
border-left-style: none;
border-bottom-style: none;
.sheet-rolltemplate-jet .sheet-damage .inlinerollresult.fullcrit {
color: darkgreen;
}
.sheet-rolltemplate-jet .sheet-damage .inlinerollresult.fullfail {
color: #B31515;
}
.sheet-rolltemplate-jet .sheet-damage .inlinerollresult.importantroll {
color: darkblue;
}
/* ===== REPEATING SECTIONS CTRL ===== */
@@ -695,9 +824,9 @@ input[type="radio"].sheet-voleur:checked ~ div.sheet-voleur {
.repcontrol .repcontrol_add:before,
.repcontrol .repcontrol_edit:after {
font-family: pictos;
color: #700200;
color: #490403;
display: inline-block;
border: 1px solid #700200;
border: 1px solid #490403;
border-radius: 50%;
font-size: 14px;
padding: 2px;
@@ -736,4 +865,4 @@ input[type="radio"].sheet-voleur:checked ~ div.sheet-voleur {
padding: 0px;
height: 18px;
width: 18px;
}
}
File diff suppressed because it is too large Load Diff
+1 -1
View File
@@ -1,5 +1,5 @@
{
"html": "dwfr.htm",
"html": "dwfr.html",
"css": "dwfr.css",
"authors": "Natha",
"roll20userid": "75857",