Skip to content
Snippets Groups Projects
main.css 4 KiB
Newer Older
Bruno Windels's avatar
Bruno Windels committed
/*
Copyright 2020 The Matrix.org Foundation C.I.C.

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

@import url('spinner.css');
@import url('client.css');
@import url('preview.css');
@import url('create.css');
Bruno Windels's avatar
Bruno Windels committed
@import url('open.css');
Bruno Windels's avatar
Bruno Windels committed
:root {
	--app-background: #f4f4f4;
	--background: #ffffff;
	--foreground: #000000;
	--font: #333333;
	--grey: #666666;
	--accent: #0098d4;
	--error: #d6001c;
	--link: #0098d4;
	--borders: #f4f4f4;
    --lightgrey: #E6E6E6;
    --spinner-stroke-size: 2px;
Bruno Windels's avatar
Bruno Windels committed
}

html {
	margin: 0;
	padding: 0;
}

body {
	background-color: var(--app-background);
	background-image: url('../images/background.svg');
Bruno Windels's avatar
Bruno Windels committed
    background-attachment: fixed;
Bruno Windels's avatar
Bruno Windels committed
	background-repeat: no-repeat;
	background-size: auto;
	background-position: center -50px;
    height: 100%;
    width: 100%;
    font-size: 14px;
    color: var(--font);
    padding: 120px 0 0 0;
    margin: 0;
}

p { line-height: 150%; }
a { text-decoration: none; }
Bruno Windels's avatar
Bruno Windels committed

h1 { font-size: 24px; }
h2 { font-size: 21px; }
h3 { font-size: 16px; }
Bruno Windels's avatar
Bruno Windels committed

Bruno Windels's avatar
Bruno Windels committed
body,
button,
input,
textarea {
    font-family: Helvetica Neue, Helvetica, Arial, sans-serif;
    font-style: normal;
}

button, input[type=submit] {
Bruno Windels's avatar
Bruno Windels committed
    cursor: pointer;
}

button, input {
    font-size: inherit;
    font-weight: inherit;
}

input[type="checkbox"], input[type="radio"] {
    margin: 0 8px 0 0;
}

Bruno Windels's avatar
Bruno Windels committed
.RootView {
    margin: 0 auto;
	max-width: 480px;
	width: 100%;
}

.card {
Bruno Windels's avatar
Bruno Windels committed
	background-color: var(--background);
    border-radius: 16px;
    box-shadow: 0px 18px 24px rgba(0, 0, 0, 0.06);
}

.card, .footer {
Bruno Windels's avatar
Bruno Windels committed
    padding: 2rem;
}

.hidden {
	display: none !important;
}


@media screen and (max-width: 480px) {
    body {
    	background-image: none;
    	background-color: var(--background);
    	padding: 0;
    }

    .card {
    	border-radius: unset;
    	box-shadow: unset;
    }
}

.footer .links li:not(:first-child) {
    margin-left: 0.5em;
}

.footer .links li:not(:first-child)::before {
    content: "·";
    margin-right: 0.5em;
}

.footer .links li {
    display: inline-block;
}

.footer .links {
Bruno Windels's avatar
Bruno Windels committed
    font-size: 12px;
    list-style: none;
    padding: 0;
}

	color: var(--link);
}

button.text {
    background: none;
    border: none;
    font-style: normal;
    font-weight: normal;
    font-size: inherit;
    padding: 8px 0;
    margin: -8px 0;
}

button.text:hover {
    cursor: pointer;
.primary, .secondary {
    text-decoration: none;
    font-weight: bold;
    text-align: center;
Bruno Windels's avatar
Bruno Windels committed
    padding: 12px 8px;
.secondary {
    background: var(--background);
    color: var(--link);
    border: 1px solid var(--link);
    border-radius: 32px;
.primary {
    background: var(--link);
    color: var(--background);
    border-radius: 32px;
}

Bruno Windels's avatar
Bruno Windels committed
.primary.icon, .secondary.icon {
Bruno Windels's avatar
Bruno Windels committed
    background-repeat: no-repeat;
    background-position: 12px center;
}

Bruno Windels's avatar
Bruno Windels committed
.icon.link { background-image: url('../images/link.svg'); }
.icon.tick { background-image: url('../images/tick.svg'); }
.icon.copy { background-image: url('../images/copy.svg'); }
button.primary, input[type='submit'].primary, button.secondary, input[type='submit'].secondary {
input[type='text'].large {
    width: 100%;
    padding: 12px;
    background: var(--background);
    border: 1px solid var(--foreground);
    border-radius: 16px;
    font-size: 14px;
}


.LoadServerPolicyView {
    display: flex;
}

.LoadServerPolicyView .spinner {
    width: 32px;
    height: 32px;
    margin-right: 12px;
}

.LoadServerPolicyView h2 {
    margin-top: 0;
}