/* * SonarQube * Copyright (C) 2009-2016 SonarSource SA * mailto:contact AT sonarsource DOT com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 3 of the License, or (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public License * along with this program; if not, write to the Free Software Foundation, * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. */ @import (reference) "../mixins"; @import (reference) "../variables"; @workspace-height: 30px; @workspace-padding: (@workspace-height - @formControlHeight) / 2; .workspace-nav { position: fixed; z-index: @workspace-nav-z-index; bottom: 0; right: 0; height: @workspace-height; } .workspace-nav-list { float: right; } .workspace-nav-item { float: left; vertical-align: middle; margin-right: 10px; padding: @workspace-padding 10px; background-color: #404040; color: #fff; font-size: @smallFontSize; font-weight: 300; cursor: pointer; & > i { position: relative; top: -2px; vertical-align: middle; } } .workspace-viewer { position: fixed; z-index: @workspace-viewer-z-index; bottom: 0; left: 0; right: 0; box-sizing: border-box; background-color: #fff; box-shadow: 0 -6px 12px rgba(0, 0, 0, .175); } .workspace-viewer-header { @topPadding: (30px - @formControlHeight) / 2; position: relative; height: 30px; padding: @topPadding 10px; box-sizing: border-box; background-color: #404040; color: #fff; font-weight: 300; } .workspace-viewer-name { float: left; line-height: @formControlHeight; color: @white; font-weight: 300; i { margin-top: 3px; } } .workspace-viewer-resize { position: absolute; top: 3px; left: 50%; width: 30px; height: 5px; margin-left: -15px; background-image: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMzBweCIgaGVpZ2h0PSI1cHgiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgeG1sOnNwYWN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mFuc2Zvcm09Im1hdHJpeCgxLDAsMCwxLDEyLDApIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIiBzdHlsZT0iZmlsbDojNzc3O2ZpbGwtb3BhY2l0eTowLjU7Ii8+PC9nPjxnIHRyYW5zZm9ybT0ibWF0cml4KDEsMCwwLDEsMTYsMCkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiIHN0eWxlPSJmaWxsOiM3Nzc7ZmlsbC1vcGFjaXR5OjAuNTsiLz48L2c+PGcgdHJhbnNmb3JtPSJtYXRyaXgoMSwwLDAsMSwyMCwwKSI+PHJlY3QgeD0iMCIgeT0iMCIgd2lkdGg9IjIiIGhlaWdodD0iMiIgc3R5bGU9ImZpbGw6Izc3NztmaWxsLW9wYWNpdHk6MC41OyIvPjwvZz48ZyB0cmFuc2Zvcm09Im1hdHJpeCgxLDAsMCwxLDI0LDApIj48cmVjdCB4PSIwIiB5PSIwIiB3aWR0aD0iMiIgaGVpZ2h0PSIyIiBzdHlsZT0iZmlsbDojNzc3O2ZpbGwtb3BhY2l0eTowLjU7Ii8+PC9nPjxnIHRyYW5zZm9ybT0ibWF0cml4KDEsMCwwLDEsMjgsMCkiPjxyZWN0IHg9IjAiIHk9IjAiIHdpZHRoPSIyIiBoZWlnaHQ9IjIiIHN0eWxlPSJmaWxsOiM3Nzc7ZmlsbC1vcGFjaXR5OjAuNTsiLz48L2c+PC9nPjwvZz48L3N2Zz4=); cursor: ns-resize; } .workspace-viewer-actions { float: right; line-height: @formControlHeight; a { color: inherit; } } .workspace-viewer-container { height: ~"calc(40vh - 30px)"; min-height: 100px; max-height: ~"calc(95vh - 30px)"; padding: 5px 10px; overflow-y: scroll; overflow-x: auto; box-sizing: border-box; } // Misc .with-workspace .source-viewer { padding-bottom: 40vh; } .with-workspace .workspace-viewer .source-viewer { padding-bottom: 0 }