From 9e75eddde57d9c2887c4eec49d40ee818f4762ad Mon Sep 17 00:00:00 2001 From: Rebecca Cremona Date: Thu, 12 Oct 2023 15:32:57 -0400 Subject: [PATCH] Tidy the table of contents (particularly the editable view) --- web/frontend/components/CollapseTriangle.vue | 4 ++-- web/frontend/components/TheTableOfContents.vue | 15 ++++----------- web/frontend/styles/casebook.scss | 8 ++++---- web/static/images/ui/edit/elide.png | Bin 679 -> 1371 bytes 4 files changed, 10 insertions(+), 17 deletions(-) diff --git a/web/frontend/components/CollapseTriangle.vue b/web/frontend/components/CollapseTriangle.vue index e98c45fff..3aed55545 100644 --- a/web/frontend/components/CollapseTriangle.vue +++ b/web/frontend/components/CollapseTriangle.vue @@ -1,6 +1,6 @@ diff --git a/web/frontend/components/TheTableOfContents.vue b/web/frontend/components/TheTableOfContents.vue index af657abed..0e1ab9544 100644 --- a/web/frontend/components/TheTableOfContents.vue +++ b/web/frontend/components/TheTableOfContents.vue @@ -253,7 +253,6 @@ export default { button.action-expand { border: 0 solid transparent; background: transparent; - margin: -8px; } button.toc-expand { display: flex; @@ -347,7 +346,7 @@ export default { .listing { display: flex; justify-content:space-between; - align-items: baseline; + align-items: center; width: 100%; padding: 12px 16px; /* padding-right: 42px; */ @@ -359,7 +358,7 @@ export default { display: flex; flex-direction:row; div { - align-self:baseline; + align-self:center; } .is-instructional-material { background-image:url('~static/images/ui/casebook/lock.svg') ; @@ -375,13 +374,9 @@ export default { } .actions { position: relative; - top: 12px; + top: 0; } &.section { - .actions { - min-height:44px; - } - align-items: left; background-color: $black; @@ -541,7 +536,7 @@ export default { @media (min-width: $screen-xs) { &.section { flex-direction: row; - align-items: baseline; + align-items: center; } } .section-number, @@ -587,13 +582,11 @@ export default { .nestable-list { border-left: 8px solid $light-blue; padding-left: 16px; - margin-left: 30px; } } div.editable .nestable-list .nestable-list { border-left: 8px solid $yellow; padding-left: 16px; - margin-left: 30px; } .nestable-drag-layer { opacity: 0.7; diff --git a/web/frontend/styles/casebook.scss b/web/frontend/styles/casebook.scss index 73f64f156..7c4f87147 100644 --- a/web/frontend/styles/casebook.scss +++ b/web/frontend/styles/casebook.scss @@ -528,7 +528,6 @@ form.edit_content_resource, form.edit_content_section, form.edit_content_caseboo .actions { margin-left: 1rem; - margin-top: -8px; > form > input[type=submit], button { // @include square(50px); display: block; @@ -540,8 +539,9 @@ form.edit_content_resource, form.edit_content_section, form.edit_content_caseboo background-size: auto; &.action-delete { background-image: url('~static/images/ui/edit/elide.png'); - height: 36px; - width: 36px; + height: 20px; + width: 20px; + margin: 0; border-width: 0px; background-color: transparent; } @@ -903,4 +903,4 @@ div.tox-toolbar__group:nth-child(2) button.tox-tbtn.tox-tbtn--select.tox-tbtn--d .casebook-copyright-notice { margin-top: 4rem; -} \ No newline at end of file +} diff --git a/web/static/images/ui/edit/elide.png b/web/static/images/ui/edit/elide.png index afb97dfeb5cddab48d4b206882c789613fc93109..8d0aa6ddf313d55a13e67f37f185b383f42e1397 100644 GIT binary patch literal 1371 zcmeAS@N?(olHy`uVBq!ia0vp^A|TAc1|)ksWqE-VOS+@4BLl<6e(pbstU$g(vPY0F z14ES>14Ba#1H&(%P{RubhEf9thF1v;3|2E37{m+a>>x%Bs2U~)hW1Pb7O0viAPoW@Kn&6Yp_vyjB1~Ms z1XnGxfEmFCX>)u&_aBhrEbxddW?VstT4fPE4;bsH1+JHo@{EISEfi{E8w==W>t3(ll+GC>+vK+}V5TAlYfnK%a zveAbJn;n;A+(UK-2BtfnE{-7mD*TaJjUz z@al4Onp<3&Z0?}2Ue@XoDxCIuc>0s+@tP+Yu4%4m%NCt5cCtPHHEFYDwQyCts=nI{hVI8{>b~203)-f@Bd_DZo$4UN!dEKNkGM#J7M4Q4%On;ZRhNG zob^fyE&KRw(zL}D+_(=3nKLoR#p=Jv-p;b2WurKc(TfD;=pP5d7l;?kj5(2e>|=@b zAtZuNS!?Y>Q32=I&hokoEYtj}7bQbiVx8 zZMSw!_yUH*azMj2ciS>EM`-!(KE0-*&f-X{$13*)i3>6+eJ|gAUc0MsA*B(zVMXxze?R&&C&MbwpITjqwv}|PKI(tp~Nq^BrLC1BumMi-gI?uRpkS+a(Mf|~n!;W!>c1iW+)v(sFo3@q- zz2D!r-s6~fmUzPMi_@% literal 679 zcmV;Y0$BZtP)P000>X1^@s6#OZ}&00001b5ch_0Itp) z=>Px%VM#abI6Wsqh^mcBBuy}Ro9{m?69suvG?0X;^9d>v z$-LwAY_ZsL-5d`ZL>?dSKL$at&*Y>%8aX9j9W4A z8kG^!@U6 zJi~C4w~qhP^5@Rvi&j%h#c^giPT!Dzg+1^78>wK!d}U^>kl$UmcT7B)Y*FUzkGd_5cVO{_L N002ovPDHLkV1n6TEI