No notes defined.
<div class="sds-tableInputs">
<table>
<thead>
<th></th>
<th>
<div class="sds-label -form">
Currency
</div>
</th>
<th>
<div class="sds-label -form">
Capital
</div>
</th>
<th>
<div class="sds-label -form">
Revenue
</div>
</th>
<th>
<div class="sds-label -form">
Total Balance Sheet
</div>
</th>
</thead>
<tbody>
<tr>
<th>
<h4 class="sds-tableInputs__rowTitle h4">N-1</h4>
<div class="sds-label sds-tableInputs__rowTitleLabel">
N-1
</div>
</th>
<td>
<div class="sds-tableInputs__select">
<div class="form-group">
<label for="currency-row-1" class="sds-label -form sds-tableInputs__cellLabel">
Currency
</label>
<div class="sds-select">
<select id="currency-row-1" class="sds-select form-control">
<option value="opt-0">EUR</option>
<option value="opt-1">YEN</option>
<option value="opt-2">KRN</option>
</select>
<span class="sds-select__arrow sds-icon sds-icon-chevrondown" aria-hidden="true"></span>
</div>
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="capital-row-1" class="sds-label -form sds-tableInputs__cellLabel">
Capital
</label>
<div class="sds-input">
<input id="capital-row-1" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="revenue-row-1" class="sds-label -form sds-tableInputs__cellLabel">
Revenue
</label>
<div class="sds-input">
<input id="revenue-row-1" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="tbs-row-1" class="sds-label -form sds-tableInputs__cellLabel">
Total Balance Sheet
</label>
<div class="sds-input">
<input id="tbs-row-1" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
</tr>
<tr>
<th>
<h4 class="sds-tableInputs__rowTitle h4">N-2</h4>
<div class="sds-label sds-tableInputs__rowTitleLabel">
N-2
</div>
</th>
<td>
<div class="sds-tableInputs__select">
<div class="form-group">
<label for="currency-row-2" class="sds-label -form sds-tableInputs__cellLabel">
Currency
</label>
<div class="sds-select">
<select id="currency-row-2" class="sds-select form-control">
<option value="opt-0">EUR</option>
<option value="opt-1">YEN</option>
<option value="opt-2">KRN</option>
</select>
<span class="sds-select__arrow sds-icon sds-icon-chevrondown" aria-hidden="true"></span>
</div>
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="capital-row-2" class="sds-label -form sds-tableInputs__cellLabel">
Capital
</label>
<div class="sds-input">
<input id="capital-row-2" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="revenue-row-2" class="sds-label -form sds-tableInputs__cellLabel">
Revenue
</label>
<div class="sds-input">
<input id="revenue-row-2" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="tbs-row-2" class="sds-label -form sds-tableInputs__cellLabel">
Total Balance Sheet
</label>
<div class="sds-input">
<input id="tbs-row-2" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
</tr>
<tr>
<th>
<h4 class="sds-tableInputs__rowTitle h4">N-3</h4>
<div class="sds-label sds-tableInputs__rowTitleLabel">
N-3
</div>
</th>
<td>
<div class="sds-tableInputs__select">
<div class="form-group">
<label for="currency-row-3" class="sds-label -form sds-tableInputs__cellLabel">
Currency
</label>
<div class="sds-select">
<select id="currency-row-3" class="sds-select form-control">
<option value="opt-0">EUR</option>
<option value="opt-1">YEN</option>
<option value="opt-2">KRN</option>
</select>
<span class="sds-select__arrow sds-icon sds-icon-chevrondown" aria-hidden="true"></span>
</div>
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="capital-row-3" class="sds-label -form sds-tableInputs__cellLabel">
Capital
</label>
<div class="sds-input">
<input id="capital-row-3" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="revenue-row-3" class="sds-label -form sds-tableInputs__cellLabel">
Revenue
</label>
<div class="sds-input">
<input id="revenue-row-3" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
<td>
<div class="form-group">
<label for="tbs-row-3" class="sds-label -form sds-tableInputs__cellLabel">
Total Balance Sheet
</label>
<div class="sds-input">
<input id="tbs-row-3" class="sds-input form-control" type="text" placeholder="{placeholder}" value="">
</div>
</div>
</td>
</tr>
</tbody>
</table>
</div>
<div class="{{ namespace }}tableInputs{% for mod in modifiers %} {{ mod }}{% endfor %}{% for mod in classes %} {{ mod }}{% endfor %}">
<table>
<thead>
<th></th>
<th>{% render "@label--form",{eltType: "div", text: "Currency"},true %}</th>
<th>{% render "@label--form",{eltType: "div", text: "Capital"},true %}</th>
<th>{% render "@label--form",{eltType: "div", text: "Revenue"},true %}</th>
<th>{% render "@label--form",{eltType: "div", text: "Total Balance Sheet"},true %}</th>
{% if actions %}
<th></th>
{% endif %}
</thead>
<tbody>
<tr>
<th>
<h4 class="{{ namespace }}tableInputs__rowTitle h4">N-1</h4>
{% render "@label",{
eltType: "div",
text: "N-1",
classes: [namespace + "tableInputs__rowTitleLabel"]
},true %}
</th>
<td>
<div class="{{ namespace }}tableInputs__select">
<div class="form-group">
{% render "@label--form",{
text: "Currency",
labelFor: "currency-row-1",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@select",{options: options, id: "currency-row-1"},true %}
</div>
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Capital",
labelFor: "capital-row-1",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "capital-row-1",
placeholder: "{placeholder}"
},true %}
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Revenue",
labelFor: "revenue-row-1",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "revenue-row-1",
placeholder: "{placeholder}"
},true %}
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Total Balance Sheet",
labelFor: "tbs-row-1",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "tbs-row-1",
placeholder: "{placeholder}"
},true %}
</div>
</td>
{% if actions %}
<td>
<div class="{{ namespace }}tableInputs__rowAction">
{% render "@icon-btn-secondary",{
icon: "icon-trash",
action: "Supprimer la rangée"
},true %}
</div>
</td>
{% endif %}
</tr>
<tr>
<th>
<h4 class="{{ namespace }}tableInputs__rowTitle h4">N-2</h4>
{% render "@label",{
eltType: "div",
text: "N-2",
classes: [namespace + "tableInputs__rowTitleLabel"]
},true %}
</th>
<td>
<div class="{{ namespace }}tableInputs__select">
<div class="form-group">
{% render "@label--form",{
text: "Currency",
labelFor: "currency-row-2",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@select",{options: options, id: "currency-row-2"},true %}
</div>
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Capital",
labelFor: "capital-row-2",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "capital-row-2",
placeholder: "{placeholder}"
},true %}
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Revenue",
labelFor: "revenue-row-2",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "revenue-row-2",
placeholder: "{placeholder}"
},true %}
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Total Balance Sheet",
labelFor: "tbs-row-2",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "tbs-row-2",
placeholder: "{placeholder}"
},true %}
</div>
</td>
{% if actions %}
<td>
<div class="{{ namespace }}tableInputs__rowAction">
{% render "@icon-btn-secondary",{
icon: "icon-trash",
action: "Supprimer la rangée"
},true %}
</div>
</td>
{% endif %}
</tr>
<tr>
<th>
<h4 class="{{ namespace }}tableInputs__rowTitle h4">N-3</h4>
{% render "@label",{
eltType: "div",
text: "N-3",
classes: [namespace + "tableInputs__rowTitleLabel"]
},true %}
</th>
<td>
<div class="{{ namespace }}tableInputs__select">
<div class="form-group">
{% render "@label--form",{
text: "Currency",
labelFor: "currency-row-3",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@select",{options: options, id: "currency-row-3"},true %}
</div>
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Capital",
labelFor: "capital-row-3",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "capital-row-3",
placeholder: "{placeholder}"
},true %}
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Revenue",
labelFor: "revenue-row-3",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "revenue-row-3",
placeholder: "{placeholder}"
},true %}
</div>
</td>
<td>
<div class="form-group">
{% render "@label--form",{
text: "Total Balance Sheet",
labelFor: "tbs-row-3",
classes: [namespace + "tableInputs__cellLabel"]
},true %}
{% render "@input",{
id: "tbs-row-3",
placeholder: "{placeholder}"
},true %}
</div>
</td>
{% if actions %}
<td>
<div class="{{ namespace }}tableInputs__rowAction">
{% render "@icon-btn-secondary",{
icon: "icon-trash",
action: "Supprimer la rangée"
},true %}
</div>
</td>
{% endif %}
</tr>
</tbody>
</table>
{% if actions %}
<div class="{{ namespace }}tableInputs__add">
{% render "@btn-secondary--icon-right",{
text: "Ajouter entrée",
icon: "icon-plus"
},true %}
</div>
{% endif %}
</div>
/* variables specific to current element */
$element-specific-variables: "";
.#{$namespace}tableInputs {
/* Save root element context for easy access if nesting is needed */
$self: &;
/* properties of current element + media queries */
/* Pseudo Elements */
&::before {
}
&::after {
}
/*
Include elements that are linked to the current element but have to reside at the root level of the stylesheet
(e.g: keyframes)
*/
@at-root {
}
/* children - write selector in full in comments in order to facilitate search */
@include media-breakpoint-between(xs,md) {
THEAD {
@include sr-only();
}
TABLE {
width: 100%;
}
TR,
TH,
TD {
display: block;
width: 100%;
}
TR TD:last-of-type {
padding-bottom: map-deep-get($token-spacer-stack-max-map, "xl");
}
}
TR {
position: relative;
}
TBODY TR TH:first-of-type {
@include media-breakpoint-up(lg) {
padding-left: 0;
}
}
TH,
TD {
padding-bottom: map-deep-get($token-spacer-stack-max-map, "md");
@include media-breakpoint-up(lg) {
padding-bottom: map-deep-get($token-spacer-stack-max-map, "lg");
padding-left: map-deep-get($token-spacer-stack-max-map, "lg");
}
}
&__rowTitle {
@include media-breakpoint-up(lg) {
display: none;
}
}
&__rowTitleLabel {
display: none;
@include media-breakpoint-up(lg) {
display: block;
}
}
&__rowAction {
position: absolute;
top: 0;
right: 0;
}
&__cellLabel {
@include media-breakpoint-up(lg) {
@include sr-only();
}
}
// tableInputs__select
&__select {
// follows same logic as parent
min-width: map-deep-get($token-sizes-unit-map, "80");
}
/* modifiers */
// tableInputs -hasActions
&.-hasActions {
// follows same logic as base element
TR {
padding-top: map-deep-get($token-spacer-inset-map, "sm");
@include media-breakpoint-up("lg") {
padding-top: 0;
}
}
TD:last-of-type {
@include media-breakpoint-between(xs,md) {
padding-bottom: 0;
}
}
#{$self}__rowAction {
@include media-breakpoint-up("lg") {
position: static;
}
}
}
/* random parent element */
/*
*
* Syntax : .randomParentElt & {}
*
*/
/* Pseudo Classes */
&:hover {
@media (hover: hover) {
}
}
&:focus {
}
&:active {
}
&:focus,
&:active {
}
}