<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Yuliya Grebenshchikova on Medium]]></title>
        <description><![CDATA[Stories by Yuliya Grebenshchikova on Medium]]></description>
        <link>https://medium.com/@jucoder?source=rss-9256b31ee18b------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*AF4_dKIm-26Xq7OFh6rxMQ.jpeg</url>
            <title>Stories by Yuliya Grebenshchikova on Medium</title>
            <link>https://medium.com/@jucoder?source=rss-9256b31ee18b------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Fri, 27 Nov 2026 21:37:47 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@jucoder/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Localizing Languages with Different Directionality]]></title>
            <link>https://medium.com/stakefish/localizing-languages-with-different-directionality-32e0929ee833?source=rss-9256b31ee18b------2</link>
            <guid isPermaLink="false">https://medium.com/p/32e0929ee833</guid>
            <category><![CDATA[localization]]></category>
            <category><![CDATA[web-development]]></category>
            <category><![CDATA[css]]></category>
            <dc:creator><![CDATA[Yuliya Grebenshchikova]]></dc:creator>
            <pubDate>Fri, 23 Apr 2021 09:38:20 GMT</pubDate>
            <atom:updated>2021-04-23T09:38:20.806Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*0htqlc81HvlxW-bNfj3JBA.png" /></figure><p>In this article, I will try to show and briefly explain how to prepare a website for localization, specifically for languages with right-to-left writing orientations as well as vertical or top-to-bottom writing orientations.</p><p>Here I have documented some challenges we’ve encountered in the process of adding localization styles for our own <a href="http://stake.fish/">stake.fish</a> website, as well as some solutions that helped us move forward.</p><h3>What is Localization?</h3><p>According to the <a href="https://www.gala-global.org/knowledge-center/about-the-industry/language-services">Globalization and Localization Association</a>, localization is the entire process of adapting a product or content to a specific geographic location or market.</p><p>Consistent with our company’s stance on decentralization, commitment to diversity, and efforts to make our products’ availability as widespread as possible with accessible, world class UX, we want to be as supportive as we can be for different languages around the world. We currently support 16 languages, including English, Italian, Chinese, Japanese, Korean, Spanish, Catalan, Hebrew, and more, with more on the way.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*qTE4wYUr0HAj6e9I" /></figure><p>Many written languages, such as English or Spanish, are read from left-to-right, which classify them as sinistrodextral<strong> </strong>writing systems. But more than a few other written languages from around the world are written and read from right-to-left or even vertically — from top-to-bottom.</p><p>Fortunately, there are really only these 3 reading directions for scripts in modern languages. Left-to-right, right-to-left, and top-to-bottom (bottom-to-top is also existed, but not really used for modern languages). To support them, once we define the code for styles for these 3 directions, the rest of the layout can just be tweaked a bit on a per-language basis.</p><p>It is important to note before we dive in that it’s better to investigate the nuances of writing CSS for localization and the specific representation of each respective language to better understand how to make the site look “native” from the user’s point of view.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*26WBYkIs8F_1tkdv" /></figure><h4>What do I mean by that?</h4><p>Well, as you can imagine, it’s a big undertaking to support so many languages, not just from a page layout perspective, but also from the sheer number of translations that need to be correct and proper for their respective language. This is not something that works well by simply throwing a bunch of words through Google Translate.</p><p>At stakefish, we utilize the services of translation experts to help us ensure that the translations actually make sense in their respective languages. But there’s more to it than that:</p><p>Many of the languages we support are displayed left-to-right, as is standard in written English or Spanish, for example.</p><p>But some languages, such as Hebrew or Mongolian, are not left-to-right languages. And here, in this case, a simple translation isn’t enough, because words translated from a language read from left-to-right will not be displayed properly in a language with a writing system that has a different directionality when placed among other assets.</p><p>Additional design considerations have to be executed that will also impact the display and layout of our pages.</p><p>Here you can see the difference in text positioning for a “regular”, or at least “more common”, left-to-right language, then an example for Hebrew that reads the opposite direction, from right-to-left. Finally, we have an example for Mongolian, which reads top to bottom.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*6_GsCNSBzjzsMW-l" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*ChtQCm54jq8PCFpd" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/889/0*y09LyDH7PHUpKI_c" /></figure><p>This can get tricky to bring together, but the results are great for the respective audiences.</p><p>So let me show you some pitfalls, nuances, tips, and tricks for writing CSS styles to accommodate these different writing systems.</p><h3>Vertical mode.</h3><p>Let’s start with the vertical reading orientation layout. We need to keep in mind that all sizes, indents, and positions have to be changed with respect to the different layouts.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*YZV82B4Ny03InSsN" /></figure><p>But for this layout, video players, most icons, and some images don’t need to be rotated. So we have to accommodate so they don’t change.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*gcwUCOS0rI9y-pvh" /></figure><p>If you are like me, you would go crazy having to rewrite all these styles!</p><p>But there is actually a better solution for this! We can use logical CSS properties and values that will allow us to write padding, margin, border, left, right, top, and bottom properties according to the chosen language direction — just once.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*4vw2hamgkFa_NXzc" /><figcaption><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Logical_Properties#properties_for_margins_borders_and_padding">Logical CSS properties</a></figcaption></figure><p>Here’s what that looks like in practice:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/871e5260d7d916fe4f18ecd7ebf8dfb3/href">https://medium.com/media/871e5260d7d916fe4f18ecd7ebf8dfb3/href</a></iframe><p>It’s also important to use the text orientation property to make sure the text lies on the correct side and is oriented properly. We can do that using text-orientation: sideways.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*U7dacFhn3rnSI-D6" /></figure><p>So don’t be like me and start making all these changes individually… If you read articles about localization you will have a big head start! I’ve included some helpful links at the end of this article.</p><h4>Next, let’s talk about form controls.</h4><p>Unfortunately, there are some problems with them. The vertical mode does not lay them out properly, so we need to use absolute positioning and transforms to make them look the way they are supposed to look.</p><p>As far as I know, only Firefox currently understands vertical writing mode correctly.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*fYQD1fpSw4nM7Y0o" /></figure><p>As for buttons, I’ve found kind of a life hack: We can wrap the text inside the button within a span tag and use CSS property writing-mode: vertical-lr once again. This fixes the text orientation for buttons with vertical text labels:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/e53b923ef015b54c0a26a30c754121f0/href">https://medium.com/media/e53b923ef015b54c0a26a30c754121f0/href</a></iframe><p>There is no need to rotate images, as well as videos, icons, and other media elements, leastwise, if we don’t want to look crazy, so we only need to make sure they’re in harmony with the other elements in terms of their positioning.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*t80Tmv4CXGRKLAMN" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/905/0*Dl4zs4s7lpYTGEgt" /></figure><p>Also, I need to elaborate on mobile. For mobile, there are issues that are still not properly supported in regard to all position: fixed elements. Their behavior is very unpredictable. So this needs more investigation to display correctly on mobile.</p><h3>Right-to-left mode.</h3><p>Now that we’ve discussed vertical scripts, let’s discuss right-to-left mode. This is a bit easier to implement because instead of changing the axis completely like with a vertical language like Mongolian, the words in a right-to-left language are still read on the same horizontal line plane, just in the opposite direction. We can think of it a little bit like mirroring, whereas the first change we made — vertical mode — was a much bigger overhaul in terms of positioning.</p><p>All absolute and fixed positions should be updated, the left property should be updated to have the value of the right, and so on.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*wX3xTrPVkC-0Omme" /></figure><p>Example:</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/d35f2f9544d15fb3d97b5d920edf05a7/href">https://medium.com/media/d35f2f9544d15fb3d97b5d920edf05a7/href</a></iframe><p>We can also use <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/inset">logical CSS properties</a> for left/right/top/bottom positioning values, but there is no support for Safari browser.</p><p>There is also no need to change any media elements. They don’t need to be mirrored or changed at all.</p><p>Logically, in order to properly localize the page in right-to-left mode, we should try to mirror all positions of form controls because controls usually operate in a direction analogous to the direction of the text. For example, our Spanish page has a slider that increases value from left-to-right. But in Hebrew, we want the increase in value to happen when the slider moves from right-to-left, the same way that the text is read on the page:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*76wQw5M838ZCh06i" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/0*WqAo_QmKEm5rVZ8t" /></figure><p>We use locize.io for hosting all our translations, all data store in JSON format — “KEY”: “Translation value”. And there was a problem with punctuation like question marks that weren’t inside a translation key (they were just hardcoded in HTML) or outside of the container with the whole text. Their direction is not changed properly, so it’s important to keep punctuation elements in the same line of text. So here’s what that punctuation would look like in our case.</p><p>Example:</p><p>Don’t: &lt;h2&gt;Hello&lt;/h2&gt;!!!</p><p>Do: &lt;h2&gt;Hello!!!&lt;/h2&gt;</p><p>And</p><p>Don’t:&lt;h2&gt;&lt;FormattedMessage id=”HELLO”/&gt;!!&lt;/h2&gt;</p><p>Do:&lt;h2&gt;&lt;FormattedMessage id=”HELLO”/&gt;&lt;/h2&gt;</p><blockquote>Translation keys are the way we store translations for our website. For example, we download translations as JSON `key: value`s and use only the key inside the FormattedMessage component. After changing the language to display, the corresponding translation for that key automatically loads.</blockquote><h3>The End…?</h3><p>To sum it all up, I’ll highlight my most important tips for web page localization:</p><ul><li>Thoroughly reading documentation about localization is important, especially for specific languages and Eastern or Asian fonts.</li><li>Keep up to date with the WC3 docs for international languages.</li><li>Remove all spacing for Eastern and Asian fonts by using letter-spacing: normal. For example, where we have letter-spacing: 1px we should use letter-spacing: normal to make sure there are no errors rendering these fonts.</li><li>To avoid rendering problems, keep all localization styles up to date and monitor the pages frequently.</li><li>Pay close attention to borders, widths, heights, transforms, absolute and fixed positions, paddings, and margins, and use <a href="https://www.smashingmagazine.com/2018/03/understanding-logical-properties-values/"><strong>logical</strong></a> properties and values.</li><li>If you’re planning to support multiple languages that differ in their directionality, have a native speaker review your work for localization QA, which should definitely tie into a larger marketing initiative.</li></ul><p>There’s more work to be done in terms of localization and multi-language support from the browsers themselves.</p><p>This process takes time and care, but if you want to reach users in different markets, cater to their specific needs and lifestyles, and simply present them with a desirable and easy-to-use experience, it’s the right thing to do.</p><h3>Links:</h3><p><a href="https://www.w3.org/International/articles/vertical-text/">https://www.w3.org/International/articles/vertical-text/</a></p><p><a href="https://www.w3.org/International/articles/css3-text/index.en">https://www.w3.org/International/articles/css3-text/index.en</a></p><p><a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Writing_Modes">https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Writing_Modes</a></p><p><a href="https://css-tricks.com/building-multi-directional-layouts/">https://css-tricks.com/building-multi-directional-layouts/</a></p><p><a href="https://www.smashingmagazine.com/2018/03/understanding-logical-properties-values/">https://www.smashingmagazine.com/2018/03/understanding-logical-properties-values/</a></p><p><a href="https://uxplanet.org/right-to-left-development-tips-and-tricks-fa481e86ae26">https://uxplanet.org/right-to-left-development-tips-and-tricks-fa481e86ae26</a></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=32e0929ee833" width="1" height="1" alt=""><hr><p><a href="https://medium.com/stakefish/localizing-languages-with-different-directionality-32e0929ee833">Localizing Languages with Different Directionality</a> was originally published in <a href="https://medium.com/stakefish">stakefish</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CSS3 Cards & hover animations.]]></title>
            <link>https://medium.com/@jucoder/css3-cards-hover-animations-a379afaab71e?source=rss-9256b31ee18b------2</link>
            <guid isPermaLink="false">https://medium.com/p/a379afaab71e</guid>
            <category><![CDATA[верстка]]></category>
            <category><![CDATA[react]]></category>
            <category><![CDATA[css3]]></category>
            <category><![CDATA[css-animation]]></category>
            <category><![CDATA[styled-components]]></category>
            <dc:creator><![CDATA[Yuliya Grebenshchikova]]></dc:creator>
            <pubDate>Wed, 08 Jul 2020 08:50:43 GMT</pubDate>
            <atom:updated>2020-07-09T09:57:43.060Z</atom:updated>
            <content:encoded><![CDATA[<h3>CSS3 Cards &amp; Hover Animations</h3><h4>Using React and styled-components</h4><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G9m4I_dXj8_0Y11Epiyjcw.jpeg" /><figcaption>Photo by <a href="https://unsplash.com/@otenteko">Anas Alshanti</a> on <a href="https://unsplash.com/">Unsplash</a></figcaption></figure><p>Довольно часто в процессе разработки новых компонентов можно столкнуться с проблемами реализации тех или иных визуальных эффектов.</p><p>Хочу рассказать о нюансах реализации всяких-разных карточек с точки зрения вёрстки и анимации. Начнем с простейших экземпляров.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/856/1*JRK2bnXLy_9HTcsyKqxldw.png" /></figure><p>Здесь мы видим что на :hover по карточке происходит скейл самой карточки и иконки, при этом размеры шрифтов не изменяются. Мы можем использовать transform: scale(1.1) для карточки целиком, а для текста инвертировать это значение, но я не стала этого делать, т.к. хотелось бы избежать замыливания.</p><p>Самый очевидный, с моей точки зрения, вариант — реализовать фон карточки через псевдоэлемент ::after или ::before и, соответственно, скейлить его. Контент же мы можем шатать как угодно: иконку увеличим, а текст подвинем вниз по вертикали.</p><h4>Накидываем вёрсточку.</h4><p>Всё очень просто.</p><p>Картинку иконки я добавляю через background-image и плюсом к этому добавляю в стилях background-size: contain, чтобы не париться по поводу размеров. Здесь добавила картинку-рыбу, но в реальной жизни в url прокидываю значение из props. Так же, как и данные для заголовков, подзаголовков и прочего.</p><p>Заголовок и подзаголовок сгруппировала, потому что а почему бы и нет. Так удобнее двигать их вместе вниз. Компонент &lt;Inner&gt; нужен для того, чтобы иметь z-index и быть слоем выше, чем ::after / ::before, а так же для того, чтобы спозиционировать себя по центру по вертикали и горизонтали.</p><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/22419ffb04be941b13410c117dc68497/href">https://medium.com/media/22419ffb04be941b13410c117dc68497/href</a></iframe><h4>Добавляем стили</h4><iframe src="" width="0" height="0" frameborder="0" scrolling="no"><a href="https://medium.com/media/c6cf51b56553b1cdbde4e15e709c558b/href">https://medium.com/media/c6cf51b56553b1cdbde4e15e709c558b/href</a></iframe><p>Обсудим? Обсудим. &lt;Wrapper&gt; имеет фиксированную высоту, и display: flex, что позволяет нам на изичах спозиционировать контент по вертикали через margin: auto у &lt;Inner&gt;. Я могла бы добавить свойства align-items: center; justify-content: center; для &lt;Wrapper&gt;, и произошло бы то же самое, но зачем платить больше? ЭКОНОМИЯ.</p><p>С остальными компонентами, думаю, всё понятно. Переходим к главному: фон карточки.</p><p>Стили для фона карточки написаны в псевдоэлементе :before у &lt;Wrapper&gt;. Он занимает всю высоту и ширину родительского элемента, у него есть белый бэкграунд, тенюха и ему норм. Дальше видим что на :hover что-то происходит. Псевдоэлемент и &lt;Image&gt; увеличиваются в размерах, как твое лицо после трех литров минералки Кубай на ночь, &lt;Content&gt; съезжает вниз, как твоя самооценка после очередного собеседования. То что нужно, спасибо.</p><p>Материал дополняется …</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a379afaab71e" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>