mirror of
https://github.com/aquatix/digimarks.git
synced 2025-12-06 23:05:10 +01:00
Moved label colours to template/theme; added freshgreen and dark
This commit is contained in:
38
digimarks.py
38
digimarks.py
@@ -18,6 +18,8 @@ from peewee import * # noqa
|
|||||||
themes = {
|
themes = {
|
||||||
'green': {
|
'green': {
|
||||||
'BODY': 'grey lighten-4',
|
'BODY': 'grey lighten-4',
|
||||||
|
'TEXT': 'black-text',
|
||||||
|
'TEXTHEX': '#000',
|
||||||
'NAV': 'green darken-3',
|
'NAV': 'green darken-3',
|
||||||
'PAGEHEADER': 'grey-text lighten-5',
|
'PAGEHEADER': 'grey-text lighten-5',
|
||||||
'MESSAGE_BACKGROUND': 'orange lighten-2',
|
'MESSAGE_BACKGROUND': 'orange lighten-2',
|
||||||
@@ -28,6 +30,42 @@ themes = {
|
|||||||
'CARD_TEXT': 'white-text',
|
'CARD_TEXT': 'white-text',
|
||||||
'FAB': 'red',
|
'FAB': 'red',
|
||||||
|
|
||||||
|
'STAR': 'yellow-text',
|
||||||
|
'PROBLEM': 'red-text',
|
||||||
|
'COMMENT': '',
|
||||||
|
},
|
||||||
|
'freshgreen': {
|
||||||
|
'BODY': 'grey lighten-5',
|
||||||
|
'TEXT': 'black-text',
|
||||||
|
'TEXTHEX': '#000',
|
||||||
|
'NAV': 'green darken-1',
|
||||||
|
'PAGEHEADER': 'grey-text lighten-5',
|
||||||
|
'MESSAGE_BACKGROUND': 'orange lighten-2',
|
||||||
|
'MESSAGE_TEXT': 'white-text',
|
||||||
|
'ERRORMESSAGE_BACKGROUND': 'red darken-1',
|
||||||
|
'ERRORMESSAGE_TEXT': 'white-text',
|
||||||
|
'CARD_BACKGROUND': 'green darken-1',
|
||||||
|
'CARD_TEXT': 'white-text',
|
||||||
|
'FAB': 'red',
|
||||||
|
|
||||||
|
'STAR': 'yellow-text',
|
||||||
|
'PROBLEM': 'red-text',
|
||||||
|
'COMMENT': '',
|
||||||
|
},
|
||||||
|
'dark': {
|
||||||
|
'BODY': 'grey darken-4',
|
||||||
|
'TEXT': 'grey-text lighten-1',
|
||||||
|
'TEXTHEX': '#bdbdbd',
|
||||||
|
'NAV': 'grey darken-3',
|
||||||
|
'PAGEHEADER': 'grey-text lighten-1',
|
||||||
|
'MESSAGE_BACKGROUND': 'orange lighten-2',
|
||||||
|
'MESSAGE_TEXT': 'white-text',
|
||||||
|
'ERRORMESSAGE_BACKGROUND': 'red darken-1',
|
||||||
|
'ERRORMESSAGE_TEXT': 'white-text',
|
||||||
|
'CARD_BACKGROUND': 'grey darken-3',
|
||||||
|
'CARD_TEXT': 'grey-text lighten-1',
|
||||||
|
'FAB': 'red',
|
||||||
|
|
||||||
'STAR': 'yellow-text',
|
'STAR': 'yellow-text',
|
||||||
'PROBLEM': 'red-text',
|
'PROBLEM': 'red-text',
|
||||||
'COMMENT': '',
|
'COMMENT': '',
|
||||||
|
|||||||
@@ -18,16 +18,6 @@ nav .button-collapse i
|
|||||||
|
|
||||||
/** Form input fields **/
|
/** Form input fields **/
|
||||||
|
|
||||||
/* label color */
|
|
||||||
.input-field label
|
|
||||||
{
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
/* label focus color */
|
|
||||||
.input-field input[type=text]:focus + label
|
|
||||||
{
|
|
||||||
color: #000;
|
|
||||||
}
|
|
||||||
/* label underline focus color */
|
/* label underline focus color */
|
||||||
.input-field input[type=text]:focus
|
.input-field input[type=text]:focus
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -18,10 +18,22 @@
|
|||||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||||
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
|
<link href='https://fonts.googleapis.com/css?family=Roboto+Mono&subset=latin,latin-ext' rel='stylesheet' type='text/css'>
|
||||||
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
<link href="https://cdnjs.cloudflare.com/ajax/libs/materialize/0.100.1/css/materialize.min.css" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||||
<link href="{{ url_for('static', filename='css/digimarks.css') }}?20170204" type="text/css" rel="stylesheet" media="screen,projection"/>
|
<style>
|
||||||
|
/* label color */
|
||||||
|
.input-field label
|
||||||
|
{
|
||||||
|
color: {{ theme.TEXTHEX }};
|
||||||
|
}
|
||||||
|
/* label focus color */
|
||||||
|
.input-field input[type=text]:focus + label
|
||||||
|
{
|
||||||
|
color: {{ theme.TEXTHEX }};
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
<link href="{{ url_for('static', filename='css/digimarks.css') }}?20170722" type="text/css" rel="stylesheet" media="screen,projection"/>
|
||||||
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body class="{{ theme.BODY }}">
|
<body class="{{ theme.BODY }} {{ theme.TEXT }}">
|
||||||
<nav class="{{ theme.NAV }}" role="navigation">
|
<nav class="{{ theme.NAV }}" role="navigation">
|
||||||
<div class="nav-wrapper container"><a id="logo-container" href="{% if userkey %}{{ url_for('bookmarks', userkey=userkey) }}{% else %}{{ url_for('index') }}{% endif %}" class="brand-logo">digimarks</a>
|
<div class="nav-wrapper container"><a id="logo-container" href="{% if userkey %}{{ url_for('bookmarks', userkey=userkey) }}{% else %}{{ url_for('index') }}{% endif %}" class="brand-logo">digimarks</a>
|
||||||
<ul class="right hide-on-med-and-down">
|
<ul class="right hide-on-med-and-down">
|
||||||
|
|||||||
Reference in New Issue
Block a user