Skip to content

Commit

Permalink
Merge branch 'version-15-hotfix' into version-15
Browse files Browse the repository at this point in the history
  • Loading branch information
ankush committed Oct 20, 2023
2 parents 2b8c048 + 21b8ce3 commit b8c1f49
Show file tree
Hide file tree
Showing 22 changed files with 147 additions and 106 deletions.
4 changes: 2 additions & 2 deletions frappe/public/js/frappe/widgets/onboarding_widget.js
Original file line number Diff line number Diff line change
Expand Up @@ -124,12 +124,12 @@ export default class OnboardingWidget extends Widget {
set_description();

if (step.intro_video_url) {
$(`<button class="btn btn-primary btn-sm">${__("Watch Tutorial")}</button>`)
$(`<button class="btn btn-default btn-sm">${__("Watch Tutorial")}</button>`)
.appendTo(this.step_footer)
.on("click", toggle_video);
} else {
$(
`<button class="btn btn-primary btn-sm">${__(
`<button class="btn btn-default btn-sm">${__(
step.action_label || step.action
)}</button>`
)
Expand Down
1 change: 1 addition & 0 deletions frappe/public/scss/desk/avatar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@
.avatar {
display: inline-block;
vertical-align: middle;
line-height: 1;
}

.avatar-frame {
Expand Down
2 changes: 1 addition & 1 deletion frappe/public/scss/desk/dark.scss
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ $check-icon-dark: url("data:image/svg+xml, <svg viewBox='0 0 8 7' fill='none' xm
}
}
.comment-input-wrapper .ql-editor.ql-blank::before {
color: var(--text-muted);
color: var(--text-color);
}
// --appreciation-color: var(--dark-green-100);
// --appreciation-bg: var(--dark-green-600);
Expand Down
6 changes: 3 additions & 3 deletions frappe/public/scss/desk/desktop.scss
Original file line number Diff line number Diff line change
Expand Up @@ -551,9 +551,9 @@ body {
cursor: pointer;

&:hover {
--icon-stroke: var(--gray-600);
--icon-stroke: var(--invert-neutral);
.widget-title {
color: var(--gray-600) !important;
color: var(--invert-neutral) !important;
}
}

Expand Down Expand Up @@ -600,7 +600,7 @@ body {
.link-content {
flex: 1;
&:hover {
color: var(--gray-600);
color: var(--invert-neutral);
}
}

Expand Down
1 change: 0 additions & 1 deletion frappe/public/scss/desk/navbar.scss
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
.navbar {
height: $navbar-height;
background: var(--navbar-bg);
box-shadow: var(--shadow-sm);
border-bottom: 1px solid var(--border-color);
padding: 0;
.navbar-brand {
Expand Down
10 changes: 7 additions & 3 deletions frappe/public/scss/desk/page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,13 @@
height: var(--btn-height);
margin-left: var(--margin-sm, 8px);
border-radius: var(--border-radius);
display: flex;
align-items: center;
gap: 8px;
line-height: 1;
padding: 4px 8px;
&, & .hidden-xs {
display: flex;
align-items: center;
gap: 6px;
}
}
.btn:not(.icon-btn) {
padding: 4px 8px;
Expand Down
10 changes: 7 additions & 3 deletions frappe/public/scss/desk/sidebar.scss
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ body[data-route^="Module"] .main-menu {
}

.layout-side-section {
@include get_textstyle("base", "regular");
@include get_textstyle("sm", "regular");
padding-right: 30px;

&.hide-sidebar {
Expand Down Expand Up @@ -415,8 +415,7 @@ body[data-route^="Module"] .main-menu {
.data-pill {
background-color: unset;
box-shadow: none;
padding: 0;
padding-left: var(--padding-md);
padding:0 var(--padding-xs) 0 var(--padding-md);
}
}

Expand Down Expand Up @@ -467,6 +466,11 @@ body[data-route^="Module"] .main-menu {
width: unset;
height: unset;
margin-right: 0;
padding: var(--padding-xs) !important;
border-radius: var(--border-radius-full);
&:hover {
background-color: var(--subtle-fg);
}
&:focus {
box-shadow: none;
}
Expand Down
3 changes: 1 addition & 2 deletions frappe/public/scss/desk/slides.scss
Original file line number Diff line number Diff line change
Expand Up @@ -72,11 +72,10 @@
}

.slides-wrapper {
width: 520px;
max-width: 520px;
background: var(--card-bg);
padding: var(--padding-xl);
border: 1px solid var(--gray-400);
border: 1px solid var(--border-color);
border-radius: var(--border-radius-md);

.slide-wrapper:focus {
Expand Down
14 changes: 14 additions & 0 deletions frappe/public/scss/desk/tree.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,19 @@
.tree {
padding: var(--padding-sm);
.btn-group {
.btn {
box-shadow: none;
outline: 1px solid var(--btn-group-border-color);

&:not(:first-child) {
margin-left: 1px;
}

&:focus {
outline: 2px solid var(--dark-border-color);
}
}
}
}

.tree li {
Expand Down
63 changes: 27 additions & 36 deletions frappe/public/scss/login.bundle.scss
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ body {
@include media-breakpoint-up(sm) {
background-color: var(--bg-light-gray);
}
.web-footer {
display: none;
}
}

.for-forgot,
Expand All @@ -18,17 +21,9 @@ body {
.for-login-with-email-link,
.for-signup,
.for-email-login {
padding: max(10vh, 60px) 0;

@include media-breakpoint-up(sm) {
.page-card {
padding-top: 45px;
padding-bottom: 45px;
background-color: #fff;
}
}

.page-card {
padding: 45px 10px;
background-color: #fff;
max-width: 400px;
margin: 0 auto;
border-radius: var(--border-radius-md);
Expand Down Expand Up @@ -100,13 +95,6 @@ body {

input {
padding-left: 35px;
&:autofill, &:-webkit-autofill {
-webkit-background-clip: text;
-webkit-text-fill-color: var(--text-color);
-webkit-box-shadow: 0 0 0 30px var(--gray-200) inset !important;
outline: 1px solid var(--gray-400);
transition: background-color 5000s ease-in-out 0s;
}
}

.toggle-password {
Expand Down Expand Up @@ -172,26 +160,9 @@ body {
}
}

.page-card-head {
margin: 0 auto;
text-align: center;
font-size: var(--text-xl);
font-weight: 600;
margin-bottom: 2.5rem;

img {
max-height: 42px;
}

h4 {
margin-top: 1rem;
font-size: var(--text-xl);
color: var(--text-color);
}
}

.sign-up-message {
margin-top: 2rem;
margin-top: 1rem;
margin-bottom: 0;
color: var(--text-light);
@include get_textstyle("base", "regular");
a {
Expand Down Expand Up @@ -224,3 +195,23 @@ body {
}
}
}

.page-card-head {
padding: max(5vh, 30px) 0 14px 0px;
margin: 0 auto;
text-align: center;
font-size: var(--text-xl);
font-weight: 600;

img {
max-height: 42px;
}

h4 {
margin-top: 1rem;
font-size: var(--text-xl);
font-weight: var(--weight-semibold);
letter-spacing: 0.01em;
color: var(--text-color);
}
}
12 changes: 11 additions & 1 deletion frappe/public/scss/website/base.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,21 @@ html {
body {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
font-size: 16px;
@include get_textstyle("base", "regular");
color: $body-color;
display: flex;
flex-direction: column;
}

kbd {
background-color: var(--control-bg);
font-family: var(--font-stack);
color: var(--text-light);
line-height: 1.2em;
letter-spacing: 0.02em;
height: 20px;
padding: 4px 8px;
}
img {
max-width: 100%;
height: auto;
Expand Down Expand Up @@ -86,6 +95,7 @@ h4 {

a {
color: $body-color;
text-decoration: underline !important;
}
}

Expand Down
15 changes: 10 additions & 5 deletions frappe/public/scss/website/blog.scss
Original file line number Diff line number Diff line change
Expand Up @@ -117,14 +117,19 @@
}

.blog-feedback {
display: flex;

display: inline-flex;
.like-icon {
cursor: pointer;

&.gray use {
fill: var(--gray-600);
stroke: none;
use {
stroke: var(--gray-800);
--icon-stroke: transparent;
}
}
.like-icon.liked {
use {
stroke: var(--gray-800);
--icon-stroke: var(--red-500);
}
}
}
Expand Down
21 changes: 6 additions & 15 deletions frappe/public/scss/website/css_variables.scss
Original file line number Diff line number Diff line change
@@ -1,21 +1,12 @@
@import '../common/css_variables.scss';
@import "../espresso/colors";
@import "../espresso/spacing";
@import "../espresso/typography";
@import "../espresso/shadows";
@import "../espresso/borders";

// Deprecated but remove after all use is removed as well.
:root {
--gray-50: #{$gray-50};
--gray-100: #{$gray-100};
--gray-200: #{$gray-200};
--gray-300: #{$gray-300};
--gray-400: #{$gray-400};
--gray-500: #{$gray-500};
--gray-600: #{$gray-600};
--gray-700: #{$gray-700};
--gray-800: #{$gray-800};
--gray-900: #{$gray-900};

--black: #{$black};
--primary: #{$primary};
--primary-color: #{$primary};
--primary-light: #{$primary-light};
--light: #{$light};

--font-size-xs: #{$font-size-xs};
Expand Down
5 changes: 5 additions & 0 deletions frappe/public/scss/website/index.scss
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@

.dropdown-item {
border-radius: $dropdown-border-radius;
padding : var(--dropdown-padding) !important;
}

.dropdown-item:active {
Expand Down Expand Up @@ -166,6 +167,10 @@ a.card {
text-decoration: none;
}

a.card-link {
text-decoration: underline;
}

.hidden {
@extend .d-none;
}
Expand Down
2 changes: 1 addition & 1 deletion frappe/public/scss/website/my_account.scss
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@

.account-info {
background-color: var(--fg-color);
box-shadow: var(--card-shadow);
border: 1px solid var(--border-color);
border-radius: var(--border-radius-md);
padding: var(--padding-sm) 25px;

Expand Down
6 changes: 2 additions & 4 deletions frappe/public/scss/website/navbar.scss
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
.navbar {
padding-left: 0;
padding-right: 0;
padding: 0;
}

@media (max-width: map-get($grid-breakpoints, "lg")) {
.navbar {
padding-left: 1rem;
padding-right: 1rem;
padding: 0 1rem;
}
}

Expand Down
Loading

0 comments on commit b8c1f49

Please sign in to comment.