Skip to content

Commit

Permalink
Fixed issues for large mac
Browse files Browse the repository at this point in the history
  • Loading branch information
Vijaya Anand authored and Vijaya Anand committed Feb 28, 2022
1 parent dad631c commit 549bf33
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/posts.html
Original file line number Diff line number Diff line change
Expand Up @@ -582,7 +582,7 @@ <h2 class="cmp__article-title">

<!-- Archives & Tags -->
<div class="cmp__responsive-flex cmp__responsive">
<section class="cmp__widget cmp__archives">
<section class="cmp__widget cmp__archives-widget">
<div class="cmp__widget-header">
<div class="cmp__widget-ribbon">
<div class="cmp__widget-ribbon-content">
Expand Down Expand Up @@ -633,7 +633,7 @@ <h2 class="cmp__article-title">
</div>
</section>

<section class="cmp__widget cmp__tags">
<section class="cmp__widget cmp__tags-widget">
<div class="cmp__widget-header">
<div class="cmp__widget-ribbon">
<div class="cmp__widget-ribbon-content">
Expand Down
6 changes: 6 additions & 0 deletions src/scss/base/_media.scss
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,10 @@
}
}
}
}

@media only screen and (min-width: fibVars.$extra-large) {
:root {
--cmp-base-size: #{fibVars.$extra-large-screen-font-size};
}
}
2 changes: 2 additions & 0 deletions src/scss/base/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ $purple-ribbon: rgb(186, 137, 182) !default;
// Sizes.
$small-screen-font-size: 16px !default;
$large-screen-font-size: 19px !default;
$extra-large-screen-font-size: 22px !default;
$xs-size: var(--cmp-xs-size) !default;
$sm-size: var(--cmp-sm-size) !default;
$md-size: var(--cmp-md-size) !default;
Expand Down Expand Up @@ -86,6 +87,7 @@ $small-padding: $sm-size $lg-size !default;
$mobile: 576px !default; // Small devices (landscape phones, 576px and up).
$tablet: 768px !default; // Medium devices (tablets, 768px and up).
$desktop: 992px !default; // Large devices (desktops, 992px and up).
$extra-large: 1500px !default; // Extra Large devices.

$breakpoint1: 878px !default; // Custom one.
$breakpoint2: 1260px !default; // Custom one.
Expand Down
4 changes: 4 additions & 0 deletions src/scss/site/_article.scss
Original file line number Diff line number Diff line change
Expand Up @@ -203,6 +203,10 @@
img, .cmp__table-wrapper, iframe {
border-radius: 0;
}

img {
width: 100%;
}
}
}

Expand Down
2 changes: 1 addition & 1 deletion webpack.dev.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ module.exports = {
MiniCssExtractPlugin.loader,
{
loader: 'css-loader',
options: { url: false }
options: { import: false }
},
'sass-loader',
],
Expand Down

0 comments on commit 549bf33

Please sign in to comment.