Skip to content

Commit aacda4f

Browse files
committed
Small style refactoring of suggestion panel and refactor of focus outline mixin
1 parent 9d72fce commit aacda4f

File tree

4 files changed

+22
-13
lines changed

4 files changed

+22
-13
lines changed

app/assets/stylesheets/partials/_effects.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,14 @@
1616

1717
// OUTLINE
1818

19-
@mixin set-focus-outline() {
19+
@mixin set-focus-outline-dark() {
2020
*:focus-visible {
2121
outline: 2px solid $color-focus-dark;
2222
}
2323
}
24+
25+
@mixin set-focus-outline() {
26+
*:focus-visible {
27+
outline: 2px solid $color-focus;
28+
}
29+
}

app/assets/stylesheets/partials/_header.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
.institute-bar, .libraries-header {
2-
@include set-focus-outline();
2+
@include set-focus-outline-dark();
33
}
44

55
.institute-bar {

app/assets/stylesheets/partials/_layouts.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
// FOOTER STYLES
4040

4141
.wrap-outer-footer, .wrap-outer-footer-institute {
42-
@include set-focus-outline();
42+
@include set-focus-outline-dark();
4343
}
4444

4545

app/assets/stylesheets/partials/_suggestion-panel.scss

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
#hint {padding-top: 24px;} //Temporary spacing above panel until we can revisit entire page layout
2+
13
.mitlib-suggestion-panel {
4+
5+
@include set-focus-outline;
6+
27
border: 4px solid $color-suggestion-border;
38

49
display: flex;
@@ -9,24 +14,26 @@
914

1015
.panel-type {
1116
color: $color-suggestion-accent-text;
12-
font-size: 14px;
17+
font-size: 1.4rem;
1318
font-weight: 600;
1419
margin-bottom: 8px;
1520
}
1621

1722
h3 {
18-
font-size: 20px;
19-
font-weight: 600;
20-
line-height: 1.25;
23+
font-size: 2rem;
2124
margin-bottom: 8px;
2225
}
2326

2427
p {
25-
font-size: 16px;
28+
font-size: 1.6rem;
29+
30+
&:last-child {
31+
margin-bottom: 0;
32+
}
2633
}
2734

2835
ul.metadata {
29-
font-size: 14px;
36+
font-size: 1.4rem;
3037
list-style: none inside;
3138
padding-left: 0;
3239
margin-bottom: 20px;
@@ -51,8 +58,6 @@
5158

5259
@include hover-transition;
5360

54-
@include set-focus-outline;
55-
5661
&:hover {
5762
background-color: $color-gray-100;
5863
}
@@ -71,8 +76,6 @@
7176

7277
@include hover-transition;
7378

74-
@include set-focus-outline;
75-
7679
&:hover {
7780
color: $color-white;
7881
background-color: $color-black;

0 commit comments

Comments
 (0)