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

move everything not explicitly riot (or status) branded into matrix-react-sdk #1836

Merged
merged 34 commits into from
Apr 18, 2018
Merged
Show file tree
Hide file tree
Changes from 19 commits
Commits
Show all changes
34 commits
Select commit Hold shift + click to select a range
8ab8f76
move non-Riot-specific components over from riot-web
ara4n Apr 11, 2018
178fb64
move notifications logic over from riot-web
ara4n Apr 11, 2018
70f3804
move room directory logic over from riot-web
ara4n Apr 11, 2018
79d3cca
move components' CSS to be in the same repo as their JS
ara4n Apr 11, 2018
cdb5d48
organise themes (even light & dark) in the SDK layer
ara4n Apr 11, 2018
848403a
move default fonts over from riot-web
ara4n Apr 11, 2018
8ce4df7
move non-Riot image resources over from riot-web
ara4n Apr 11, 2018
8371774
move default ringtones over from riot-web
ara4n Apr 11, 2018
7ae1b37
add notif UTs
ara4n Apr 12, 2018
cc904be
add NVL
ara4n Apr 12, 2018
40a67ca
point imports at the new locations
ara4n Apr 12, 2018
5d03eab
rethemedex
ara4n Apr 12, 2018
5f3e444
fix theme paths
ara4n Apr 13, 2018
0336d99
move VectorConferenceHandler over and use getUpdateCheckStatusEnum vi…
ara4n Apr 13, 2018
efe466e
move rageshake to sdk
ara4n Apr 13, 2018
1376563
use new rageshake location
ara4n Apr 13, 2018
610747e
fix paths and updateCheckStatusEnum
ara4n Apr 13, 2018
a30fdaf
copy all the i18n over from vector-web via copy-i18n.py
ara4n Apr 15, 2018
cb5ff40
fix missing i18n
ara4n Apr 15, 2018
faa1924
run gen-i18n to normalise en_EN and remove stuff still in vector-web
ara4n Apr 15, 2018
df564af
run prune-i18n to bring the translations back in line with normalised…
ara4n Apr 15, 2018
fe5e68d
fix tests
ara4n Apr 15, 2018
4da804f
Merge branch 'develop' into matthew/fix_layering
ara4n Apr 15, 2018
32dd7f9
merge vector-im/riot-web#5881 into matrix-react-sdk
ara4n Apr 15, 2018
f1f7673
ignore lint errors in stuff moved over from vector-web for now
ara4n Apr 16, 2018
46f5c0d
finish merging vector-im/riot-web#5881 into matrix-react-sdk
ara4n Apr 16, 2018
eca5a96
add i18n which weren't correctly copied over from vector-web by copy-…
ara4n Apr 17, 2018
ce809e1
fix i18n thinko on createTrackedDialog
ara4n Apr 17, 2018
d91c7f5
Add comment about enum hijinks
ara4n Apr 17, 2018
7b53e36
retheming commentary
ara4n Apr 17, 2018
6d15634
fix missing NLs
ara4n Apr 17, 2018
f84573e
convert HomePage to ES6 and split out the vectory bit
ara4n Apr 18, 2018
0571c59
move deps from vector-web to sdk; resolve version mismatches...
ara4n Apr 18, 2018
92c98aa
displayName should be tracked as static
ara4n Apr 18, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
1 change: 1 addition & 0 deletions header
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2017, 2018 New Vector Ltd

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
Expand Down
361 changes: 361 additions & 0 deletions res/css/_common.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,361 @@
/*
Copyright 2015, 2016 OpenMarket Ltd
Copyright 2017 Vector Creations Ltd
Copyright 2017 New Vector Ltd

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.
*/

html {
/* hack to stop overscroll bounce on OSX and iOS.
N.B. Breaks things when we have legitimate horizontal overscroll */
height: 100%;
overflow: hidden;
}

body {
font-family: $font-family;
font-size: 15px;
background-color: $primary-bg-color;
color: $primary-fg-color;
border: 0px;
margin: 0px;
/* This should render the fonts the same accross browsers */
-webkit-font-smoothing: subpixel-antialiased;
}

div.error, div.warning {
color: $warning-color;
}

h2 {
color: $primary-fg-color;
font-weight: 400;
font-size: 18px;
margin-top: 16px;
margin-bottom: 16px;
}

a:hover,
a:link,
a:visited {
color: $accent-color;
}

input[type=text], input[type=password], textarea {
background-color: transparent;
color: $primary-fg-color;
}

input[type=text].error, input[type=password].error {
border: 1px solid $warning-color;
}

input[type=text]:focus, input[type=password]:focus, textarea:focus {
border: 1px solid $accent-color;
outline: none;
box-shadow: none;
}

/* Required by Firefox */
textarea {
font-family: $font-family;
}

/* Prevent ugly dotted highlight around selected elements in Firefox */
::-moz-focus-inner {
border: 0;
}

/* applied to side-panels and messagepanel when in RoomSettings */
.mx_fadable {
opacity: 1;
transition: opacity 0.2s ease-in-out;
}

.mx_fadable.mx_fadable_faded {
opacity: 0.3;
pointer-events: none;
}

/* XXX: critical hack to GeminiScrollbar to allow them to work in FF 42 and Chrome 48.
Stop the scrollbar view from pushing out the container's overall sizing, which causes
flexbox to adapt to the new size and cause the view to keep growing.
*/
.gm-scrollbar-container .gm-scroll-view {
position: absolute;
}

/* Expand thumbs on hoverover */
.gm-scrollbar {
border-radius: 5px ! important;
}
.gm-scrollbar.-vertical {
width: 6px;
transition: width 120ms ease-out ! important;
}
.gm-scrollbar.-vertical:hover,
.gm-scrollbar.-vertical:active {
width: 8px;
transition: width 120ms ease-out ! important;
}
.gm-scrollbar.-horizontal {
height: 6px;
transition: height 120ms ease-out ! important;
}
.gm-scrollbar.-horizontal:hover,
.gm-scrollbar.-horizontal:active {
height: 8px;
transition: height 120ms ease-out ! important;
}

// These are magic constants which are excluded from tinting, to let themes
// (which only have CSS, unlike skins) tell the app what their non-tinted
// colourscheme is by inspecting the stylesheet DOM.
//
// They are not used for layout!!
#mx_theme_accentColor {
color: $accent-color;
}

#mx_theme_secondaryAccentColor {
color: $secondary-accent-color;
}

#mx_theme_tertiaryAccentColor {
color: $roomsublist-label-bg-color;
}

.mx_Dialog_wrapper {
position: fixed;
z-index: 4000;
top: 0;
left: 0;
width: 100%;
height: 100%;

display: flex;
align-items: center;
justify-content: center;
}

/* Spinner Dialog overide */
.mx_Dialog_wrapper.mx_Dialog_spinner .mx_Dialog {
width: auto;
border-radius: 8px;
padding: 0px;
box-shadow: none;
}

/* View Source Dialog overide */
.mx_Dialog_wrapper.mx_Dialog_viewsource .mx_Dialog {
padding-left: 10px;
padding-right: 10px;
}

.mx_Dialog {
background-color: $primary-bg-color;
color: $light-fg-color;
z-index: 4010;
font-weight: 300;
font-size: 15px;
position: relative;
padding-left: 58px;
padding-bottom: 36px;
width: 60%;
max-width: 704px;
box-shadow: 0 1px 0 0 rgba(0, 0, 0, 0.2);
max-height: 80%;
overflow-y: auto;
}

.mx_Dialog_background {
position: fixed;
top: 0;
left: 0;
width: 100%;
height: 100%;
background-color: $dialog-background-bg-color;
opacity: 0.8;
}

.mx_Dialog_lightbox .mx_Dialog_background {
opacity: 0.85;
background-color: $lightbox-background-bg-color;
}

.mx_Dialog_lightbox .mx_Dialog {
border-radius: 0px;
background-color: transparent;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
pointer-events: none;
}

.mx_Dialog_cancelButton {
position: absolute;
right: 11px;
top: 13px;
cursor: pointer;
}

.mx_Dialog_cancelButton object {
pointer-events: none;
}

.mx_Dialog_content {
margin: 24px 58px 68px 0;
font-size: 14px;
color: $primary-fg-color;
word-wrap: break-word;
}

.mx_Dialog button, .mx_Dialog input[type="submit"] {
@mixin mx_DialogButton;
margin-left: 0px;
margin-right: 8px;

// flip colours for the secondary ones
font-weight: 600;
border: 1px solid $accent-color ! important;
color: $accent-color;
background-color: $accent-fg-color;
}

.mx_Dialog button:hover, .mx_Dialog input[type="submit"]:hover {
@mixin mx_DialogButton_hover;
}

.mx_Dialog button:focus, .mx_Dialog input[type="submit"]:focus {
filter: brightness($focus-brightness);
}

.mx_Dialog button.mx_Dialog_primary, .mx_Dialog input[type="submit"].mx_Dialog_primary {
color: $accent-fg-color;
background-color: $accent-color;
}

.mx_Dialog button.danger, .mx_Dialog input[type="submit"].danger {
background-color: $warning-color;
border: solid 1px $warning-color;
}

.mx_Dialog button:disabled, .mx_Dialog input[type="submit"]:disabled {
background-color: $light-fg-color;
border: solid 1px $light-fg-color;
opacity: 0.7;
}

.mx_Dialog_title {
min-height: 16px;
padding-top: 40px;
font-weight: bold;
font-size: 22px;
line-height: 1.4;
color: $primary-fg-color;
}

.mx_Dialog_title.danger {
color: $warning-color;
}

.mx_TextInputDialog_label {
text-align: left;
padding-bottom: 12px;
}

.mx_TextInputDialog_input {
font-size: 15px;
border-radius: 3px;
border: 1px solid $input-border-color;
padding: 9px;
color: $primary-fg-color;
background-color: $primary-bg-color;
}

.mx_emojione {
height: 1em;
vertical-align: middle;
}

::-moz-selection {
background-color: $accent-color;
color: $selection-fg-color;
}

::selection {
background-color: $accent-color;
color: $selection-fg-color;
}

.mx_textButton {
@mixin mx_DialogButton_small;
}

.mx_textButton:hover {
@mixin mx_DialogButton_hover;
}

.mx_button_row {
margin-top: 69px;
}

.mx_Beta {
color: red;
margin-right: 10px;
position: relative;
top: -3px;
background-color: white;
padding: 0 4px;
border-radius: 3px;
border: 1px solid darkred;
cursor: help;
transition-duration: 200ms;
font-size: smaller;
filter: opacity(0.5);
}

.mx_Beta:hover {
color: white;
border: 1px solid gray;
background-color: darkred;
}

.mx_TintableSvgButton {
position: relative;
display: flex;
flex-direction: row;
justify-content: center;
align-content: center;
}

.mx_TintableSvgButton object {
margin: 0;
padding: 0;
width: 100%;
height: 100%;
max-width: 100%;
max-height: 100%;
}

.mx_TintableSvgButton span {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
opacity: 0;
cursor: pointer;
}
Loading