opensearch-docs-cn/_sass/font-awesome/_mixins.scss

26 lines
906 B
SCSS
Raw Normal View History

Redesigned top nav and footer (#5113) * Ports over redesigned top banner header navigation, and footer Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adds style overrides for search functionality Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adds Font Awesome for menu icons Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adds style overrides and updated menu item configurations Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adds whitespace to fix SASS style rule causing Github action failure Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adds dynamic navigation submenu height determination for smooth expand/collapse transitions instead of hardcoded values potentiating effortless change management Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Removes outdated message about old version release Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Corrects padding, positioning, typography for the site footer Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adds new footer logo Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Sets footer legal copy right padding on mobile to that of the scroll-to-top button Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adds footer link styles Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adjusts page layout to fit the new container width requirements Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Fixes mobile layout with new header and footer Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Fixes mobile navigation menu errors Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Adjusts padding Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Removes commented out code Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> * Updates top navigation menu items with latest from project site Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> --------- Signed-off-by: Aaron Stephanus <taoist.futility@pm.me> Signed-off-by: astephanus <124592019+astephanus@users.noreply.github.com>
2023-11-07 18:17:05 -05:00
// Mixins
// --------------------------
@mixin fa-icon() {
display: inline-block;
font: normal normal normal 14px/1 FontAwesome; // shortening font declaration
font-size: inherit; // can't have font-size inherit on line above, so need to override
text-rendering: auto; // optimizelegibility throws things off #1094
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@mixin fa-icon-rotate($degrees, $rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
-webkit-transform: rotate($degrees);
-ms-transform: rotate($degrees);
transform: rotate($degrees);
}
@mixin fa-icon-flip($horiz, $vert, $rotation) {
filter: progid:DXImageTransform.Microsoft.BasicImage(rotation=#{$rotation});
-webkit-transform: scale($horiz, $vert);
-ms-transform: scale($horiz, $vert);
transform: scale($horiz, $vert);
}