mirror of
https://github.com/RetroShare/RSNewWebUI.git
synced 2026-09-14 11:05:47 +05:00
feat: define a better typography for the whole web interface
This commit is contained in:
parent
2846170f61
commit
0d69e44786
21
webui-src/app/scss/abstracts/_colors.scss
Normal file
21
webui-src/app/scss/abstracts/_colors.scss
Normal file
@ -0,0 +1,21 @@
|
||||
//---------------------------------- Colors ----------------------------------//
|
||||
/// Primary Retro color
|
||||
$primary-retro-color: #118fcc !default;
|
||||
|
||||
/// Primary color
|
||||
$primary-color: #019dff !default;
|
||||
|
||||
/// Primary light color
|
||||
$primary-light-color: #9bdaff !default;
|
||||
|
||||
/// Light red
|
||||
$red-color: #ff3a4a !default;
|
||||
|
||||
/// Dark
|
||||
$dark-color: #14141b !default;
|
||||
|
||||
/// Light
|
||||
$light-color: #eef3f6 !default;
|
||||
|
||||
/// Message Starred Color
|
||||
$golden-yellow-color: #fcba03;
|
||||
@ -1,3 +1,5 @@
|
||||
@forward "variables";
|
||||
@forward "mixins";
|
||||
@forward "functions";
|
||||
@forward 'variables';
|
||||
@forward 'colors';
|
||||
@forward 'mixins';
|
||||
@forward 'functions';
|
||||
@forward 'typography';
|
||||
|
||||
45
webui-src/app/scss/abstracts/_typography.scss
Normal file
45
webui-src/app/scss/abstracts/_typography.scss
Normal file
@ -0,0 +1,45 @@
|
||||
//-------------------------------- Typography --------------------------------//
|
||||
h1 {
|
||||
font-size: 3rem;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-size: 2.25rem;
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 1.875rem;
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.5rem;
|
||||
}
|
||||
|
||||
h5 {
|
||||
font-size: 1.25rem;
|
||||
}
|
||||
|
||||
h6 {
|
||||
font-size: 1.125rem;
|
||||
}
|
||||
|
||||
p {
|
||||
font-size: 1rem;
|
||||
}
|
||||
|
||||
.small {
|
||||
font-size: 0.875rem;
|
||||
}
|
||||
|
||||
.bold {
|
||||
font-weight: bold;
|
||||
}
|
||||
|
||||
h1,
|
||||
h2,
|
||||
h3,
|
||||
h4,
|
||||
h5,
|
||||
p {
|
||||
font-weight: normal;
|
||||
}
|
||||
@ -1,22 +1,3 @@
|
||||
// -----------------------------------------------------------------------------
|
||||
// This file contains all application-wide Sass variables.
|
||||
// -----------------------------------------------------------------------------
|
||||
|
||||
//---------------------------------- Colors ----------------------------------//
|
||||
/// Primary color
|
||||
$primary-color: #019dff !default;
|
||||
|
||||
/// Primary light color
|
||||
$primary-light-color: #9bdaff !default;
|
||||
|
||||
/// Light red
|
||||
$red-color: #ff3a4a !default;
|
||||
|
||||
/// Dark
|
||||
$dark-color: #14141b !default;
|
||||
|
||||
/// Light
|
||||
$light-color: #eef3f6 !default;
|
||||
|
||||
/// Message Starred Color
|
||||
$golden-yellow-color: #fcba03;
|
||||
|
||||
@ -75,8 +75,6 @@ table tr {
|
||||
}
|
||||
|
||||
h3 {
|
||||
font-size: 2em;
|
||||
font-weight: 100;
|
||||
color: #444;
|
||||
}
|
||||
hr {
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
html {
|
||||
font-size: 100%;
|
||||
font-size: 14px;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
@ -26,8 +26,8 @@ dd {
|
||||
}
|
||||
|
||||
/* Remove list styles on ul, ol elements with a list role, which suggests default styling will be removed */
|
||||
ul[role="list"],
|
||||
ol[role="list"] {
|
||||
ul[role='list'],
|
||||
ol[role='list'] {
|
||||
list-style: none;
|
||||
}
|
||||
|
||||
@ -66,7 +66,7 @@ select {
|
||||
/* Remove all animations and transitions for people that prefer not to see them */
|
||||
@media (prefers-reduced-motion: reduce) {
|
||||
html:focus-within {
|
||||
scroll-behavior: auto;
|
||||
scroll-behavior: auto;
|
||||
}
|
||||
*,
|
||||
*::before,
|
||||
|
||||
@ -13,7 +13,6 @@
|
||||
margin-right: 0rem;
|
||||
|
||||
&__logo {
|
||||
width: 130px;
|
||||
padding: 1.2rem 0;
|
||||
display: flex;
|
||||
gap: 0.3rem;
|
||||
@ -25,6 +24,7 @@
|
||||
}
|
||||
|
||||
h4 {
|
||||
font-size: 1.3rem;
|
||||
color: white;
|
||||
align-self: end;
|
||||
}
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
@use '../abstracts/variables' as *;
|
||||
@use '../abstracts/colors' as *;
|
||||
|
||||
.config-node-panel {
|
||||
position: relative;
|
||||
|
||||
@ -1,4 +1,4 @@
|
||||
@use '../abstracts/variables' as *;
|
||||
@use '../abstracts/colors' as *;
|
||||
|
||||
.file-view {
|
||||
width: 90%;
|
||||
|
||||
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue
Block a user