Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix/hover and link styles minor issues #1844

Merged
merged 5 commits into from
Sep 25, 2023
Merged
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
53 changes: 49 additions & 4 deletions src/dashboard/style.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
@import "../blocks/plugins/feedback/editor.scss";

:root {
--main-link-color: #2271b1;
Soare-Robert-Daniel marked this conversation as resolved.
Show resolved Hide resolved
}

* {
box-sizing: inherit;
}
Expand Down Expand Up @@ -33,6 +37,10 @@
--wp-admin-theme-color-darker-20: #d5654f;
--wp-admin-theme-color-darker-10: #dd6851;
}

&.is-link {
color: var(--main-link-color);
}
}

.otter-header {
Expand Down Expand Up @@ -89,9 +97,17 @@
margin: 0;
border: 0;
cursor: pointer;
margin-right: 8px;

&:hover {
span {
color: #282828;
}
border-bottom: 3px solid #e5e5e5;
}

&.is-active {
border-bottom: 4px solid #1E7DB2;
border-bottom: 3px solid #1E7DB2;

span {
color: #282828;
Expand All @@ -100,7 +116,7 @@

@media ( max-width: 960px ) {
border-bottom: 0;
border-left: 4px solid #1E7DB2;
border-left: 3px solid #1E7DB2;
}
}

Expand Down Expand Up @@ -161,10 +177,17 @@

&:hover {
border-bottom: 1px solid #d6e2ed !important;
background: #E8E8E8;
}
}
}

.components-panel__body-toggle {
&:hover {
background: #E8E8E8;
}
}

&.is-pro {
.components-panel__body-title {
.components-button {
Expand Down Expand Up @@ -247,8 +270,8 @@
}

&:focus {
border-color: #00a0d2;
box-shadow: 0 0 0 1px #00a0d2;
border-color: var(--main-link-color);
box-shadow: 0 0 0 1px var(--main-link-color);
outline: 2px solid transparent;
outline-offset: -2px;
}
Expand Down Expand Up @@ -290,6 +313,12 @@
padding: 2px 20px;
font-size: 14px;
margin-right: 10px;
color: var(--main-link-color);
box-shadow: inset 0 0 0 1px var(--main-link-color);

&:focus {
box-shadow: inset 0 0 0 1.5px var(--main-link-color);
}
}

.components-external-link {
Expand Down Expand Up @@ -342,10 +371,16 @@
.is-secondary {
padding: 2px 20px;
font-size: 14px;
color: var(--main-link-color);
box-shadow: inset 0 0 0 1px var(--main-link-color);

&:not(:last-child) {
margin-right: 15px;
}

&:focus {
box-shadow: inset 0 0 0 1.5px var(--main-link-color);
}
}
}
}
Expand Down Expand Up @@ -484,6 +519,16 @@
justify-content: center;
}
}

.components-form-toggle.is-checked .components-form-toggle__track {
background-color: var(--main-link-color);
}

.components-textarea-control__input:focus,
Soare-Robert-Daniel marked this conversation as resolved.
Show resolved Hide resolved
.components-text-control__input:focus {
border-color: var(--main-link-color);
box-shadow: 0 0 0 1px var(--main-link-color);
}
}

.otter-button-control {
Expand Down
Loading