make the editor look more like the main site (colors and header)
This commit is contained in:
parent
5f9631cc67
commit
b88764d859
2 changed files with 97 additions and 9 deletions
|
@ -1,6 +1,97 @@
|
||||||
|
//noinspection CssInvalidFunction
|
||||||
|
@if primary_color() != "" {
|
||||||
|
$color-primary: primary_color() !global;
|
||||||
|
$color-header-primary: primary_color() !global;
|
||||||
|
}
|
||||||
|
//noinspection CssInvalidFunction
|
||||||
|
@if header_background_color() != "" {
|
||||||
|
$color-header-background: header_background_color() !global;
|
||||||
|
}
|
||||||
|
//noinspection CssInvalidFunction
|
||||||
|
@if header_text_color() != "" {
|
||||||
|
$color-header-text: header_text_color() !global;
|
||||||
|
}
|
||||||
|
//noinspection CssInvalidFunction
|
||||||
|
@if header_text_hover_color() != "" {
|
||||||
|
$color-header-text-hover: header_text_hover_color() !global;
|
||||||
|
}
|
||||||
|
|
||||||
|
$color-initial: #fff !default
|
||||||
|
$color-primary: #9b4dca !default
|
||||||
|
$color-secondary: #606c76 !default
|
||||||
|
$color-header-background: #ffffff !default;
|
||||||
|
$color-header-primary: $color-secondary !default;
|
||||||
|
$color-header-text: $color-primary !default;
|
||||||
|
$color-header-text-hover: $color-secondary !default;
|
||||||
|
|
||||||
|
$color-test: $color-primary;
|
||||||
|
|
||||||
|
|
||||||
|
/* bootstrap overrides so it looks like the rest of the site */
|
||||||
body {
|
body {
|
||||||
font-size:16px;
|
font-size:16px;
|
||||||
}
|
}
|
||||||
|
.navbar {
|
||||||
|
font-family: 'Roboto', 'Helvetica Neue', 'Helvetica', 'Arial', sans-serif;
|
||||||
|
height: 60px;
|
||||||
|
border: 0;
|
||||||
|
}
|
||||||
|
.container-fluid {
|
||||||
|
padding: 5px 10px;
|
||||||
|
}
|
||||||
|
.navbar-brand {
|
||||||
|
padding: 0 0 0 15px;
|
||||||
|
line-height:50px;
|
||||||
|
font-size: 30px;
|
||||||
|
font-weight: 300;
|
||||||
|
letter-spacing: -.1rem;
|
||||||
|
}
|
||||||
|
.navbar-brand img {
|
||||||
|
height: 50px;
|
||||||
|
vertical-align: top;
|
||||||
|
margin-left: -10px;
|
||||||
|
max-width: none;
|
||||||
|
display: inline-block;
|
||||||
|
}
|
||||||
|
.navbar-default, .navbar-default .navbar-toggle:hover, .navbar-default .navbar-toggle:focus {
|
||||||
|
background-color: $color-header-background;
|
||||||
|
}
|
||||||
|
.navbar-default .navbar-toggle {
|
||||||
|
border-color: $color-header-text;
|
||||||
|
}
|
||||||
|
.navbar-default .navbar-brand, .navbar-default .navbar-brand:hover {
|
||||||
|
color: $color-header-primary;
|
||||||
|
}
|
||||||
|
.navbar-default .navbar-nav > li > a {
|
||||||
|
color: $color-header-text;
|
||||||
|
}
|
||||||
|
.navbar-default .navbar-nav > li > a:hover,
|
||||||
|
.navbar-default .navbar-nav > li > a:focus{
|
||||||
|
color: $color-header-text-hover;
|
||||||
|
}
|
||||||
|
.navbar-collapse {
|
||||||
|
background-color: #000000;
|
||||||
|
border-width: 0;
|
||||||
|
}
|
||||||
|
a, a.list-group-item, a.list-group-item:hover, a.list-group-item:focus {
|
||||||
|
color: $color-primary;
|
||||||
|
}
|
||||||
|
a:hover, a:focus {
|
||||||
|
color: $color-secondary;
|
||||||
|
}
|
||||||
|
.badge {
|
||||||
|
background-color: $color-primary;
|
||||||
|
}
|
||||||
|
.btn-primary, .btn-primary:hover, .btn-primary:focus, .btn-group.open .dropdown-toggle.btn-primary {
|
||||||
|
background-color: $color-primary;
|
||||||
|
border-color: darken($color-primary, 5%);
|
||||||
|
}
|
||||||
|
.btn-primary:active:hover, .btn-primary.active:hover, .open > .dropdown-toggle.btn-primary:hover, .btn-primary:active:focus, .btn-primary.active:focus, .open > .dropdown-toggle.btn-primary:focus, .btn-primary:active.focus, .btn-primary.active.focus, .open > .dropdown-toggle.btn-primary.focus {
|
||||||
|
background-color: darken($color-primary, 17%);
|
||||||
|
border-color: darken($color-primary, 30%);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.btn-lg {
|
.btn-lg {
|
||||||
font-size:18px;
|
font-size:18px;
|
||||||
}
|
}
|
||||||
|
@ -21,7 +112,7 @@ nav.navbar .container {
|
||||||
#main {
|
#main {
|
||||||
overflow:hidden;
|
overflow:hidden;
|
||||||
position:absolute;
|
position:absolute;
|
||||||
top:54px;
|
top:60px;
|
||||||
left:0;
|
left:0;
|
||||||
width:100vw;
|
width:100vw;
|
||||||
bottom:0;
|
bottom:0;
|
||||||
|
@ -81,9 +172,6 @@ body:not(.map-enabled) #sidebar {
|
||||||
left:15px;
|
left:15px;
|
||||||
top:30px;
|
top:30px;
|
||||||
}
|
}
|
||||||
nav.navbar .navbar-nav > li > a {
|
|
||||||
color:#666666;
|
|
||||||
}
|
|
||||||
body.mobileclient .nomobileclient {
|
body.mobileclient .nomobileclient {
|
||||||
display:none;
|
display:none;
|
||||||
}
|
}
|
||||||
|
@ -99,9 +187,6 @@ body.mobileclient .nomobileclient {
|
||||||
#sidebar .content p:empty {
|
#sidebar .content p:empty {
|
||||||
margin-bottom:0;
|
margin-bottom:0;
|
||||||
}
|
}
|
||||||
a.list-group-item, a.list-group-item:hover {
|
|
||||||
color:#158cba;
|
|
||||||
}
|
|
||||||
a.list-group-item .badge {
|
a.list-group-item .badge {
|
||||||
font-size:14px;
|
font-size:14px;
|
||||||
font-weight:bold;
|
font-weight:bold;
|
||||||
|
|
|
@ -11,9 +11,10 @@
|
||||||
<link href="{% static favicon %}" rel="icon">
|
<link href="{% static favicon %}" rel="icon">
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% compress css %}
|
{% compress css %}
|
||||||
|
<link href="{% static 'fonts/fonts.css' %}" rel="stylesheet">
|
||||||
<link href="{% static 'bootstrap/css/bootstrap.css' %}" rel="stylesheet">
|
<link href="{% static 'bootstrap/css/bootstrap.css' %}" rel="stylesheet">
|
||||||
<link href="{% static 'leaflet/leaflet.css' %}" rel="stylesheet">
|
<link href="{% static 'leaflet/leaflet.css' %}" rel="stylesheet">
|
||||||
<link href="{% static 'editor/css/editor.css' %}" rel="stylesheet">
|
<link href="{% static 'editor/css/editor.scss' %}" rel="stylesheet" type="text/x-scss">
|
||||||
{% endcompress %}
|
{% endcompress %}
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
@ -27,7 +28,9 @@
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
<span class="icon-bar"></span>
|
<span class="icon-bar"></span>
|
||||||
</button>
|
</button>
|
||||||
<a class="navbar-brand" href="{% url 'editor.index' %}">{% trans 'c3nav map editor' %}</a>
|
<a class="navbar-brand" href="{% url 'editor.index' %}">
|
||||||
|
{% if header_logo %}<img src="{% static header_logo %}">{% else %}c3nav{% endif %}
|
||||||
|
{% trans 'map editor' %}</a>
|
||||||
</div>
|
</div>
|
||||||
<div class="collapse navbar-collapse" id="navbar-collapse">
|
<div class="collapse navbar-collapse" id="navbar-collapse">
|
||||||
{% block addnav %}
|
{% block addnav %}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue