Merge pull request #22924 from maharshivpatel/fix-espresso-web
fix: web styles espresso
This commit is contained in:
commit
c7fa8e694a
12 changed files with 50 additions and 11 deletions
|
|
@ -6,7 +6,9 @@
|
|||
|
||||
.btn {
|
||||
border: none;
|
||||
padding: 4px 8px;
|
||||
&:not(.btn-md):not(.btn-lg) {
|
||||
padding: 4px 8px;
|
||||
}
|
||||
border-radius: var(--border-radius);
|
||||
box-shadow: none;
|
||||
@include get_textstyle("base", "regular");
|
||||
|
|
|
|||
|
|
@ -25,6 +25,9 @@ $disabled-input-height: 22px;
|
|||
--btn-shadow: var(--shadow-xs);
|
||||
|
||||
|
||||
// navbar
|
||||
--navbar-height: 48px;
|
||||
|
||||
// SVG Colors
|
||||
--icon-fill: transparent;
|
||||
--icon-fill-bg: var(--fg-color);
|
||||
|
|
|
|||
|
|
@ -39,6 +39,9 @@
|
|||
&--cell {
|
||||
&.-current- {
|
||||
color: var(--text-color);
|
||||
&:not(.-selected-):not(.-in-range-) {
|
||||
font-weight: var(--weight-bold);
|
||||
}
|
||||
|
||||
&.-in-range- {
|
||||
color: var(--text-color);
|
||||
|
|
|
|||
|
|
@ -3,6 +3,7 @@
|
|||
|
||||
html, body {
|
||||
height: 100%;
|
||||
font-family: var(--font-stack);
|
||||
font-variation-settings: "opsz" 24;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,6 @@
|
|||
--sm-width: #{map-get($grid-breakpoints, 'sm')};
|
||||
--xs-width: #{map-get($grid-breakpoints, 'xs')};
|
||||
|
||||
--navbar-height: 48px;
|
||||
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -123,6 +123,7 @@
|
|||
|
||||
.modified {
|
||||
margin-right: var(--margin-sm);
|
||||
min-width: 1.5rem;
|
||||
}
|
||||
|
||||
.comment-count {
|
||||
|
|
|
|||
|
|
@ -104,6 +104,9 @@
|
|||
margin-bottom: 3rem;
|
||||
margin-top: 5rem;
|
||||
}
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.blog-comments {
|
||||
|
|
|
|||
|
|
@ -1,4 +1,5 @@
|
|||
@import 'variables';
|
||||
@import "frappe/public/css/fonts/inter/inter.css";
|
||||
@import '../common/quill';
|
||||
@import '~bootstrap/scss/bootstrap';
|
||||
@import '~cropperjs/dist/cropper.min';
|
||||
|
|
|
|||
|
|
@ -2,6 +2,9 @@
|
|||
.section-markdown > .from-markdown {
|
||||
max-width: 50rem;
|
||||
margin: auto;
|
||||
a {
|
||||
text-decoration: underline;
|
||||
}
|
||||
}
|
||||
|
||||
.from-markdown {
|
||||
|
|
|
|||
|
|
@ -1,5 +1,22 @@
|
|||
.navbar {
|
||||
padding: 0;
|
||||
.navbar-nav {
|
||||
align-items: center;
|
||||
.nav-item {
|
||||
height: var(--navbar-height);
|
||||
display: flex;
|
||||
align-items: center;
|
||||
|
||||
&.active {
|
||||
border-bottom: 1px solid var(--primary);
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
vertical-align: middle;
|
||||
line-height: 1;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@media (max-width: map-get($grid-breakpoints, "lg")) {
|
||||
|
|
@ -60,7 +77,7 @@
|
|||
img {
|
||||
display: inline-block;
|
||||
max-width: 150px;
|
||||
max-height: 25px;
|
||||
max-height: 22px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -117,9 +134,14 @@
|
|||
padding-bottom: 0px;
|
||||
}
|
||||
|
||||
.logged-in > .nav-link {
|
||||
max-width: 200px;
|
||||
@extend .ellipsis;
|
||||
max-width: 100%;
|
||||
vertical-align: middle;
|
||||
.logged-in {
|
||||
display: flex;
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
.nav-link {
|
||||
max-width: 200px;
|
||||
@extend .ellipsis;
|
||||
max-width: 100%;
|
||||
vertical-align: middle;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -11,6 +11,7 @@ $border-color: $gray-300 !default;
|
|||
$headings-color: $gray-900 !default;
|
||||
$breadcrumb-bg: transparent !default;
|
||||
$navbar-bg: white !default;
|
||||
$navbar-height: 48px;
|
||||
|
||||
$container-max-widths: (
|
||||
sm: 540px,
|
||||
|
|
|
|||
|
|
@ -333,9 +333,9 @@ $.extend(frappe, {
|
|||
},
|
||||
make_navbar_active: function () {
|
||||
var pathname = window.location.pathname;
|
||||
$(".navbar-nav a.active").removeClass("active");
|
||||
$(".navbar-nav a").each(function () {
|
||||
var href = $(this).attr("href");
|
||||
$(".navbar-nav li.active").removeClass("active");
|
||||
$(".navbar-nav li").each(function () {
|
||||
var href = $(this.getElementsByTagName("a")).attr("href");
|
||||
if (href === pathname) {
|
||||
$(this).addClass("active");
|
||||
return false;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue