Skip to content

Commit 05b02af

Browse files
authored
Merge pull request #17 from rakeshAlgo/style-guide-ui
copy to clipboard UI fixes
2 parents 07a8a6a + 1dc01db commit 05b02af

File tree

3 files changed

+28
-9
lines changed

3 files changed

+28
-9
lines changed

src/css/clipboard.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33
background: url(../img/copy.png) no-repeat center right/contain;
44
width: 24px;
55
height: 14px;
6-
right: 0.5rem;
7-
top: 8px;
6+
right: 1rem;
7+
top: 12px;
88
display: none;
99
cursor: pointer;
1010
font-family: "Source Sans Pro", sans-serif;

src/css/component-frame.css

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,9 +49,12 @@
4949
background: var(--color-brand-white);
5050
padding: 5px 15px;
5151
left: -15px;
52-
top: 50px;
52+
top: 60px;
5353
border-radius: 4px;
5454
z-index: 1;
55+
border-radius: 4px;
56+
z-index: 1;
57+
box-shadow: 0px 3px 10px -4px var(--color-brand-gray8);
5558
}
5659

5760
.frame-dropdown .frame-dropdown-list {
@@ -60,14 +63,30 @@
6063
list-style: none;
6164
}
6265

66+
ul.frame-dropdown-list li {
67+
border-bottom: 1px solid var(--color-brand-gray8);
68+
padding-bottom: 5px;
69+
margin-bottom: 5px;
70+
}
71+
72+
ul.frame-dropdown-list li:last-child {
73+
border-bottom: 0;
74+
margin-bottom: 0;
75+
padding-bottom: 0;
76+
}
77+
6378
.frame-link,
6479
.frame-item {
65-
font-size: 1rem;
80+
font-size: var(--font-small);
6681
color: var(--color-brand-gray4);
6782
text-decoration: none;
6883
}
6984

7085
.frame-link:hover,
71-
.frame-item:hover {
86+
.frame-item:hover,
87+
.frame-link:active,
88+
.frame-item:active,
89+
.frame-link:visited,
90+
.frame-item:visited {
7291
text-decoration: none;
7392
}

src/css/doc.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -495,7 +495,7 @@
495495
color: var(--color-brand-gray1);
496496
font-weight: var(--weight-normal);
497497
/* needed to override third-party styles */
498-
padding-left: var(--base-small-space);
498+
padding-left: var(--base-space);
499499
padding-right: var(--base-small-space);
500500
padding-top: var(--base-large-space);
501501
padding-bottom: var(--base-large-space);
@@ -575,10 +575,10 @@
575575
line-height: 18px;
576576
text-transform: uppercase;
577577
position: absolute;
578-
top: 0.375rem;
579-
right: 2rem;
578+
top: 12px;
579+
right: 2.4rem;
580580
font-family: "Source Sans Pro", sans-serif;
581-
padding-right: 6px;
581+
padding-right: 0.5rem;
582582
border-right: 1px solid var(--color-brand-gray9);
583583
}
584584

0 commit comments

Comments
 (0)