diff --git a/README-property-inspector.png b/README-property-inspector.png index 85150c8..63e6b3b 100644 Binary files a/README-property-inspector.png and b/README-property-inspector.png differ diff --git a/README.md b/README.md index 71078ed..ec07cf5 100644 --- a/README.md +++ b/README.md @@ -14,11 +14,11 @@ JupyterLab extension to ### available tags: -- `gridwidth-12` (50%) -- `gridwidth-13` (~33%) `gridwidth-23` (~66%) -- `gridwidth-14` `gridwidth-24`, `gridwidth-34` -- `gridwidth-15` `gridwidth-25`, `gridwidth-35`, `gridwidth-45` -- `gridwidth-16` `gridwidth-26`, `gridwidth-36`, `gridwidth-46`, `gridwidth-56` +- `gridwidth-1-2` (50%) +- `gridwidth-1-3` (~33%) `gridwidth-2-3` (~66%) +- `gridwidth-1-4` `gridwidth-2-4`, `gridwidth-3-4` +- `gridwidth-1-5` `gridwidth-2-5`, `gridwidth-3-5`, `gridwidth-4-5` +- `gridwidth-1-6` `gridwidth-2-6`, `gridwidth-3-6`, `gridwidth-4-6`, `gridwidth-5-6` ### palette commands diff --git a/examples/gridwidth.ipynb b/examples/gridwidth.ipynb index a6c58c0..05cc5dd 100644 --- a/examples/gridwidth.ipynb +++ b/examples/gridwidth.ipynb @@ -3,7 +3,13 @@ { "cell_type": "markdown", "id": "172a761d-2abd-4eb3-91f3-def1e740188c", - "metadata": {}, + "metadata": { + "editable": true, + "slideshow": { + "slide_type": "" + }, + "tags": [] + }, "source": [ "# porting split-cell" ] @@ -32,7 +38,7 @@ "\n", "to convert: on all cells, in its metadata:\n", "* if there's no `cell_style` key: continue to next cell\n", - "* if `cell_style` == split: add tag 'gridwidth-12'\n", + "* if `cell_style` == split: add tag 'gridwidth-1-2'\n", "* delete `metadata.cell_style`" ] }, @@ -43,13 +49,13 @@ "source": [ "supported tags: \n", "\n", - "- `gridwidth-12` (50%)\n", - "- `gridwidth-13` (~33%) `gridwidth-23` (~66%)\n", - "- `gridwidth-14` `gridwidth-24`, `gridwidth-34`\n", - "- `gridwidth-15` `gridwidth-25`, `gridwidth-35`, `gridwidth-45`\n", - "- `gridwidth-16` `gridwidth-26`, `gridwidth-36`, `gridwidth-46`, `gridwidth-56`\n", + "- `gridwidth-1-2` (50%)\n", + "- `gridwidth-1-3` (~33%) `gridwidth-2-3` (~66%)\n", + "- `gridwidth-1-4` `gridwidth-2-4`, `gridwidth-3-4`\n", + "- `gridwidth-1-5` `gridwidth-2-5`, `gridwidth-3-5`, `gridwidth-4-5`\n", + "- `gridwidth-1-6` `gridwidth-2-6`, `gridwidth-3-6`, `gridwidth-4-6`, `gridwidth-5-6`\n", "\n", - "associated keyboard shortcuts are e.g. `Control-\\ Control-2 Control-3` to use `gridwidth-23`" + "associated keyboard shortcuts are e.g. `Control-\\ Control-2 Control-3` to use `gridwidth-2-3`" ] }, { @@ -70,12 +76,12 @@ "slide_type": "" }, "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "outputs": [], "source": [ - "# gridwidth-12 code\n", + "# gridwidth-1-2 code\n", "def hi():\n", " print(\"hello\")" ] @@ -90,7 +96,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "outputs": [ @@ -103,7 +109,7 @@ } ], "source": [ - "# gridwidth-12 code\n", + "# gridwidth-1-2 code\n", "hi()" ] }, @@ -116,11 +122,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "source": [ - "text cell gridwidth 12\n", + "text cell gridwidth 1/2\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32." @@ -135,11 +141,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "source": [ - "text cell gridwidth 12\n", + "text cell gridwidth 2/2\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32." @@ -163,7 +169,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-13" + "gridwidth-1-3" ] }, "outputs": [ @@ -176,7 +182,7 @@ } ], "source": [ - "# gridwidth-13 code\n", + "# gridwidth-1-3 code\n", "hi()" ] }, @@ -190,7 +196,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-13" + "gridwidth-1-3" ] }, "outputs": [ @@ -203,7 +209,7 @@ } ], "source": [ - "# gridwidth-13 code\n", + "# gridwidth-1-3 code\n", "hi()" ] }, @@ -217,7 +223,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-13" + "gridwidth-1-3" ] }, "outputs": [ @@ -230,7 +236,7 @@ } ], "source": [ - "# gridwidth-13 code\n", + "# gridwidth-1-3 code\n", "hi()" ] }, @@ -243,11 +249,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-13" + "gridwidth-1-3" ] }, "source": [ - "text cell gridwidth 13\n", + "text cell gridwidth 1/3\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32." @@ -262,11 +268,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-3" ] }, "source": [ - "text cell gridwidth 13\n", + "text cell gridwidth 2/3\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32." @@ -281,11 +287,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-13" + "gridwidth-1-3" ] }, "source": [ - "text cell gridwidth 13\n", + "text cell gridwidth 3/3\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature, discovered the undoubtable source. Lorem Ipsum comes from sections 1.10.32 and 1.10.33 of \"de Finibus Bonorum et Malorum\" (The Extremes of Good and Evil) by Cicero, written in 45 BC. This book is a treatise on the theory of ethics, very popular during the Renaissance. The first line of Lorem Ipsum, \"Lorem ipsum dolor sit amet..\", comes from a line in section 1.10.32." @@ -309,7 +315,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "outputs": [ @@ -322,7 +328,7 @@ } ], "source": [ - "# gridwidth-14 code\n", + "# gridwidth-1-4 code\n", "hi()" ] }, @@ -336,7 +342,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "outputs": [ @@ -349,7 +355,7 @@ } ], "source": [ - "# gridwidth-14 code\n", + "# gridwidth-1-4 code\n", "hi()" ] }, @@ -363,7 +369,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "outputs": [ @@ -376,7 +382,7 @@ } ], "source": [ - "# gridwidth-14 code\n", + "# gridwidth-1-4 code\n", "hi()" ] }, @@ -390,7 +396,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "outputs": [ @@ -403,7 +409,7 @@ } ], "source": [ - "# gridwidth-14 code\n", + "# gridwidth-1-4 code\n", "hi()" ] }, @@ -416,11 +422,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "source": [ - "text cell gridwidth 14\n", + "text cell gridwidth 1/4\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature" @@ -435,11 +441,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "source": [ - "text cell gridwidth 14\n", + "text cell gridwidth 2/4\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature" @@ -454,11 +460,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "source": [ - "text cell gridwidth 14\n", + "text cell gridwidth 3/4\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature" @@ -473,11 +479,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "source": [ - "text cell gridwidth 14\n", + "text cell gridwidth 4/4\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC, making it over 2000 years old. Richard McClintock, a Latin professor at Hampden-Sydney College in Virginia, looked up one of the more obscure Latin words, consectetur, from a Lorem Ipsum passage, and going through the cites of the word in classical literature" @@ -501,7 +507,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "outputs": [ @@ -514,7 +520,7 @@ } ], "source": [ - "# gridwidth-15 code\n", + "# gridwidth-1-5 code\n", "hi()" ] }, @@ -528,7 +534,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "outputs": [ @@ -541,7 +547,7 @@ } ], "source": [ - "# gridwidth-15 code\n", + "# gridwidth-1-5 code\n", "hi()" ] }, @@ -555,7 +561,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "outputs": [ @@ -568,7 +574,7 @@ } ], "source": [ - "# gridwidth-15 code\n", + "# gridwidth-1-5 code\n", "hi()" ] }, @@ -582,7 +588,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "outputs": [ @@ -595,7 +601,7 @@ } ], "source": [ - "# gridwidth-15 code\n", + "# gridwidth-1-5 code\n", "hi()" ] }, @@ -609,7 +615,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "outputs": [ @@ -622,7 +628,7 @@ } ], "source": [ - "# gridwidth-15 code\n", + "# gridwidth-1-5 code\n", "hi()" ] }, @@ -635,11 +641,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "source": [ - "text cell gridwidth 15\n", + "text cell gridwidth 1/5\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC" @@ -654,11 +660,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "source": [ - "text cell gridwidth 15\n", + "text cell gridwidth 2/5\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC" @@ -673,11 +679,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "source": [ - "text cell gridwidth 15\n", + "text cell gridwidth 3/5\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC" @@ -692,11 +698,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "source": [ - "text cell gridwidth 15\n", + "text cell gridwidth 4/5\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC" @@ -711,11 +717,11 @@ "slide_type": "" }, "tags": [ - "gridwidth-15" + "gridwidth-1-5" ] }, "source": [ - "text cell gridwidth 15\n", + "text cell gridwidth 5/5\n", "\n", "Where does it come from ?\n", "Contrary to popular belief, Lorem Ipsum is not simply random text. It has roots in a piece of classical Latin literature from 45 BC" @@ -739,7 +745,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "outputs": [ @@ -752,7 +758,7 @@ } ], "source": [ - "# gridwidth-16 code 1\n", + "# gridwidth-1-6 code 1\n", "hi()" ] }, @@ -766,7 +772,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "outputs": [ @@ -779,7 +785,7 @@ } ], "source": [ - "# gridwidth-16 code 2\n", + "# gridwidth-1-6 code 2\n", "hi()" ] }, @@ -793,7 +799,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "outputs": [ @@ -806,7 +812,7 @@ } ], "source": [ - "# gridwidth-16 code 3\n", + "# gridwidth-1-6 code 3\n", "hi()" ] }, @@ -820,7 +826,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "outputs": [ @@ -833,7 +839,7 @@ } ], "source": [ - "# gridwidth-16 code 4\n", + "# gridwidth-1-6 code 4\n", "hi()" ] }, @@ -847,7 +853,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "outputs": [ @@ -860,7 +866,7 @@ } ], "source": [ - "# gridwidth-16 code 5\n", + "# gridwidth-1-6 code 5\n", "hi()" ] }, @@ -874,7 +880,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "outputs": [ @@ -887,7 +893,7 @@ } ], "source": [ - "# gridwidth-16 code 6\n", + "# gridwidth-1-6 code 6\n", "hi()" ] }, @@ -900,7 +906,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "source": [ @@ -919,7 +925,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "source": [ @@ -938,7 +944,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "source": [ @@ -957,7 +963,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "source": [ @@ -976,7 +982,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "source": [ @@ -995,7 +1001,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "source": [ @@ -1019,7 +1025,7 @@ "id": "13fe486a-a8e9-4487-959f-32294f514ca4", "metadata": { "tags": [ - "gridwidth-23" + "gridwidth-2-3" ] }, "outputs": [], @@ -1035,7 +1041,7 @@ "id": "1196c085-3baa-4e53-b37e-81ff7fa6f2ea", "metadata": { "tags": [ - "gridwidth-13" + "gridwidth-1-3" ] }, "outputs": [], @@ -1049,7 +1055,7 @@ "id": "4d051732-d258-4fa9-b0e1-a7651d0c55b0", "metadata": { "tags": [ - "gridwidth-14" + "gridwidth-1-4" ] }, "outputs": [], @@ -1063,7 +1069,7 @@ "id": "de264441-44ee-4d51-a309-cc05fc8cf8db", "metadata": { "tags": [ - "gridwidth-34" + "gridwidth-3-4" ] }, "outputs": [], @@ -1077,7 +1083,7 @@ "id": "60d8b694-feaa-4b84-b64d-e9d72df010aa", "metadata": { "tags": [ - "gridwidth-25" + "gridwidth-2-5" ] }, "outputs": [], @@ -1091,7 +1097,7 @@ "id": "7e6eb8de-68d2-42ac-9a85-9422bd43eb42", "metadata": { "tags": [ - "gridwidth-35" + "gridwidth-3-5" ] }, "outputs": [], @@ -1105,7 +1111,7 @@ "id": "632819cd-1d24-4a4e-8232-486a742abcc5", "metadata": { "tags": [ - "gridwidth-56" + "gridwidth-5-6" ] }, "outputs": [], @@ -1119,7 +1125,7 @@ "id": "21be6cae-c2a7-4170-90ed-758451a06dcc", "metadata": { "tags": [ - "gridwidth-16" + "gridwidth-1-6" ] }, "outputs": [], @@ -1132,7 +1138,7 @@ "id": "89ba6097-a3a2-4680-88e8-2bb3cd5bdb8e", "metadata": { "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "source": [ @@ -1144,7 +1150,7 @@ "id": "20729669-08ca-4b6d-9a84-def6337be800", "metadata": { "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "source": [ @@ -1157,7 +1163,7 @@ "id": "bb94aaf5-80fb-4b3d-bc66-ae2f043aa29b", "metadata": { "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "source": [ @@ -1170,7 +1176,7 @@ "id": "e72a0389-bb14-44b0-9053-21b6a26e8ccf", "metadata": { "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "source": [ @@ -1182,7 +1188,7 @@ "id": "b12bf685-e0bf-4536-ac79-51d9648df663", "metadata": { "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "source": [ @@ -1198,7 +1204,7 @@ "slide_type": "" }, "tags": [ - "gridwidth-12" + "gridwidth-1-2" ] }, "source": [ diff --git a/src/index.ts b/src/index.ts index a923712..ad3bf91 100644 --- a/src/index.ts +++ b/src/index.ts @@ -15,7 +15,11 @@ import { md_toggle_multi, } from 'jupyterlab-celltagsclasses' const PLUGIN_ID = 'jupyterlab-gridwidth:plugin' -const ALL_GRIDWIDTHS = [12, 13, 23, 14, 24, 34, 15, 25, 35, 45, 16, 26, 36, 46, 56] +const ALL_GRIDWIDTHS = [ + '1-2', '1-3', '2-3', '1-4', '2-4', '3-4', + '1-5', '2-5', '3-5', '4-5', + '1-6', '2-6', '3-6', '4-6', '5-6', +] const plugin: JupyterFrontEndPlugin = { id: PLUGIN_ID, @@ -30,16 +34,15 @@ const plugin: JupyterFrontEndPlugin = { let command - // gridwidth-12..gridwidth-16 + // gridwidth-1-2..gridwidth-1-6 const ALL_GRIDWIDTHS_FULL = ALL_GRIDWIDTHS.map((gridwidth) => `gridwidth-${gridwidth}`) for (const gridwidth of ALL_GRIDWIDTHS) { - const [num, den] = [Math.floor(gridwidth / 10), gridwidth % 10] - command = `gridwidth:toggle-${num}${den}` + const [num, den] = gridwidth.split('-') + command = `gridwidth:toggle-${num}-${den}` app.commands.addCommand(command, { label: `cell to take ${num}/${den} space (toggle)`, execute: () => apply_on_cells(notebookTracker, Scope.Active, (cell: Cell) => { - console.log(`toggling gridwidth-${gridwidth} for cell ${cell.model.id}`) md_toggle_multi(cell, 'tags', `gridwidth-${gridwidth}`, ALL_GRIDWIDTHS_FULL) } ) diff --git a/style/base.css b/style/base.css index 6d52435..2bb0dfb 100644 --- a/style/base.css +++ b/style/base.css @@ -66,28 +66,28 @@ & jp-Cell { min-width: 200px; } - & .jp-Cell.cell-tag-gridwidth-12 { width: 50%; } - & .jp-Cell.cell-tag-gridwidth-13 { width: 33.3%; } - & .jp-Cell.cell-tag-gridwidth-23 { width: 66.7%; } - & .jp-Cell.cell-tag-gridwidth-14 { width: 25%; } - & .jp-Cell.cell-tag-gridwidth-24 { width: 50%; } /* redundant */ - & .jp-Cell.cell-tag-gridwidth-34 { width: 75%; } - & .jp-Cell.cell-tag-gridwidth-15 { width: 20%; } - & .jp-Cell.cell-tag-gridwidth-25 { width: 40%; } - & .jp-Cell.cell-tag-gridwidth-35 { width: 60%; } - & .jp-Cell.cell-tag-gridwidth-45 { width: 80%; } - & .jp-Cell.cell-tag-gridwidth-16 { width: 16.6%; } - & .jp-Cell.cell-tag-gridwidth-26 { width: 33.3%; } /* redundant */ - & .jp-Cell.cell-tag-gridwidth-36 { width: 50%; } /* redundant */ - & .jp-Cell.cell-tag-gridwidth-46 { width: 66.7%; } /* redundant */ - & .jp-Cell.cell-tag-gridwidth-56 { width: 83.3%; } + & .jp-Cell.cell-tag-gridwidth-1-2 { width: 50%; } + & .jp-Cell.cell-tag-gridwidth-1-3 { width: 33.3%; } + & .jp-Cell.cell-tag-gridwidth-2-3 { width: 66.7%; } + & .jp-Cell.cell-tag-gridwidth-1-4 { width: 25%; } + & .jp-Cell.cell-tag-gridwidth-2-4 { width: 50%; } /* redundant */ + & .jp-Cell.cell-tag-gridwidth-3-4 { width: 75%; } + & .jp-Cell.cell-tag-gridwidth-1-5 { width: 20%; } + & .jp-Cell.cell-tag-gridwidth-2-5 { width: 40%; } + & .jp-Cell.cell-tag-gridwidth-3-5 { width: 60%; } + & .jp-Cell.cell-tag-gridwidth-4-5 { width: 80%; } + & .jp-Cell.cell-tag-gridwidth-1-6 { width: 16.6%; } + & .jp-Cell.cell-tag-gridwidth-2-6 { width: 33.3%; } /* redundant */ + & .jp-Cell.cell-tag-gridwidth-3-6 { width: 50%; } /* redundant */ + & .jp-Cell.cell-tag-gridwidth-4-6 { width: 66.7%; } /* redundant */ + & .jp-Cell.cell-tag-gridwidth-5-6 { width: 83.3%; } & .jp-Cell:not( - .cell-tag-gridwidth-12, - .cell-tag-gridwidth-13, .cell-tag-gridwidth-23, - .cell-tag-gridwidth-14, .cell-tag-gridwidth-24, .cell-tag-gridwidth-34, - .cell-tag-gridwidth-15, .cell-tag-gridwidth-25, .cell-tag-gridwidth-35, .cell-tag-gridwidth-45, - .cell-tag-gridwidth-16, .cell-tag-gridwidth-26, .cell-tag-gridwidth-36, .cell-tag-gridwidth-46, .cell-tag-gridwidth-56 + .cell-tag-gridwidth-1-2, + .cell-tag-gridwidth-1-3, .cell-tag-gridwidth-2-3, + .cell-tag-gridwidth-1-4, .cell-tag-gridwidth-2-4, .cell-tag-gridwidth-3-4, + .cell-tag-gridwidth-1-5, .cell-tag-gridwidth-2-5, .cell-tag-gridwidth-3-5, .cell-tag-gridwidth-4-5, + .cell-tag-gridwidth-1-6, .cell-tag-gridwidth-2-6, .cell-tag-gridwidth-3-6, .cell-tag-gridwidth-4-6, .cell-tag-gridwidth-5-6 ) { width: 100%; }