Compare commits

...

1 commit

Author SHA1 Message Date
cuom1999
9bc44bd65c Tmp 2022-06-02 16:55:00 -05:00
14 changed files with 153 additions and 132 deletions

View file

@ -564,7 +564,7 @@ noscript #noscript {
margin: 0 auto; margin: 0 auto;
border-right: 1px solid $border_gray; border-right: 1px solid $border_gray;
border-left: 1px solid $border_gray; border-left: 1px solid $border_gray;
background: white; background: #f3f3f3;
} }
// border-bottom: 1px solid rgb(204, 204, 204) // border-bottom: 1px solid rgb(204, 204, 204)

View file

@ -39,6 +39,8 @@
.left-sidebar-item.active { .left-sidebar-item.active {
color: green; color: green;
font-weight: bold;
background-color: lightgreen;
.sidebar-icon { .sidebar-icon {
color: green; color: green;
} }
@ -101,6 +103,106 @@
color: #555; color: #555;
} }
#mobile.tabs {
margin: 0;
margin-bottom: 1em;
}
.rssatom {
text-align: right;
padding: 0.25em;
display: block;
span {
width: 1em;
height: 1em;
padding: 0.1em;
font-size: 0.8em;
color: white;
border-radius: 0.2em;
display: inline-block;
margin-right: 0.2em;
border: 1px solid rgb(201, 90, 18);
background: #fb9e39;
background: linear-gradient(135deg, #e46d27 0, #fb9e39 47%, #e46d27 100%);
i {
text-align: center;
display: block;
}
}
}
.blog-box {
// border-bottom: 1.4px solid lightgray;
// border-top: 1.4px solid lightgray;
margin-bottom: 1.5em;
width: 90%;
padding: 1em 1.75em 0.5em 1.75em;
background-color: white;
margin-left: auto;
margin-right: auto;
.title {
margin-bottom: 0.2em;
font-weight: 500;
}
}
.blog-description {
max-height: 30em;
overflow: hidden;
overflow-wrap: anywhere;
padding-bottom: 1em;
}
.problem-feed-name {
display: inline;
font-weight: bold;
}
.problem-feed-name a {
color: #0645ad;
}
.problem-feed-info-entry {
display: inline;
float: right;
}
.problem-feed-types {
color: gray;
}
.left-sidebar-item {
padding: 0.8em 0.2em 0.8em 1em;
.sidebar-icon {
width: 1.2em;
display: inline-block;
}
}
.left-sidebar-item:hover {
background-color: #e3e3e3;
cursor: pointer;
}
.left-sidebar-item.active:hover {
background-color: lightgreen;
}
.sidebar-icon {
color: black;
}
.left-sidebar-header {
text-align: center;
padding-bottom: 1em;
border-bottom: 1px solid black;
color: black;
border-radius: 0;
}
.feed-table {
margin: 0;
}
.pre-expand-blog {
background-image: -webkit-linear-gradient(bottom, gray, lightgray 3%, transparent 8%, transparent 100%);
padding-bottom: 0;
}
@media (max-width: 799px) { @media (max-width: 799px) {
.left-sidebar-header { .left-sidebar-header {
display: none; display: none;
@ -134,22 +236,24 @@
} }
.middle-content { .middle-content {
max-width: 71.5%; max-width: 65%;
margin-left: 10%; margin-left: 13%;
} }
.blog-sidebar, .right-sidebar { .blog-sidebar, .right-sidebar {
width: 18%; width: 20%;
} }
.left-sidebar { .left-sidebar {
width: 8%; width: 11%;
margin-right: 1em;
position: fixed; position: fixed;
height: 100%; height: 100%;
margin-top: -4em; margin-top: -4em;
padding-top: 4em; padding-top: 4em;
border-right: 3px solid black; }
.left-sidebar-item {
border-radius: 0 2em 2em 0;
} }
.feed-table { .feed-table {
@ -157,104 +261,8 @@
} }
.blog-box { .blog-box {
border-left: 2px solid black; // border-left: 1.4px solid lightgray;
border-right: 2px solid black; // border-right: 1.4px solid lightgray;
border-radius: 8px; border-radius: 8px;
} }
} }
#mobile.tabs {
margin: 0;
margin-bottom: 1em;
}
.rssatom {
text-align: right;
padding: 0.25em;
display: block;
span {
width: 1em;
height: 1em;
padding: 0.1em;
font-size: 0.8em;
color: white;
border-radius: 0.2em;
display: inline-block;
margin-right: 0.2em;
border: 1px solid rgb(201, 90, 18);
background: #fb9e39;
background: linear-gradient(135deg, #e46d27 0, #fb9e39 47%, #e46d27 100%);
i {
text-align: center;
display: block;
}
}
}
.blog-box {
border-bottom: 1px solid black;
border-top: 2px solid black;
margin-bottom: 1em;
width: 90%;
padding: 1em 1.25em 0.5em 1.25em;
background-color: white;
margin-left: auto;
margin-right: auto;
.title {
margin-bottom: 0.2em;
font-weight: 500;
}
}
.blog-description {
max-height: 30em;
overflow: hidden;
overflow-wrap: anywhere;
padding-bottom: 1em;
}
.problem-feed-name {
display: inline;
font-weight: bold;
}
.problem-feed-name a {
color: #0645ad;
}
.problem-feed-info-entry {
display: inline;
float: right;
}
.problem-feed-types {
color: gray;
}
.left-sidebar {
background-color: #f0f1f3;
color: #616161;
}
.left-sidebar-item {
padding: 1em 0.5em;
text-align: center;
}
.left-sidebar-item:hover {
background-color: lightgray;
cursor: pointer;
}
.sidebar-icon {
font-size: x-large;
margin-bottom: 0.1em;
color: black;
}
.left-sidebar-header {
text-align: center;
padding-bottom: 1em;
border-bottom: 1px solid black;
color: black;
border-radius: 0;
}
.feed-table {
margin: 0;
}

View file

@ -96,7 +96,7 @@ a {
border-radius: $widget_border_radius; border-radius: $widget_border_radius;
padding: 5px 10px 10px 15px; padding: 5px 10px 10px 15px;
border: 1px solid $border_gray; border: 1px solid $border_gray;
background: rgba(0, 0, 0, 0.01); background: white;
} }
.comment { .comment {

View file

@ -318,7 +318,7 @@ ul.problem-list {
} }
.problem-feed-option-item.active { .problem-feed-option-item.active {
background: goldenrod; background: lightblue;
color: darkblue; color: darkblue;
} }

View file

@ -5,7 +5,7 @@
} }
#submissions-table { #submissions-table {
background: rgba(0, 0, 0, .01); background: white;
} }
.submission-row { .submission-row {
@ -241,6 +241,7 @@ label[for="language"], label[for="status"] {
border: 1px solid grey; border: 1px solid grey;
border-radius: 0.5em; border-radius: 0.5em;
border-spacing: 0; border-spacing: 0;
background: white;
thead td:first-child { thead td:first-child {
border-top-left-radius: 0.5em; border-top-left-radius: 0.5em;
@ -352,6 +353,10 @@ label[for="language"], label[for="status"] {
a:active .line .highlighter { a:active .line .highlighter {
background: rgba(255, 212, 0, 0.48); background: rgba(255, 212, 0, 0.48);
} }
background: white;
padding: 0.5em;
border-radius: 8px;
} }
.submission-info { .submission-info {

View file

@ -6,7 +6,7 @@
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
margin-bottom: 0.5em; margin-bottom: 0.5em;
background: rgba(0, 0, 0, 0.01); background: white;
&.striped tr:nth-child(even) { &.striped tr:nth-child(even) {
background: #f7f7f7; background: #f7f7f7;

View file

@ -433,10 +433,11 @@ ul.select2-selection__rendered {
} }
.sidebox-content { .sidebox-content {
border: 1px solid $border_gray; // border: 1px solid $border_gray;
border-top: none; border-top: none;
margin: 0 -5px; margin: 0 -5px;
padding: 1px 0.5em 3px; padding: 1px 0.5em 3px;
background: white;
&.sidebox-table { &.sidebox-table {
border: none; border: none;

View file

@ -6,6 +6,11 @@
{% block media %} {% block media %}
{% include "comments/media-css.html" %} {% include "comments/media-css.html" %}
<style>
#page-container {
background: white;
}
</style>
{% endblock %} {% endblock %}
{% block header %} {% block header %}

View file

@ -2,6 +2,11 @@
{% block media %} {% block media %}
{% block content_media %}{% endblock %} {% block content_media %}{% endblock %}
<style>
#page-container {
background: white;
}
</style>
{% endblock %} {% endblock %}
{% block js_media %} {% block js_media %}

View file

@ -237,7 +237,7 @@
</form> </form>
{% if active_participations %} {% if active_participations %}
<h4>{{ _('Active Contests') }}</h4> <h4>{{ _('Active Contests') }}</h4>
<table class="contest-list table striped"> <table class="contest-list table">
<thead> <thead>
<tr> <tr>
<th style="width:90%">{{ _('Contest') }}</th> <th style="width:90%">{{ _('Contest') }}</th>
@ -291,7 +291,7 @@
</button> </button>
</h4> </h4>
<div id="ongoing-table"> <div id="ongoing-table">
<table class="contest-list table striped"> <table class="contest-list table">
<thead> <thead>
<tr> <tr>
<th style="width:90%">{{ _('Contest') }}</th> <th style="width:90%">{{ _('Contest') }}</th>
@ -330,7 +330,7 @@
<h4>{{ _('Upcoming Contests') }}</h4> <h4>{{ _('Upcoming Contests') }}</h4>
{% if future_contests %} {% if future_contests %}
<table class="contest-list table striped"> <table class="contest-list table">
<thead> <thead>
<tr> <tr>
<th>{{ _('Contest') }}</th> <th>{{ _('Contest') }}</th>
@ -368,7 +368,7 @@
{% include "list-pages.html" %} {% include "list-pages.html" %}
</div> </div>
{% endif %} {% endif %}
<table class="contest-list table striped"> <table class="contest-list table">
<thead> <thead>
<tr> <tr>
<th style="width:90%"> <th style="width:90%">

View file

@ -2,18 +2,6 @@
{% if (is_member or can_edit) %} {% if (is_member or can_edit) %}
{% include 'contests-countdown.html' %} {% include 'contests-countdown.html' %}
{% endif %} {% endif %}
{% if is_member or can_edit %}
<div class="blog-sidebox sidebox">
<h3>{{ _('About') }}<i class="fa fa-info-circle"></i></h3>
<div class="sidebox-content">
<div style="margin: 0.3em;">
{% cache 3600 'organization_html' organization.id MATH_ENGINE %}
{{ organization.about|markdown('organization-about', MATH_ENGINE)|reference|str|safe }}
{% endcache %}
</div>
</div>
</div>
{% endif %}
{% if can_edit or is_member %} {% if can_edit or is_member %}
<div id="control-panel" class="blog-sidebox sidebox no-dot-blog-sidebox"> <div id="control-panel" class="blog-sidebox sidebox no-dot-blog-sidebox">
<h3>{{ _('Controls') }} <i class="fa fa-cog"></i></h3> <h3>{{ _('Controls') }} <i class="fa fa-cog"></i></h3>
@ -71,6 +59,16 @@
{% endif %} {% endif %}
</ul> </ul>
</div> </div>
<div class="blog-sidebox sidebox">
<h3>{{ _('About') }}<i class="fa fa-info-circle"></i></h3>
<div class="sidebox-content">
<div style="margin: 0.3em;">
{% cache 3600 'organization_html' organization.id MATH_ENGINE %}
{{ organization.about|markdown('organization-about', MATH_ENGINE)|reference|str|safe }}
{% endcache %}
</div>
</div>
</div>
{% endif %} {% endif %}
{% include 'top-users.html' %} {% include 'top-users.html' %}
</div> </div>

View file

@ -260,7 +260,7 @@
{% include "submission/submission-list-tabs.html" %} {% include "submission/submission-list-tabs.html" %}
{% endblock %} {% endblock %}
{% block media %} {% block content_media %}
{% if perms.judge.change_submission and perms.judge.rejudge_submission %} {% if perms.judge.change_submission and perms.judge.rejudge_submission %}
<style> <style>
td.sub-prop, col.sub-prop { td.sub-prop, col.sub-prop {

View file

@ -31,8 +31,7 @@
}) })
$('.blog-description').each(function() { $('.blog-description').each(function() {
if ($(this).prop('scrollHeight') > $(this).height() ) { if ($(this).prop('scrollHeight') > $(this).height() ) {
$(this).parent().css('background-image', '-webkit-linear-gradient(bottom, gray, lightgray 3%, transparent 8%, transparent 100%)'); $(this).parent().addClass('pre-expand-blog');
$(this).parent().css('padding-bottom', '0');
$(this).css('cursor', 'pointer'); $(this).css('cursor', 'pointer');
} }
}); });
@ -43,8 +42,8 @@
{% macro make_tab_item(name, fa, url, text) %} {% macro make_tab_item(name, fa, url, text) %}
<div class="left-sidebar-item {% if page_type == name %}active{% endif %}" data-href="{{ url }}" id="{{ name }}-tab"> <div class="left-sidebar-item {% if page_type == name %}active{% endif %}" data-href="{{ url }}" id="{{ name }}-tab">
<div class="sidebar-icon"><i class="{{ fa }}"></i></div> <span class="sidebar-icon"><i class="{{ fa }}"></i></span>
{{ text }} <span>{{ text }}</span>
</div> </div>
{% endmacro %} {% endmacro %}

View file

@ -64,7 +64,7 @@
</script> </script>
{% endblock %} {% endblock %}
{% block media %} {% block content_media %}
<link href="http://fonts.cdnfonts.com/css/jersey-m54" rel="stylesheet"> <link href="http://fonts.cdnfonts.com/css/jersey-m54" rel="stylesheet">
{% block users_media %}{% endblock %} {% block users_media %}{% endblock %}
{% endblock %} {% endblock %}