-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(tile): ajout des tuiles vertical@md et vertical@lg
- Loading branch information
Showing
14 changed files
with
162 additions
and
84 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
<% const sample = getSample(include); %> | ||
|
||
<%- sample('Tuile verticale avec badge dans le contenu', './tile-default', { tile : { pictogram: true, content: { badge: true } }}, true, './tile-layout', {col: {md:4}}); %> | ||
<%- sample('Tuile verticale avec badge dans le contenu', './tile-default', { tile : { pictogram: true, content: { badge: true, description: true } }}, true, './tile-layout', {col: {md:4}}); %> | ||
|
||
<%- sample('Tuile verticale avec tag dans le contenu', './tile-default', { tile : { pictogram: true, content: { tag: true } }}, true, './tile-layout', {col: {md:4}}); %> | ||
<%- sample('Tuile verticale avec tag dans le contenu', './tile-default', { tile : { pictogram: true, content: { tag: true, description: true } }}, true, './tile-layout', {col: {md:4}}); %> | ||
|
||
<%- sample('Tuile verticale avec détail', './tile-default', { tile : { pictogram: true, content: { details: true } }}, true, './tile-layout', {col: {md:4}}); %> | ||
|
||
<%- sample('Tuile verticale sm avec détails et badge', './tile-default', { tile : { pictogram: true, size: 'sm', content: { badge: true, details: true } }}, true, './tile-layout', {col: {md:3}}); %> | ||
<%- sample('Tuile verticale sm avec détails et badge', './tile-default', { tile : { pictogram: true, size: 'sm', content: { badge: true, details: true, description: true } }}, true, './tile-layout', {col: {md:3}}); %> | ||
|
||
<%- sample('Tuile verticale sm avec détails et tag', './tile-default', { tile : { pictogram: true, size: 'sm', content: { tag: true, details: true } }}, true, './tile-layout', {col: {md:3}}); %> | ||
<%- sample('Tuile verticale sm avec détails et tag', './tile-default', { tile : { pictogram: true, size: 'sm', content: { tag: true, details: true, description: true } }}, true, './tile-layout', {col: {md:3}}); %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<% const sample = getSample(include); %> | ||
|
||
<%- sample('Tuile sans image', './tile-default', {tile: {content: {details: true}}}, true, './tile-layout', {col: {md:4}}); %> | ||
<%- sample('Tuile sans image', './tile-default', {}, true, './tile-layout', {col: {md:4}}); %> | ||
|
||
<%- sample('Tuile titre et description', './tile-default', {}, true, './tile-layout', {col: {md:4}}); %> | ||
<%- sample('Tuile titre et description', './tile-default', {content: {description: true}}, true, './tile-layout', {col: {md:4}}); %> | ||
|
||
<%- sample('Tuile titre et détails', './tile-default', {tile: {content: { description: undefined, details: true}}}, true, './tile-layout', {col: {md:4}}); %> | ||
<%- sample('Tuile titre et détails', './tile-default', {tile: {content: {details: true}}}, true, './tile-layout', {col: {md:4}}); %> | ||
|
||
<%- sample('Tuile titre seul', './tile-default', {tile: {content: { description: undefined}}}, true, './tile-layout', {col: {md:4}}); %> | ||
<%- sample('Tuile sans image full contenu', './tile-default', {tile: {content: {description:true, badge: true, details: true}}}, true, './tile-layout', {col: {md:4}}); %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
<% const sample = getSample(include); %> | ||
|
||
<%- sample('tuile verticale md, taille par défaut', './tile-default', { tile : { pictogram: true }}, true, './tile-layout', {col: {start: 9, md:4}, desc: 'dans une grille sur 4 à 6 colonnes en version desktop'}); %> | ||
<%- sample('tuile verticale md, taille par défaut', './tile-default', { tile : { pictogram: true, content: {details: true, description: true} }}, true, './tile-layout', {col: {start: 9, md:4}, desc: 'dans une grille sur 4 à 6 colonnes en version desktop'}); %> | ||
|
||
<%- sample('tuile taille sm', './tile-default', { tile: { pictogram: true, size: 'sm' }}, true, './tile-layout', {col: {start: 6, md:3}, desc: 'dans une grille sur 3 à 4 colonnes en version desktop'}); %> | ||
<%- sample('tuile taille sm', './tile-default', { tile: { pictogram: true, size: 'sm', content: {details: true, description: true} }}, true, './tile-layout', {col: {start: 6, md:3}, desc: 'dans une grille sur 3 à 4 colonnes en version desktop'}); %> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,4 @@ | |
//// | ||
|
||
@import '../../core/index'; | ||
@import 'style/tool'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,84 @@ | ||
//// | ||
/// Tag Tool | ||
/// @group tag | ||
//// | ||
|
||
@use 'module/color'; | ||
@use 'module/spacing'; | ||
|
||
@mixin build-tile-horizontal() { | ||
flex-direction: row; | ||
align-items: flex-start; | ||
text-align: left; | ||
|
||
#{ns(tile__header)} { | ||
@include margin-right(8v); | ||
@include margin-bottom(0); | ||
} | ||
|
||
#{ns(tile__pictogram)} { | ||
@include size(16v, 16v); | ||
} | ||
|
||
#{ns(tile__content)} { | ||
align-items: flex-start; | ||
} | ||
|
||
&:not(#{ns(tile--no-icon)}) { | ||
#{ns(tile__detail)} { | ||
@include padding-right(8v); | ||
@include margin-bottom(-10v); | ||
@include margin-top(5v); | ||
} | ||
|
||
#{ns(tile__content)} { | ||
@include padding-bottom(10v); | ||
} | ||
|
||
&#{ns(tile--sm)} { | ||
#{ns(tile__detail)} { | ||
@include padding-right(8v); | ||
@include margin-bottom(-8v); | ||
@include margin-top(3v); | ||
} | ||
|
||
#{ns(tile__content)} { | ||
@include padding-bottom(8v); | ||
} | ||
} | ||
} | ||
} | ||
|
||
@mixin build-tile-vertical() { | ||
flex-direction: column; | ||
text-align: center; | ||
align-items: center; | ||
|
||
#{ns(tile__header)} { | ||
@include margin-bottom(4v); | ||
@include margin-right(0 !important); | ||
} | ||
|
||
#{ns(tile__pictogram)} { | ||
@include size(20v, 20v); | ||
} | ||
|
||
#{ns(tile__content)} { | ||
align-items: center; | ||
} | ||
|
||
#{ns(tile__detail)} { | ||
@include margin-top(3v); | ||
} | ||
|
||
&#{ns(enlarge-link)}:not(#{ns(tile--no-icon)}) { | ||
#{ns(tile__content)} { | ||
@include padding-bottom(10v); | ||
} | ||
|
||
#{ns(tile__detail)} { | ||
@include margin-bottom(0); | ||
@include padding-right(0); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters