personalisation du pane: corection du plugin de font personalisé
All checks were successful
Deploy / Deploy to Production (push) Successful in 9s
All checks were successful
Deploy / Deploy to Production (push) Successful in 9s
This commit is contained in:
parent
226f7d667b
commit
a66d399cfb
5 changed files with 77 additions and 10 deletions
BIN
site/plugins/custom-marks/fonts/PixelifySans-Regular.ttf
Normal file
BIN
site/plugins/custom-marks/fonts/PixelifySans-Regular.ttf
Normal file
Binary file not shown.
|
|
@ -1,4 +1,19 @@
|
|||
/* Styles pour les marks personnalisés dans le panel Kirby */
|
||||
@font-face {
|
||||
font-family: 'Terminal Grotesque';
|
||||
src: url('/assets/css/fonts/terminal-grotesque.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Pixelify Sans';
|
||||
src: url('/assets/css/fonts/PixelifySans-Regular.ttf') format('truetype');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
|
||||
/* Mark Green - Couleur verte */
|
||||
.k-writer span.green {
|
||||
|
|
@ -7,12 +22,6 @@
|
|||
|
||||
/* Mark Pixel - Typo serif (placeholder pour future typo pixel) */
|
||||
.k-writer span.pixel {
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
}
|
||||
|
||||
/* Combinaison des deux marks */
|
||||
.k-writer span.green.pixel,
|
||||
.k-writer span.pixel.green {
|
||||
color: #04fea0;
|
||||
font-family: Georgia, "Times New Roman", serif;
|
||||
}
|
||||
font-family: 'Pixelify Sans', serif;
|
||||
font-size: 1.15em;
|
||||
}
|
||||
|
|
@ -1,4 +1,7 @@
|
|||
panel.plugin("custom/marks", {
|
||||
icons: {
|
||||
pixel: '<svg width="100%" height="100%" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><path d="M5.491,21l0,-12.933l2.548,-0l-0,-2.52l2.519,0l0,-2.547l2.856,-0l-0,2.547l2.519,0l0,2.52l2.576,-0l-0,12.933l-2.856,0l0,-5.067l-7.334,0l-0,5.067l-2.828,0Zm2.828,-7.894l7.334,-0l0,-4.759l-2.519,-0l-0,-2.52l-2.296,0l0,2.52l-2.519,-0l-0,4.759Z" style="fill-rule:nonzero;"/></svg>'
|
||||
},
|
||||
writerMarks: {
|
||||
green: {
|
||||
button: {
|
||||
|
|
@ -16,7 +19,7 @@ panel.plugin("custom/marks", {
|
|||
},
|
||||
pixel: {
|
||||
button: {
|
||||
icon: "grid-full",
|
||||
icon: "pixel",
|
||||
label: "Pixel"
|
||||
},
|
||||
commands() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue