diff --git a/oioioi/usergroups/static/usergroups/teacher_usergroups_list.css b/oioioi/usergroups/static/usergroups/teacher_usergroups_list.css new file mode 100644 index 000000000..8a56c3b35 --- /dev/null +++ b/oioioi/usergroups/static/usergroups/teacher_usergroups_list.css @@ -0,0 +1,52 @@ +.usergroup { + padding: 0.3em 1rem; +} + +.usergroup button { + white-space: normal; +} + +.usergroup-title:focus { + outline: none; + box-shadow: none; +} + +.usergroup-user-list { + display: flex; + flex-direction: row; + flex-wrap: wrap; + align-content: space-evenly; + padding-left: 1%; +} + +.usergroup-user-list li { + width: 20%; + margin: 0.5em; + overflow-wrap: break-word; +} + +.usergroup-title { + white-space: normal; + width: 100%; + height: 100%; + text-align: left; +} + +.usergroup-body { + padding-top: 0.25em; +} + +.usergroup-title:focus:hover, +.usergroup-title:focus, +.usergroup-title:active { + outline: 0; + border: 0; +} + +.usergroup-title:hover { + text-decoration: none; +} + +.group-button { + margin: 0.5em 0.25em; +} diff --git a/oioioi/usergroups/templates/usergroups/teacher_usergroups_list.html b/oioioi/usergroups/templates/usergroups/teacher_usergroups_list.html index 7fe6f4f58..09175a779 100644 --- a/oioioi/usergroups/templates/usergroups/teacher_usergroups_list.html +++ b/oioioi/usergroups/templates/usergroups/teacher_usergroups_list.html @@ -5,6 +5,11 @@ {% trans "Your User Groups" %} {% endblock %} +{% block styles %} +{{ block.super }} + +{% endblock %} + {% block main-content %}
{% trans "Strange, this group doesn't have any members." %}
+ {% endif %} +