From eb7ff576e53605010bba01fdece2800243987235 Mon Sep 17 00:00:00 2001 From: Penar Musaraj Date: Thu, 8 Apr 2021 09:58:12 -0400 Subject: [PATCH] FEATURE: Use SVG icons for some oneboxes (#12654) --- app/assets/images/favicons/amazon.png | Bin 2459 -> 0 bytes app/assets/images/favicons/apple.png | Bin 1573 -> 0 bytes app/assets/images/favicons/github.png | Bin 3135 -> 0 bytes app/assets/images/favicons/rottentomatoes.png | Bin 2486 -> 0 bytes app/assets/images/favicons/twitter.png | Bin 2048 -> 0 bytes app/assets/images/favicons/wikipedia.png | Bin 1912 -> 0 bytes .../app/initializers/post-decorations.js | 28 ++++++++++++++++++ .../stylesheets/common/base/onebox.scss | 18 +++++------ lib/svg_sprite/svg_sprite.rb | 4 ++- .../assets/svg-icons/discourse-additional.svg | 5 ++++ 10 files changed, 45 insertions(+), 10 deletions(-) delete mode 100644 app/assets/images/favicons/amazon.png delete mode 100644 app/assets/images/favicons/apple.png delete mode 100644 app/assets/images/favicons/github.png delete mode 100644 app/assets/images/favicons/rottentomatoes.png delete mode 100644 app/assets/images/favicons/twitter.png delete mode 100644 app/assets/images/favicons/wikipedia.png diff --git a/app/assets/images/favicons/amazon.png b/app/assets/images/favicons/amazon.png deleted file mode 100644 index b2ef6045ee10eafe74ee48d2335a8855e2143211..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2459 zcmXX|c|2787rqm+Yg5LUxw9EtLXmyX@)9a3ONk^TLQ#4V%F^N$S!M=VBP7e4r4o&; zenMH2tT7^`qGHC>Fz@${-~F8V&i9`4oacGY`Rm>|=wK}=h7p4xNYdsn3rFxDgZxAU zz_~P;%7GvO=%AgGrFF0!9*-yC_yH40FrJ7bkZ>@OA0#}1j0dma#8W5~1qB5nOax#u zj7Rb?3@!u$0dSIF1POwOT<}Byz`+23!{HQhI6%ApN&;Fi0g!_d=+e~GBqO4*$>z-p zJ19VigvBe%$N&$L5QM<+KnQpv0vHkKuKVFj!-zWK4bkGmC>TI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dIoLDaHqh18HTrVs4gRQzh=f?eBd)lp7mU{S?eYhlSJ>nsiaYp*~?LQ*3)_3t2k*;SngXB zuAE!-Y*q*@d8ez|y6>ir$sFwNKEKd?X^Z@`QdP&=3ij+jXE_sA3U=-Gugg929=3;H zu`C*Ouw5G8{r>Lg{^gG{tW`nU_R#r9p6WjsiL72h9Mko~%?(mY`uZgg(-i}Q3rP(j zBc!n?aR-I6vrT@*-#DS%_zF&w#+tt}#kSQW)!~hH9XHo8`U-LKc3D5OgqqG(T0B3k z!gg!r5tqW?an%EoW535b#=ei6Xn1wQwOrKbg-y2 H_q_TastQkG diff --git a/app/assets/images/favicons/apple.png b/app/assets/images/favicons/apple.png deleted file mode 100644 index da6b59f17f2b4a8eaf1be1c2bdae4c7632ff4b58..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1573 zcmV+=2HN?FP)qy{Ad*W|5cTsWBN7I=@ZHV*k9GP{iO_L`h1nn_kUcg zIQ)P0Cg_@eAQtt7r%#{s+^Ki>ceMijPVWlc`~N~-So(i>mKxyvhdrU`bB*2`3~~Lz z)P%5ow>8HfMHvG^!=>a=zffE`k1`G}9s#&j++KDQWh@9;mSXJXKelf0+)A0a5^`ka z0>{Hb8cMT1Wlt@=#Sc9?Bu99Yg>2T1_tS@QkENICWqxBDI96J>XV$nJq$&25{0_XI z?!Ih+9K-zm-OO?26M{v?KL|O#>%k0E z*UR|eXk89ku#ffGpO7O%f2VRDSID%F>17nansm49kgBtUr>JArH5ka z6|OE+JZQ9rdWCJi7!40Iylo=gK0k;#M%XC4z;EWNm@^am#>kg`b|q^}OEP(_I9v&}|!`(#LJyB-QDA6PRN#>9b8Gvj{AI!cL&{zj4PA zpkJDZdO!~TUx-+rqQtErm%h`^BqH>irqV|s3P3D)Dm?>{K37f5{bkGG(MLTc^GTij zr_iSW+TTL%^!ETj`}da3A$NnH577PxY z(g+H`e*jMaA)BB8;_Cn%Av;L{o`oj>^DW6NkYxaG0|v`y6BA(f9FTFqOoC&81{e?K z8VL%(dkxk9-R1wezuDvL;~poT?dGH(m~@e|DlRJ%#rNL`Em z1XBPsC_PDL6%e83hM-OYsZkVVdme6T6n)fjm+Au4&H$Mk_}?o-=`r;uK|Ndnh96wn zHdE@>nGoNFEI`mXuG^*N`vKovGz47&x=YBfnXcX>_yW2BK@t8`Ep0~1oD2e3WHCb} z0jlGa%iTbEKA~dK4bBB$0M4i4Lg-C~FMxBEx;Fz~!lut0Qn~7sV=eFn@Ew)?K{*2d z2>Db{cdhyxG01_T)2v?OtWi(A?4+7Zz zPq}ZVv_jEBq54^ diff --git a/app/assets/images/favicons/github.png b/app/assets/images/favicons/github.png deleted file mode 100644 index d19beac3d0cff60637092d1ad8eb69f7cb0bdb0a..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 3135 zcmXw5cRZEtAGYVuIL=1qL8ufF4WncqFUsL9ym&=qmKn*+kr~+|D|;S$Qz(%Y$td#` zva{#!evbFOKlgJ#-}`%C-|M>W?{oe*!8+QiEKHnC6ciLJ>T1e*;OzrF4AfxVoP4!M zK|%FdN9*owRYxt5!J^SvEEWV{;BYvwLK!q#Oi&Q47$lOLn;Q)R@F0;K92^2L7|4Sd zObiNzKp?;l3;+NVi$bAMC_sWlBC!}Oh~aQJggga6hbUfN-cvS^=f-kFN2dT#``>^( z00}TqC@v6?X#qI~gFz!vXW(!iE-njannx69bi0-hFk-2n-m2G2h%L}V? zW#3(UnD&2?D=f?N9S7$aMz^Op{7L=kZ}}DDC;1+6w~fdt>~g|>@g$jReOtG<^}Ba_ zCb>mK`VWu&wF;E}nMJtKQujN9LYEMX@>#Llf*)2lg6)@OY@PNp*!P8cEydA zq};!3@=u@o;guioOX=0 z`=lDB)A>>#H&#YL!62=!taR7iWO;Na4nB;eUn|LaWvS97^X;B#K^&?6n{(`sE_Gz?70%Pdb@MfC1{ zh~NCQuxw@Q!T)F`yxbah_P4@!{BlV3JE2l-}lg-P`9}i@6)+j%B z1%@5_oh=h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7S&qK1 zMLLn}8oG9RhHMQENj|yE3cGJDa9YtpJM-ys*42g@rFP0f9G|2-J?M^dWoctqTndl3 zr#W!R3T_|W1v19O&K-?tDqFJ%$4xfrXbLxNeCMqHBz7gIqI)rKQY6cy@#)s$5nJVB Xk?IRZ=tA(vi9-FhwsP@JQ@{TM#a97K diff --git a/app/assets/images/favicons/rottentomatoes.png b/app/assets/images/favicons/rottentomatoes.png deleted file mode 100644 index acd019cad32f4c52f525e8c0735f8aa1c4b6d6ee..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 2486 zcmV;n2}$;eP) zDn=hbU?^94GkFaThz}Hu4-#|+2Z9b0o)Q7GSA#cH1_q%M7qJx@ znGzPd6&%eM9oQEi*BK!}L?wkbBa1X6d~P#paWP+#JrG?nVwyflaWEoOEOSaIW}HFo z93<@@Bl`HTK`HJfCGbxy?>#8)FDC9XC+8a@XP-jzZ8ck$ zKk!K^@JlQ7dOK>OLtvpoVw^!^phEFhE?AR2>>MQXX*6MzKJY~;@lq}Kk4V=VBK3hk z_J%_Ab~*B4G4f?H^Km!tH7EF%OYs^b=^G>RTQHOm6Y^d#`J7MA8X)c)B;*<*_KQXI z6(ac=BTI}vyciz&qg3{NJzJ(jT8ukbcQb-cDn@8Bo?kC^d^m(?FpoPXaaJrkBNOsi zFUc7otQ8vL8zZ?F9kdo4s1zBG4-()TBhnfn@+T$Q8zQh48`T;inGqFRoI%ZPHGK&R ziwzL^saN~3T*p8xo)Q+;Fel_ACEXh$#uy*@D<-297+h#BgbNL_J1N{EBZz%Doo+SX zYc+#6BXw>v_97*2l|N*6HCcc*HdZV28zbswGuI*{=uj&yODkwwEVxB0-Ci$fbu%t@ zI<+Vx_ed#>h&+5iCM{kv!x$cR1_!_x9?m)|ZvzA@em&n-Ef8Zjz+ErjK`78rD}!1u zoHr) zI{yB}-Pi{>%Q=)8NYFbKw4G(lc`a00st0L_t(| zUhS7vSX@^Wg$s<~CAbFy#NEAd_tes+F87YRyW#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Eqi-1D3HbdjCld7zE<%0SzOko@tV#f2XdU#9w($BtCgguC<4G5Xip zyS}Lu7(H03p8e6Uekk(2Q_#b=ON1lZzngvvppwBZ2^J& zl>VUl_m@r=^jFf@V{uC}z4VfR(hjFvS|+!pz8Uu_+?S0m^yH-~@J#-#u4%%X6`gw8 zE-q*{*;Me@SU1qC@vksWBsKa)&7`q)%;n-5Lx=ONq9k6eHt09sFeQwGx;Vd29oN`y z#u-mOzdqs}upGWY&(&AKIbfNO zt!;IzF2!0{lCvjy^Sk$?Vv#qB0n^n(=ez47LQRwQTIkCkArJ~P!i_YA|H*RqN+VBf zxFr}gPcORoZpn2B_NmS7*481>wyqBD>7=96?daIUnkuP95nD$NolvqWDI2GiGyQv!$ax%EfYwfdG{auT-V;{Hr z*MTwa@R;PS&8;wwp8fN|#x-T<&(Bzmfs zT5Ud8l9GJ1!E^qunpsxfd!;>%d4tBI2mWErs#CC!<`^g8TvwwSUa_at>I=9d3OM5R ziy8OSc=cIY;$C!MeMkyMZMLm=0h4x9p`!Z33yp5e9DLW2h?spO+!l z&{D@eZoDjKMTbyhKNaDgPf#}Q!jwL|`G$av<6m_j;(8~aAmcBumOmVgDd}r0Tk@`t zyh12nAFQv~z%B|$5VPtIjd=44$7d#sMtxOsl9&LW)r?i4>W`ZNV`=HjCc}HfBT;?g zaaw+m&4Zow9eG2wC$yhCq`dAub-wHD8I)7ejyMvnZO;&4ZoZzHGiZ(tR?>(}inlDX zw<%uTuj=8MC|SDeoM6->*qxlKLpRtAMe7;YHhk$EAfpz&;=WncCH!$An8s`0thDPK sweoP7Y#nUH||9 diff --git a/app/assets/images/favicons/wikipedia.png b/app/assets/images/favicons/wikipedia.png deleted file mode 100644 index 050c5df90c7c6883d8d1a99736f0bea12c9f2ef3..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1912 zcmV-;2Z#8HP)^+OK2t*tTukwr$(CZQHhO+qOBlk50PhA`fmM?~V zz*|{{31}pTHa1)Exs3dkJ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?I9B+s!Y{XD`=c=1=jmck;=w~98yfggW_GHdhA_314 z;9Az{CFW-#kmeP;-mrm7CG4kQb6kCzLovHhb(5 zxSZH4_?t=PrtF+#(q#0j&QNTMen^3+O+^Av=N}6=AA`xPJ46)@0{|wcuS6f;Bu13K z(iK^P-I~l=DyB0$%^BsjS>HtAXt9Go!sr$gD84hrXwi%^x?d67Z>W_QX{!*vYuC)-f9nplTfC|{mAnH10SJkRqy&+|Ob y^SqHYIGPuq0H1)-w)h121o#B_1o#B_1pEinsFrkF5e@ { + elem.querySelectorAll(".onebox").forEach((onebox) => { + Object.entries(oneboxTypes).forEach(([key, value]) => { + if (onebox.classList.contains(key)) { + onebox + .querySelector(".source") + .insertAdjacentHTML("afterbegin", iconHTML(value)); + } + }); + }); + }, + { id: "onebox-source-icons" } + ); }); }, }; diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss index b8c0a81bbaa..29eb1a03e0c 100644 --- a/app/assets/stylesheets/common/base/onebox.scss +++ b/app/assets/stylesheets/common/base/onebox.scss @@ -105,6 +105,15 @@ aside.onebox { display: flex; margin-bottom: 1em; + .d-icon { + margin-right: 5px; + margin-top: 2px; + + &.d-icon-fab-twitter { + color: var(--twitter); + } + } + a[href] { color: var(--primary-med-or-secondary-med); text-decoration: none; @@ -112,15 +121,6 @@ aside.onebox { } @include onebox-favicon("stackexchange", "stackexchange"); - @include onebox-favicon("twitterstatus", "twitter"); - @include onebox-favicon("wikipedia", "wikipedia"); - @include onebox-favicon("githubblob", "github"); - @include onebox-favicon("githubcommit", "github"); - @include onebox-favicon("githubpullrequest", "github"); - @include onebox-favicon("githubissue", "github"); - @include onebox-favicon("githubfile", "github"); - @include onebox-favicon("githubgist", "github"); - @include onebox-favicon("amazon", "amazon"); @include onebox-favicon("instagram", "instagram"); @include onebox-favicon("googledocs", "google_branding/logo_drive_48px"); @include onebox-favicon("googledrive", "google_branding/logo_drive_48px"); diff --git a/lib/svg_sprite/svg_sprite.rb b/lib/svg_sprite/svg_sprite.rb index 9a2d18b9831..d8b5ee74704 100644 --- a/lib/svg_sprite/svg_sprite.rb +++ b/lib/svg_sprite/svg_sprite.rb @@ -31,7 +31,6 @@ module SvgSprite "book", "book-reader", "bookmark", - "discourse-bookmark-clock", "briefcase", "calendar-alt", "caret-down", @@ -58,9 +57,11 @@ module SvgSprite "crosshairs", "cube", "desktop", + "discourse-amazon", "discourse-bell-exclamation", "discourse-bell-one", "discourse-bell-slash", + "discourse-bookmark-clock", "discourse-compress", "discourse-expand", "download", @@ -85,6 +86,7 @@ module SvgSprite "fab-linux", "fab-twitter", "fab-twitter-square", + "fab-wikipedia-w", "fab-windows", "far-bell", "far-bell-slash", diff --git a/vendor/assets/svg-icons/discourse-additional.svg b/vendor/assets/svg-icons/discourse-additional.svg index 343b5b6abce..0ffba1b76ec 100644 --- a/vendor/assets/svg-icons/discourse-additional.svg +++ b/vendor/assets/svg-icons/discourse-additional.svg @@ -27,4 +27,9 @@ Additional SVG icons + + + + +