Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
coopwire-hypothesis
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
孙灵跃 Leon Sun
coopwire-hypothesis
Commits
0eb95a36
Commit
0eb95a36
authored
Feb 08, 2021
by
Kyle Keating
Committed by
Kyle Keating
Feb 11, 2021
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Change markdown editor :focus styling to look more like button
This makes the focus outline behave with a rounded radius.
parent
5042fddc
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
14 deletions
+13
-14
MarkdownEditor.scss
src/styles/sidebar/components/MarkdownEditor.scss
+13
-14
No files found.
src/styles/sidebar/components/MarkdownEditor.scss
View file @
0eb95a36
...
@@ -28,26 +28,24 @@
...
@@ -28,26 +28,24 @@
}
}
.MarkdownEditor__toolbar-button
{
.MarkdownEditor__toolbar-button
{
@include
buttons
.
reset-native-btn-styles
;
@include
buttons
.
button--icon-only
(
$with-active-state
:
false
);
@include
layout
.
row
(
center
,
center
);
appearance
:
none
;
min-width
:
24px
;
min-width
:
24px
;
min-height
:
24px
;
min-height
:
24px
;
color
:
var
.
$grey-5
;
padding-top
:
0
;
padding-bottom
:
0
;
&
:hover
,
color
:
var
.
$grey-5
;
&
:focus
{
transition
:
none
;
color
:
var
.
$grey-7
;
}
&
:disabled
{
&
:disabled
{
color
:
var
.
$grey-3
;
color
:
var
.
$grey-3
;
}
}
}
&
-icon
{
svg
.MarkdownEditor__toolbar-button-icon
{
// Stronger specificity to override mixin button styling
@include
utils
.
icon--xsmall
;
@include
utils
.
icon--xsmall
;
}
}
}
.MarkdownEditor__preview
{
.MarkdownEditor__preview
{
...
@@ -91,9 +89,10 @@
...
@@ -91,9 +89,10 @@
.MarkdownEditor__toolbar-button
{
.MarkdownEditor__toolbar-button
{
min-width
:
var
.
$touch-target-size
;
min-width
:
var
.
$touch-target-size
;
min-height
:
var
.
$touch-target-size
;
min-height
:
var
.
$touch-target-size
;
}
&
-icon
{
svg
.MarkdownEditor__toolbar-button-icon
{
// Stronger specificity to override mixin button styling
@include
utils
.
icon--small
;
@include
utils
.
icon--small
;
}
}
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment