add fargo base styles (#22721)

This commit is contained in:
Serghei Mihai 2018-03-13 14:37:27 +01:00
parent cc0e5d03df
commit 51faeb5a20
3 changed files with 96 additions and 0 deletions

View File

@ -0,0 +1,85 @@
div#user-files {
input[type="submit"] {
display: none;
}
margin: 0 auto 3ex auto;
width: 50%;
@media screen and (max-width: $common-screen-width) {
width: 75%;
td.thumbnail, th.created + th {
display: none;
}
td.title {
text-overflow: ellipsis;
max-width: 1px;
overflow: hidden;
}
}
@media screen and (max-width: $mobile-limit) {
width: auto;
margin: 0 0.5em 3ex 0.5em;
th.size, td.size {
display: none;
}
}
form#send-file {
display: none;
}
div.table-container {
min-width: 0;
width: 100%;
td {
border: 1px solid #dfdfdf;
&.filename, &.created, &.thumbnail, &.title {
width: 100%;
}
&.created {
white-space: nowrap;
}
&.thumbnail img {
width: auto;
max-width: unset;
}
}
tr::before {
border: 1px solid #dfdfdf;
}
a {
font-size: 16px;
}
table {
border: 0;
tr.mime-application::before {
padding: 5px;
}
th, thead tr::before {
border: 0;
background: #d0d0d0;
}
@media screen and (max-width: 570px) {
tr::before, td.thumbnail, th.created, td.created {
display: none;
}
}
}
}
ul.pagination {
border: 0;
background: transparent;
}
}
div#oauth2-authorize, div#oauth2-confirm {
margin: 0 auto 3ex auto;
width: 30em;
select {
width: 90%;
}
label {
display: none;
}
@media screen and (max-width: $mobile-limit) {
width: auto;
margin: 0 0.5em 3ex 0.5em;
}
}

View File

@ -23,4 +23,5 @@
}
@import "fc";
@import "fargo";
@import 'custom';

10
templates/fargo/base.html Normal file
View File

@ -0,0 +1,10 @@
{% extends "base.html" %}
{% load gadjo static %}
{% block extra_css %}
<link rel="stylesheet" href="{% static "fargo/css/style.css" %}" />
{% endblock %}
{% block extra_scripts %}
<script type="text/javascript" src="{% xstatic 'jquery' 'jquery.min.js' %}"></script>
{% endblock %}