Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Made the new tab button touch screen friendly #5927

Merged
merged 1 commit into from
Dec 1, 2016
Merged
Show file tree
Hide file tree
Changes from all 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
16 changes: 0 additions & 16 deletions less/button.less
Original file line number Diff line number Diff line change
Expand Up @@ -69,22 +69,6 @@ span.menuButton {
font-size: 12px;
}

&.newFrameButton {
font-size: 0px;
width: 12px;
max-height: 14px;
position: relative;
top: 7px;
left: 2px;
-webkit-mask-image: url('../img/toolbar/newtab_btn.svg');
-webkit-mask-repeat: no-repeat;
background-color: @buttonColor;
&:hover {
opacity: 1.0;
background-color: black;
}
}

&.primaryButton,
&.actionButton,
&.wideButton,
Expand Down
21 changes: 17 additions & 4 deletions less/tabs.less
Original file line number Diff line number Diff line change
Expand Up @@ -36,22 +36,35 @@
z-index: @zindexTabs;
overflow-x: hidden;
overflow-y: hidden;

&.allowDragging {
-webkit-app-region: drag;
>* {
-webkit-app-region: no-drag;
}
}
.browserButton {
height: 26px;
line-height: 22px;
}

&.isPreview {
opacity: 0.5;
animation: tabFadeIn 0.75s ease-in-out;
animation-fill-mode: forwards;
}

.newFrameButton {
background: @buttonColor;
width: 14px;
height: 24px;
line-height: 24px;
-webkit-mask-image: url('../img/toolbar/newtab_btn.svg');
-webkit-mask-repeat: no-repeat;
-webkit-mask-position: center;
-webkit-mask-size: 12px 12px;
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the plus image is 12x12 and centered, increasing the height of the button (which is clickable) to 24px.


&:hover {
opacity: 1.0;
background-color: black;
}
}
}

.tab {
Expand Down