FreeTube/src/renderer/views/Trending/Trending.css

40 lines
652 B
CSS
Raw Normal View History

2020-02-16 19:30:00 +01:00
.card {
inline-size: 85%;
Implement right-to-left interface (#3970) * Replace margin-left with margin-inline-start * Replace margin-right with margin-inline-end * Replace padding-left with padding-inline-start * Replace padding-right with padding-inline-end * Replace padding-top & padding-bottom with padding-block; continue replacing padding-left and padding-right with padding-inline-start and padding-inline-end * Add updated rtl-compatible margins to ft-slider and fix indentation * Replace margin-top & margin-bottom with margin-block; continue replacing margin-left and margin-right with margin-inline-start and margin-inline-end * Continue replacing with margin-block and margin-inline * Replace left and right with inset-inline-start and inset-inline-end This commit also changes border-left to border-inline-start, and border-right to border-inline-end. * Replace margin-bottom, top, and bottom with margin-block-end, inset-block-start, and inset-block-end This commit also replaces border-top and border-bottom with border-block-start and border-block-end. * Replace text-align left and right with text-align start and end * Fix syntax error with inset-block-end * Implement dynamic float: left/right based on direction ltr/rtl * Implement dynamic navigation arrow placement based on direction ltr/rtl To the fullest of my understanding, it is expected for the left navigation in rtl-supporting browsers to be for forward navigation, and the right one to be for backward navigation. * Add direction to body based on preferred language * Implement horizontal directionality coefficient to fix translate working in wrong x-direction for rtl languages * Add explicit text-align: start in places to ensure rtl version is correctly aligned * Add text-align: start to places where it is not inferred to enable proper rtl text orientation * Fix search bar magnifying glass being too far right issue * Move body.dir-setting logic to setLocale to fix dir not setting correctly on page reload * Change .switchColumn to have align-items: start instead of justify-items: start I have validated this for all settings tabs; the justify-content: start did nothing in any language, left-to-right or right-to-left. Replacing it with align-items: start aligned all menu switch items by their switches, not by their labels. This makes for a much more uniform settings section for trl languages. * Fix emergent bug in which history icons are temporarily disabled on changing language to one with different directionality Given that which icon is displayed for which history arrow is now dynamic based on the user's directionality, changing of the icon resets the font-awesome-icon state and thus re-adds the base disabled class to both arrows. This means that changing your language to one that has a different directionality was falsely setting the arrows to their disabled state (until the route is changed, after which the history icons will be fully back to normal). This commmit refactors the history icon setting logic to use class binding to two booleans in the top-nav component's data rather than adding and removing the disabled classes directly to the arrow elements' classLists, thus cleaning up the implementation and fixing the bug. * Add Kurdish to rtl languages list & add li items to be right-aligned on rtl languages * Force FreeTube logo to be ordered left-to-right for 'brand consistency' * Add styling flipping font-awesome icons for rtl languages except for exclusion list * Update isRightAligned with additional languages, and use it instead of locale value from store Kudos to absidue for pointing out this existing function for representing this, and that it grabs directly from the i18n object. This means that FreeTube will display the proper rtl interface if one is the user's system language, where it did not before. * Update isRightAligned property name to more clearly reflect rtl purpose * Simplify left/right arrow display logic Leverage the icons being flipped rather than manually setting the classes to their opposites when the directionality is RTL. * Replace justify-self: left & justify-self: right with justify-self; start and justify-self: end * Remove misguided attempt to emulate directionality-agnosticism with rightAligned class * Explicitly center FreeTube version on About page * Replace pre-existing identation issue * Replace margin-left with margin-inline-start * Replace margin-right with margin-inline-end * Replace padding-left with padding-inline-start * Replace padding-right with padding-inline-end * Replace padding-top & padding-bottom with padding-block; continue replacing padding-left and padding-right with padding-inline-start and padding-inline-end * Add updated rtl-compatible margins to ft-slider and fix indentation * Replace margin-top & margin-bottom with margin-block; continue replacing margin-left and margin-right with margin-inline-start and margin-inline-end * Continue replacing with margin-block and margin-inline * Replace left and right with inset-inline-start and inset-inline-end This commit also changes border-left to border-inline-start, and border-right to border-inline-end. * Replace margin-bottom, top, and bottom with margin-block-end, inset-block-start, and inset-block-end This commit also replaces border-top and border-bottom with border-block-start and border-block-end. * Replace text-align left and right with text-align start and end * Fix syntax error with inset-block-end * Implement dynamic float: left/right based on direction ltr/rtl * Implement dynamic navigation arrow placement based on direction ltr/rtl To the fullest of my understanding, it is expected for the left navigation in rtl-supporting browsers to be for forward navigation, and the right one to be for backward navigation. * Add direction to body based on preferred language * Implement horizontal directionality coefficient to fix translate working in wrong x-direction for rtl languages * Add explicit text-align: start in places to ensure rtl version is correctly aligned * Add text-align: start to places where it is not inferred to enable proper rtl text orientation * Fix search bar magnifying glass being too far right issue * Move body.dir-setting logic to setLocale to fix dir not setting correctly on page reload * Change .switchColumn to have align-items: start instead of justify-items: start I have validated this for all settings tabs; the justify-content: start did nothing in any language, left-to-right or right-to-left. Replacing it with align-items: start aligned all menu switch items by their switches, not by their labels. This makes for a much more uniform settings section for trl languages. * Fix emergent bug in which history icons are temporarily disabled on changing language to one with different directionality Given that which icon is displayed for which history arrow is now dynamic based on the user's directionality, changing of the icon resets the font-awesome-icon state and thus re-adds the base disabled class to both arrows. This means that changing your language to one that has a different directionality was falsely setting the arrows to their disabled state (until the route is changed, after which the history icons will be fully back to normal). This commmit refactors the history icon setting logic to use class binding to two booleans in the top-nav component's data rather than adding and removing the disabled classes directly to the arrow elements' classLists, thus cleaning up the implementation and fixing the bug. * Add Kurdish to rtl languages list & add li items to be right-aligned on rtl languages * Force FreeTube logo to be ordered left-to-right for 'brand consistency' * Add styling flipping font-awesome icons for rtl languages except for exclusion list * Update isRightAligned with additional languages, and use it instead of locale value from store Kudos to absidue for pointing out this existing function for representing this, and that it grabs directly from the i18n object. This means that FreeTube will display the proper rtl interface if one is the user's system language, where it did not before. * Update isRightAligned property name to more clearly reflect rtl purpose * Simplify left/right arrow display logic Leverage the icons being flipped rather than manually setting the classes to their opposites when the directionality is RTL. * Replace justify-self: left & justify-self: right with justify-self; start and justify-self: end * Remove misguided attempt to emulate directionality-agnosticism with rightAligned class * Explicitly center FreeTube version on About page * Fix question mark reversing logic for Arabic, Hebrew, Persian, and Urdu * Fix minor indentation issue Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * Remove unused function Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * Update src/renderer/components/ft-slider/ft-slider.css Co-authored-by: PikachuEXE <pikachuexe@gmail.com> --------- Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
2023-09-09 18:29:26 +02:00
margin-block: 0 60px;
margin-inline: auto;
2020-02-16 19:30:00 +01:00
}
.trendingInfoTabs {
inline-size: 100%;
display: grid;
grid-template-columns: 1fr 1fr 1fr 1fr;
margin-block: -3px 10px;
color: var(--tertiary-text-color);
}
.selectedTab {
Implement right-to-left interface (#3970) * Replace margin-left with margin-inline-start * Replace margin-right with margin-inline-end * Replace padding-left with padding-inline-start * Replace padding-right with padding-inline-end * Replace padding-top & padding-bottom with padding-block; continue replacing padding-left and padding-right with padding-inline-start and padding-inline-end * Add updated rtl-compatible margins to ft-slider and fix indentation * Replace margin-top & margin-bottom with margin-block; continue replacing margin-left and margin-right with margin-inline-start and margin-inline-end * Continue replacing with margin-block and margin-inline * Replace left and right with inset-inline-start and inset-inline-end This commit also changes border-left to border-inline-start, and border-right to border-inline-end. * Replace margin-bottom, top, and bottom with margin-block-end, inset-block-start, and inset-block-end This commit also replaces border-top and border-bottom with border-block-start and border-block-end. * Replace text-align left and right with text-align start and end * Fix syntax error with inset-block-end * Implement dynamic float: left/right based on direction ltr/rtl * Implement dynamic navigation arrow placement based on direction ltr/rtl To the fullest of my understanding, it is expected for the left navigation in rtl-supporting browsers to be for forward navigation, and the right one to be for backward navigation. * Add direction to body based on preferred language * Implement horizontal directionality coefficient to fix translate working in wrong x-direction for rtl languages * Add explicit text-align: start in places to ensure rtl version is correctly aligned * Add text-align: start to places where it is not inferred to enable proper rtl text orientation * Fix search bar magnifying glass being too far right issue * Move body.dir-setting logic to setLocale to fix dir not setting correctly on page reload * Change .switchColumn to have align-items: start instead of justify-items: start I have validated this for all settings tabs; the justify-content: start did nothing in any language, left-to-right or right-to-left. Replacing it with align-items: start aligned all menu switch items by their switches, not by their labels. This makes for a much more uniform settings section for trl languages. * Fix emergent bug in which history icons are temporarily disabled on changing language to one with different directionality Given that which icon is displayed for which history arrow is now dynamic based on the user's directionality, changing of the icon resets the font-awesome-icon state and thus re-adds the base disabled class to both arrows. This means that changing your language to one that has a different directionality was falsely setting the arrows to their disabled state (until the route is changed, after which the history icons will be fully back to normal). This commmit refactors the history icon setting logic to use class binding to two booleans in the top-nav component's data rather than adding and removing the disabled classes directly to the arrow elements' classLists, thus cleaning up the implementation and fixing the bug. * Add Kurdish to rtl languages list & add li items to be right-aligned on rtl languages * Force FreeTube logo to be ordered left-to-right for 'brand consistency' * Add styling flipping font-awesome icons for rtl languages except for exclusion list * Update isRightAligned with additional languages, and use it instead of locale value from store Kudos to absidue for pointing out this existing function for representing this, and that it grabs directly from the i18n object. This means that FreeTube will display the proper rtl interface if one is the user's system language, where it did not before. * Update isRightAligned property name to more clearly reflect rtl purpose * Simplify left/right arrow display logic Leverage the icons being flipped rather than manually setting the classes to their opposites when the directionality is RTL. * Replace justify-self: left & justify-self: right with justify-self; start and justify-self: end * Remove misguided attempt to emulate directionality-agnosticism with rightAligned class * Explicitly center FreeTube version on About page * Replace pre-existing identation issue * Replace margin-left with margin-inline-start * Replace margin-right with margin-inline-end * Replace padding-left with padding-inline-start * Replace padding-right with padding-inline-end * Replace padding-top & padding-bottom with padding-block; continue replacing padding-left and padding-right with padding-inline-start and padding-inline-end * Add updated rtl-compatible margins to ft-slider and fix indentation * Replace margin-top & margin-bottom with margin-block; continue replacing margin-left and margin-right with margin-inline-start and margin-inline-end * Continue replacing with margin-block and margin-inline * Replace left and right with inset-inline-start and inset-inline-end This commit also changes border-left to border-inline-start, and border-right to border-inline-end. * Replace margin-bottom, top, and bottom with margin-block-end, inset-block-start, and inset-block-end This commit also replaces border-top and border-bottom with border-block-start and border-block-end. * Replace text-align left and right with text-align start and end * Fix syntax error with inset-block-end * Implement dynamic float: left/right based on direction ltr/rtl * Implement dynamic navigation arrow placement based on direction ltr/rtl To the fullest of my understanding, it is expected for the left navigation in rtl-supporting browsers to be for forward navigation, and the right one to be for backward navigation. * Add direction to body based on preferred language * Implement horizontal directionality coefficient to fix translate working in wrong x-direction for rtl languages * Add explicit text-align: start in places to ensure rtl version is correctly aligned * Add text-align: start to places where it is not inferred to enable proper rtl text orientation * Fix search bar magnifying glass being too far right issue * Move body.dir-setting logic to setLocale to fix dir not setting correctly on page reload * Change .switchColumn to have align-items: start instead of justify-items: start I have validated this for all settings tabs; the justify-content: start did nothing in any language, left-to-right or right-to-left. Replacing it with align-items: start aligned all menu switch items by their switches, not by their labels. This makes for a much more uniform settings section for trl languages. * Fix emergent bug in which history icons are temporarily disabled on changing language to one with different directionality Given that which icon is displayed for which history arrow is now dynamic based on the user's directionality, changing of the icon resets the font-awesome-icon state and thus re-adds the base disabled class to both arrows. This means that changing your language to one that has a different directionality was falsely setting the arrows to their disabled state (until the route is changed, after which the history icons will be fully back to normal). This commmit refactors the history icon setting logic to use class binding to two booleans in the top-nav component's data rather than adding and removing the disabled classes directly to the arrow elements' classLists, thus cleaning up the implementation and fixing the bug. * Add Kurdish to rtl languages list & add li items to be right-aligned on rtl languages * Force FreeTube logo to be ordered left-to-right for 'brand consistency' * Add styling flipping font-awesome icons for rtl languages except for exclusion list * Update isRightAligned with additional languages, and use it instead of locale value from store Kudos to absidue for pointing out this existing function for representing this, and that it grabs directly from the i18n object. This means that FreeTube will display the proper rtl interface if one is the user's system language, where it did not before. * Update isRightAligned property name to more clearly reflect rtl purpose * Simplify left/right arrow display logic Leverage the icons being flipped rather than manually setting the classes to their opposites when the directionality is RTL. * Replace justify-self: left & justify-self: right with justify-self; start and justify-self: end * Remove misguided attempt to emulate directionality-agnosticism with rightAligned class * Explicitly center FreeTube version on About page * Fix question mark reversing logic for Arabic, Hebrew, Persian, and Urdu * Fix minor indentation issue Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * Remove unused function Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * Update src/renderer/components/ft-slider/ft-slider.css Co-authored-by: PikachuEXE <pikachuexe@gmail.com> --------- Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
2023-09-09 18:29:26 +02:00
border-block-end: 3px solid var(--primary-color);
color: var(--primary-text-color);
font-weight: bold;
box-sizing: border-box;
Implement right-to-left interface (#3970) * Replace margin-left with margin-inline-start * Replace margin-right with margin-inline-end * Replace padding-left with padding-inline-start * Replace padding-right with padding-inline-end * Replace padding-top & padding-bottom with padding-block; continue replacing padding-left and padding-right with padding-inline-start and padding-inline-end * Add updated rtl-compatible margins to ft-slider and fix indentation * Replace margin-top & margin-bottom with margin-block; continue replacing margin-left and margin-right with margin-inline-start and margin-inline-end * Continue replacing with margin-block and margin-inline * Replace left and right with inset-inline-start and inset-inline-end This commit also changes border-left to border-inline-start, and border-right to border-inline-end. * Replace margin-bottom, top, and bottom with margin-block-end, inset-block-start, and inset-block-end This commit also replaces border-top and border-bottom with border-block-start and border-block-end. * Replace text-align left and right with text-align start and end * Fix syntax error with inset-block-end * Implement dynamic float: left/right based on direction ltr/rtl * Implement dynamic navigation arrow placement based on direction ltr/rtl To the fullest of my understanding, it is expected for the left navigation in rtl-supporting browsers to be for forward navigation, and the right one to be for backward navigation. * Add direction to body based on preferred language * Implement horizontal directionality coefficient to fix translate working in wrong x-direction for rtl languages * Add explicit text-align: start in places to ensure rtl version is correctly aligned * Add text-align: start to places where it is not inferred to enable proper rtl text orientation * Fix search bar magnifying glass being too far right issue * Move body.dir-setting logic to setLocale to fix dir not setting correctly on page reload * Change .switchColumn to have align-items: start instead of justify-items: start I have validated this for all settings tabs; the justify-content: start did nothing in any language, left-to-right or right-to-left. Replacing it with align-items: start aligned all menu switch items by their switches, not by their labels. This makes for a much more uniform settings section for trl languages. * Fix emergent bug in which history icons are temporarily disabled on changing language to one with different directionality Given that which icon is displayed for which history arrow is now dynamic based on the user's directionality, changing of the icon resets the font-awesome-icon state and thus re-adds the base disabled class to both arrows. This means that changing your language to one that has a different directionality was falsely setting the arrows to their disabled state (until the route is changed, after which the history icons will be fully back to normal). This commmit refactors the history icon setting logic to use class binding to two booleans in the top-nav component's data rather than adding and removing the disabled classes directly to the arrow elements' classLists, thus cleaning up the implementation and fixing the bug. * Add Kurdish to rtl languages list & add li items to be right-aligned on rtl languages * Force FreeTube logo to be ordered left-to-right for 'brand consistency' * Add styling flipping font-awesome icons for rtl languages except for exclusion list * Update isRightAligned with additional languages, and use it instead of locale value from store Kudos to absidue for pointing out this existing function for representing this, and that it grabs directly from the i18n object. This means that FreeTube will display the proper rtl interface if one is the user's system language, where it did not before. * Update isRightAligned property name to more clearly reflect rtl purpose * Simplify left/right arrow display logic Leverage the icons being flipped rather than manually setting the classes to their opposites when the directionality is RTL. * Replace justify-self: left & justify-self: right with justify-self; start and justify-self: end * Remove misguided attempt to emulate directionality-agnosticism with rightAligned class * Explicitly center FreeTube version on About page * Replace pre-existing identation issue * Replace margin-left with margin-inline-start * Replace margin-right with margin-inline-end * Replace padding-left with padding-inline-start * Replace padding-right with padding-inline-end * Replace padding-top & padding-bottom with padding-block; continue replacing padding-left and padding-right with padding-inline-start and padding-inline-end * Add updated rtl-compatible margins to ft-slider and fix indentation * Replace margin-top & margin-bottom with margin-block; continue replacing margin-left and margin-right with margin-inline-start and margin-inline-end * Continue replacing with margin-block and margin-inline * Replace left and right with inset-inline-start and inset-inline-end This commit also changes border-left to border-inline-start, and border-right to border-inline-end. * Replace margin-bottom, top, and bottom with margin-block-end, inset-block-start, and inset-block-end This commit also replaces border-top and border-bottom with border-block-start and border-block-end. * Replace text-align left and right with text-align start and end * Fix syntax error with inset-block-end * Implement dynamic float: left/right based on direction ltr/rtl * Implement dynamic navigation arrow placement based on direction ltr/rtl To the fullest of my understanding, it is expected for the left navigation in rtl-supporting browsers to be for forward navigation, and the right one to be for backward navigation. * Add direction to body based on preferred language * Implement horizontal directionality coefficient to fix translate working in wrong x-direction for rtl languages * Add explicit text-align: start in places to ensure rtl version is correctly aligned * Add text-align: start to places where it is not inferred to enable proper rtl text orientation * Fix search bar magnifying glass being too far right issue * Move body.dir-setting logic to setLocale to fix dir not setting correctly on page reload * Change .switchColumn to have align-items: start instead of justify-items: start I have validated this for all settings tabs; the justify-content: start did nothing in any language, left-to-right or right-to-left. Replacing it with align-items: start aligned all menu switch items by their switches, not by their labels. This makes for a much more uniform settings section for trl languages. * Fix emergent bug in which history icons are temporarily disabled on changing language to one with different directionality Given that which icon is displayed for which history arrow is now dynamic based on the user's directionality, changing of the icon resets the font-awesome-icon state and thus re-adds the base disabled class to both arrows. This means that changing your language to one that has a different directionality was falsely setting the arrows to their disabled state (until the route is changed, after which the history icons will be fully back to normal). This commmit refactors the history icon setting logic to use class binding to two booleans in the top-nav component's data rather than adding and removing the disabled classes directly to the arrow elements' classLists, thus cleaning up the implementation and fixing the bug. * Add Kurdish to rtl languages list & add li items to be right-aligned on rtl languages * Force FreeTube logo to be ordered left-to-right for 'brand consistency' * Add styling flipping font-awesome icons for rtl languages except for exclusion list * Update isRightAligned with additional languages, and use it instead of locale value from store Kudos to absidue for pointing out this existing function for representing this, and that it grabs directly from the i18n object. This means that FreeTube will display the proper rtl interface if one is the user's system language, where it did not before. * Update isRightAligned property name to more clearly reflect rtl purpose * Simplify left/right arrow display logic Leverage the icons being flipped rather than manually setting the classes to their opposites when the directionality is RTL. * Replace justify-self: left & justify-self: right with justify-self; start and justify-self: end * Remove misguided attempt to emulate directionality-agnosticism with rightAligned class * Explicitly center FreeTube version on About page * Fix question mark reversing logic for Arabic, Hebrew, Persian, and Urdu * Fix minor indentation issue Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * Remove unused function Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> * Update src/renderer/components/ft-slider/ft-slider.css Co-authored-by: PikachuEXE <pikachuexe@gmail.com> --------- Co-authored-by: absidue <48293849+absidue@users.noreply.github.com> Co-authored-by: PikachuEXE <pikachuexe@gmail.com>
2023-09-09 18:29:26 +02:00
margin-block-end: -3px;
}
.tab {
text-align: center;
padding: 15px;
font-size: 15px;
cursor: pointer;
align-self: flex-end;
}
.tab:hover {
font-weight: bold;
}
@media only screen and (width <= 680px) {
.card {
inline-size: 90%;
}
}