Skip to content
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
255 changes: 235 additions & 20 deletions css/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -336,6 +336,22 @@ button.disabled {
.selector-url(-600px,100px);
}

.layout-6x4-scale-horizontal {
.selector-url(-700px,100px);
}

.layout-7x3-scale-horizontal {
.selector-url(-900px,100px);
}

.layout-6x4-scale-vertical {
.selector-url(-1100px,100px);
}

.layout-7x3-scale-vertical {
.selector-url(-1200px,100px);
}

.close-button {
display: block;

Expand Down Expand Up @@ -461,10 +477,10 @@ button.disabled {
padding-right: 5px;
}

.rate-it {
.rate-it, .keyboard-shortcuts {
border-left: 1px solid silver;
padding-left: 5px;
padding-right: 0px;
padding-right: 5px;
}
}

Expand Down Expand Up @@ -532,6 +548,83 @@ button.disabled {

.custom-view {

.modal-body, .modal-footer {
position: relative;
}

.scaled-layout-orientation {
display: none;
position: absolute;
right: 21px;
top: 12px;
width: 200px;
height: 30px;
}

.layout-option {
position: absolute;
left: 20px;
top: 6px;
width: 180px;
height: 25px;

label {
font-size: 14px;
line-height: 25px;
}
}

.scaled-input-container {
display: none;
position: absolute;
right: -3px;
top: 60px;

.scaled-input {
display: inline-block;
width: 70px;
height: 70px;
border-radius: 3px;
margin-right: 35px;
border: 2px solid grey;
text-align: center;
font-size: 19px;
cursor: pointer;
line-height: 70px;

&.selected {
background: #eee;
}
}
}

&.scaled {
.scaled-layout-orientation {
display: block;
}

.input-container {
visibility: hidden;
}

.table-container {
.table-label-top, .table-label-left {
visibility: hidden;
}
}

.scaled-input-container {
display: block;
}

.modal-footer {
button.disabled {
pointer-events: auto;
opacity: 1;
}
}
}

.table-container {
display: inline-block;
position: relative;
Expand Down Expand Up @@ -745,6 +838,42 @@ body {
.tab-layer {
float: right !important;
}

.layout-6x4-scale-horizontal {
.selector-url(-800px,0px);
}

.layout-7x3-scale-horizontal {
.selector-url(-1000px,0px);
}

.layout-6x4-scale-vertical {
.selector-url(-1100px,0px);
}

.layout-7x3-scale-vertical {
.selector-url(-1200px,0px);
}

.main-view .resize-container .resize-selector-container {
&:hover {
.layout-6x4-scale-horizontal {
.selector-url(-800px,100px);
}

.layout-7x3-scale-horizontal {
.selector-url(-1000px,100px);
}

.layout-6x4-scale-vertical {
.selector-url(-1100px,100px);
}

.layout-7x3-scale-vertical {
.selector-url(-1200px,100px);
}
}
}
}

&.empty-tab-not-selected {
Expand Down Expand Up @@ -888,6 +1017,110 @@ body {
}
}

.layout-6x4-scale-horizontal {
.selector-url(-700px,0px);

.tab-layer-1 {
width: 60%;
height: 100%;

.fav-icon {
top: 35px;
left: 17px;
}
}

.tab-layer-2 {
width: 40%;
height: 100%;

.fav-icon {
top: 35px;
left: 7px;
}
}
}

.layout-7x3-scale-horizontal {
.selector-url(-900px,0px);

.tab-layer-1 {
width: 67%;
height: 100%;

.fav-icon {
top: 35px;
left: 20px;
}
}

.tab-layer-2 {
width: 33%;
height: 100%;

.fav-icon {
top: 35px;
left: 3px;
}
}
}

.layout-6x4-scale-vertical {
.selector-url(-1100px,0px);

.tab-layer-1 {
width: 100%;
height: 60%;

.fav-icon {
top: 21px;
left: 35px;
}
}

.tab-layer-2 {
width: 100%;
height: 40%;

.fav-icon {
top: 15px;
left: 42px;
width: 18px !important;
height: 18px !important;
background-size: 18px 18px !important;
}
}
}

.layout-7x3-scale-vertical {
.selector-url(-1200px,0px);

.tab-layer-1 {
width: 100%;
height: 67%;

.fav-icon {
top: 24px;
left: 35px;
}
}

.tab-layer-2 {
width: 100%;
height: 33%;

.fav-icon {
top: 12px;
left: 42px;
width: 18px !important;
height: 18px !important;
background-size: 18px 18px !important;
}
}
}



//sortable styles
.sortable-placeholder {
width: 113px;
Expand All @@ -901,24 +1134,6 @@ body {
float: right;
}

#update-modal.partial-update {
.update-entry {
display: none;
&.latest {
display: block;
margin-bottom: 50px;
}
}

.update-list-footer {
display: none;
}

.modal-body {
height: 350px;
}
}

#warning-modal {
z-index: 10;
.header-title {
Expand Down
Binary file added images/icons/2ba46641a3448bef48bdce18d76d2b6f.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sprites/deprecated/layout_scale_6x4.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sprites/deprecated/layout_scale_7x3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/sprites/deprecated/layout_scale_7x3_hover.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified images/sprites/layouts.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
43 changes: 29 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</div>
</div>
<div id="display-setting-layer">
<div class="signature"><a title="Developed by peterdotjs - http://peterdotjs.com" target="_blank" href="http://peterdotjs.com">peterdotjs</a><a title="If you like Tab Resize you can help me by rating it &#9733; 5 stars and leaving a nice little review" class="rate-it" target="_blank" href="https://chrome.google.com/webstore/detail/tab-resize-split-screen-l/bkpenclhmiealbebdopglffmfdiilejc/reviews">&#9733; rate it</a></div>
<div class="signature"><a title="Developed by peterdotjs - http://peterdotjs.com" target="_blank" href="http://peterdotjs.com">peterdotjs</a><a title="If you like Tab Resize you can help me by rating it &#9733; 5 stars and leaving a nice little review" class="rate-it" target="_blank" href="https://chrome.google.com/webstore/detail/tab-resize-split-screen-l/bkpenclhmiealbebdopglffmfdiilejc/reviews">&#9733; rate it</a><a class="keyboard-shortcuts" target="_blank" href="javascript:;" title="keyboard shortcuts">hotkeys</a></div>
<div class="switch-toggle switch-candy">
<input id="left" name="view" type="radio" checked>
<label for="left" title="Left align tabs during resize">Left Align</label>
Expand All @@ -55,6 +55,13 @@
</div>
<div class="custom-view modal-box hidden">
<div class="modal-body">
<div class="switch-toggle switch-candy scaled-layout-orientation">
<input id="horizontal-scaled" name="scaled-layout-orientation" type="radio" checked="">
<label for="horizontal-scaled" title="horizontal scaled layout orientation">Horizontal</label>
<input id="vertical-scaled" name="scaled-layout-orientation" type="radio">
<label for="vertical-scaled" title="vertical scaled layout orientation">Vertical</label>
<a></a>
</div>
<div class="table-container">
<div class="table-label-top">columns</div>
<div class="table-label-left">rows</div>
Expand All @@ -72,8 +79,19 @@
<input type="text" class="custom-value columns" id="numCols" maxlength='1'>
</div>
</div>
<ul class="scaled-input-container">
<li class="scaled-input selected" data-type="6-4">6:4</li>
<li class="scaled-input" data-type="7-3">7:3</li>
</ul>
</div>
<div class = "input-container-footer modal-footer">
<div class="switch-toggle switch-candy layout-option">
<input id="fixed" name="layout-option" type="radio" checked="">
<label for="fixed" title="Fixed layout-option">Fixed</label>
<input id="scaled" name="layout-option" type="radio">
<label for="scaled" title="Scaled layout-option">Scaled</label>
<a></a>
</div>
<button class="button primary disabled" id="input-save">Save</button>
<button class="button" id="input-cancel">Cancel</button>
</div>
Expand Down Expand Up @@ -117,30 +135,27 @@
<div class="header-title-wrap">
<div class="icon-48"></div>
<div class="header-title">
Tab Resize 2.1.1 Updates
Tab Resize 2.2.0 Updates
</div>
</div>
<div class="update-list-header">What's New:</div>
<ul class="update-list">
<li class="update-entry">
<strong>Multiple monitor support!</strong> - individually select each display in your desktop setup
<strong>Scaled split screen layouts</strong> - you can now add split layouts for vertical and horizontal 7:3 and 6:4 ratio split screen in the custom view option by clicking the "+"icon in the extension popup.
</li>
<li class="update-entry">
<strong>Left and right option</strong> - align tabs to the left or right
</li>
<li class="update-entry">
<strong>Empty tab option</strong> - create empty tabs when selecting layouts
</li>
<li class="update-entry latest">
<strong>Drag and drop for sorting layouts</strong> - Click and hold on any layout and drag to rearange order to your liking
</li>
<li class="update-entry latest">
<strong>Highlighted tabs now can be resized</strong> - when 2 or more tabs are highlighted, only these tabs will be considered for resize. Credit goes to F.C. for the idea. <a target="_blank" href="http://www.cnet.com/how-to/how-to-manipulate-multiple-tabs-in-chrome-or-firefox/" title="In Chrome, you can select multiple tabs by clicking on tabs while holding down the Ctrl (Command for Mac) key or select a range of tabs by holding down the Shift key and clicking. http://www.cnet.com/how-to/how-to-manipulate-multiple-tabs-in-chrome-or-firefox/">Hover for more info.</a>
<strong>Keyboard Shortcut/Hotkeys enabled </strong> - You can now use tab resize with just keyboard shortcuts rather than opening up the extension from the icon. Add your own custom shotcut keys for various layout types by clicking here: <a class="keyboard-shortcuts" href="javascript:;" target="_blank">Keyboard shortcuts/hotkeys</a>
</li>
</ul>

<div class="additional-message bold">
-- Past change log <a href="/options.html" target="_blank">details</a> --
</div>

<div class="update-list-footer bold">
You can checkout the <a target="_blank" href="https://www.youtube.com/watch?v=GFHl98nAV04" title="https://www.youtube.com/watch?v=GFHl98nAV04">video demo</a> for a more detailed description.
You can checkout the <a target="_blank" href="https://www.youtube.com/watch?v=GFHl98nAV04" title="https://www.youtube.com/watch?v=GFHl98nAV04">video demo</a> for a more detailed description of how to use the extension.
</div>

<div class="additional-message bold">If you like the extension and find it useful please show your support by rating it in the <a target="_blank" href="https://chrome.google.com/webstore/detail/tab-resize-split-screen-l/bkpenclhmiealbebdopglffmfdiilejc/reviews" title="https://chrome.google.com/webstore/detail/tab-resize-split-screen-l/bkpenclhmiealbebdopglffmfdiilejc/reviews">web store</a>. Thanks! -Peter</div>
</div>
<div class="modal-footer">
Expand Down
Loading