Bring in TabbedView nearly verbatim from prior work
Sourced from https://github.com/matrix-org/matrix-react-sdk/pull/1644 and related PRs.
This commit is contained in:
parent
0e42c0892e
commit
5adfc09237
8 changed files with 284 additions and 28 deletions
|
@ -18,6 +18,7 @@
|
|||
@import "./structures/_RoomSubList.scss";
|
||||
@import "./structures/_RoomView.scss";
|
||||
@import "./structures/_SearchBox.scss";
|
||||
@import "./structures/_TabbedView.scss";
|
||||
@import "./structures/_TagPanel.scss";
|
||||
@import "./structures/_TopLeftMenuButton.scss";
|
||||
@import "./structures/_UploadBar.scss";
|
||||
|
|
76
res/css/structures/_TabbedView.scss
Normal file
76
res/css/structures/_TabbedView.scss
Normal file
|
@ -0,0 +1,76 @@
|
|||
/*
|
||||
Copyright 2017 Travis Ralston
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
.mx_TabbedView {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
display: flex;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: $tab-panel-bg-color;
|
||||
}
|
||||
|
||||
.mx_TabbedView_tabLabels {
|
||||
width: 300px;
|
||||
height: 100%;
|
||||
background-color: $tab-list-bg-color;
|
||||
color: $tab-list-fg-color;
|
||||
border-right: 1px solid $tab-border-color;
|
||||
border-left: 1px solid $tab-border-color;
|
||||
}
|
||||
|
||||
.mx_TabbedView_tabPanels {
|
||||
width: calc(100% - 320px);
|
||||
display: inline-block;
|
||||
height: 100%;
|
||||
padding-left: 20px;
|
||||
scroll-snap-type: block;
|
||||
}
|
||||
|
||||
.mx_TabbedView_tabLabel {
|
||||
text-align: center;
|
||||
vertical-align: middle;
|
||||
text-transform: uppercase;
|
||||
cursor: pointer;
|
||||
display: block;
|
||||
padding: 20px;
|
||||
width: calc(100% - 40px);
|
||||
border-bottom: 1px solid $tab-border-color;
|
||||
}
|
||||
|
||||
.mx_TabbedView_exit {
|
||||
padding-top: 10px;
|
||||
padding-bottom: 10px;
|
||||
}
|
||||
|
||||
.mx_TabbedView_tabLabel:hover {
|
||||
font-weight: 700;
|
||||
}
|
||||
|
||||
.mx_TabbedView_tabLabel_active {
|
||||
font-weight: 700;
|
||||
background-color: $tab-list-active-bg-color;
|
||||
color: $tab-list-active-fg-color;
|
||||
}
|
||||
|
||||
.mx_TabbedView_tabPanel {
|
||||
height: 100vh; // 100% of viewport height
|
||||
scroll-snap-align: start;
|
||||
}
|
||||
|
||||
.mx_TabbedView_tabPanelContent {
|
||||
width: 600px;
|
||||
}
|
|
@ -186,6 +186,14 @@ $lightbox-bg-color: #454545;
|
|||
$lightbox-fg-color: #ffffff;
|
||||
$lightbox-border-color: #ffffff;
|
||||
|
||||
// Tabbed views
|
||||
$tab-list-bg-color: $secondary-accent-color;
|
||||
$tab-list-fg-color: $accent-color;
|
||||
$tab-list-active-bg-color: $tertiary-accent-color;
|
||||
$tab-list-active-fg-color: $accent-color;
|
||||
$tab-border-color: $tertiary-accent-color;
|
||||
$tab-panel-bg-color: #fff;
|
||||
|
||||
// unused?
|
||||
$progressbar-color: #000;
|
||||
|
||||
|
|
|
@ -66,6 +66,7 @@ $primary-hairline-color: #e5e5e5;
|
|||
|
||||
// used for the border of input text fields
|
||||
$input-border-color: #f0f0f0;
|
||||
$input-border-dark-color: #b8b8b8;
|
||||
|
||||
$input-darker-bg-color: #c1c9d6;
|
||||
$input-darker-fg-color: #9fa9ba;
|
||||
|
@ -181,6 +182,14 @@ $imagebody-giflabel: rgba(0, 0, 0, 0.7);
|
|||
$imagebody-giflabel-border: rgba(0, 0, 0, 0.2);
|
||||
$imagebody-giflabel-color: rgba(255, 255, 255, 1);
|
||||
|
||||
// Tabbed views
|
||||
$tab-list-bg-color: $secondary-accent-color;
|
||||
$tab-list-fg-color: $accent-color;
|
||||
$tab-list-active-bg-color: $tertiary-accent-color;
|
||||
$tab-list-active-fg-color: $accent-color;
|
||||
$tab-border-color: $tertiary-accent-color;
|
||||
$tab-panel-bg-color: #fff;
|
||||
|
||||
// unused?
|
||||
$progressbar-color: #000;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue