Skip to content

Commit 2a0bd6e

Browse files
authored
Merge pull request #69142 from wgordon17/edit-button-css
Add edit button CSS styling
2 parents fec4e14 + 57a6982 commit 2a0bd6e

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

_stylesheets/docs.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,23 @@ nav#main {
3636
margin-left: 20px;
3737
}
3838

39+
/* Styling for new page/section edit buttons */
40+
.edit-page-button {
41+
z-index: 1;
42+
/* Absolutely aligns element with next "relative" parent */
43+
position: absolute;
44+
top: 15px;
45+
/* 25px to match parent padding */
46+
right: 25px;
47+
}
48+
.edit-section-button {
49+
z-index: 1;
50+
float: right;
51+
position: relative;
52+
top: 5px;
53+
right: 10px;
54+
}
55+
3956
/* Tweaks for the Google-generated search widget */
4057
.cse .gsc-control-cse, .gsc-control-cse, table.gsc-search-box td.gsc-input {
4158
padding: 0;
@@ -339,6 +356,7 @@ h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6 {
339356
position: relative;
340357
text-transform: none;
341358
overflow-wrap: break-word;
359+
padding-right: 35px !important;
342360
}
343361

344362
h2>a.anchor, h3>a.anchor, h4>a.anchor, h5>a.anchor, h6>a.anchor {

0 commit comments

Comments
 (0)