debian-mirror-gitlab/app/assets/stylesheets/page_bundles/wiki.scss

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

215 lines
3.4 KiB
SCSS
Raw Normal View History

2021-01-03 14:25:43 +05:30
@import 'mixins_and_variables_and_functions';
2021-10-27 15:23:28 +05:30
@import 'components/content_editor';
2021-01-03 14:25:43 +05:30
2014-09-02 18:07:02 +05:30
.title .edit-wiki-header {
width: 780px;
margin-left: auto;
margin-right: auto;
padding-right: 7px;
}
2017-08-17 22:00:37 +05:30
.wiki-page-header {
position: relative;
.wiki-breadcrumb {
2021-01-03 14:25:43 +05:30
border-bottom: 1px solid var(--gray-50, $gray-50);
2017-08-17 22:00:37 +05:30
padding: 11px 0;
}
.wiki-last-edit-by {
display: block;
2021-01-03 14:25:43 +05:30
color: var(--gray-500, $gray-500);
2017-08-17 22:00:37 +05:30
strong {
2021-01-03 14:25:43 +05:30
color: var(--gl-text-color, $gl-text-color);
2017-08-17 22:00:37 +05:30
}
}
.light {
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2021-01-03 14:25:43 +05:30
color: var(--gray-500, $gray-500);
2017-08-17 22:00:37 +05:30
}
.git-clone-holder {
2019-12-04 20:38:33 +05:30
.input-group-prepend,
.input-group-append {
background-color: transparent;
}
2017-08-17 22:00:37 +05:30
}
button.sidebar-toggle {
position: absolute;
right: 0;
top: 11px;
display: block;
}
2019-12-04 20:38:33 +05:30
&.has-sidebar-toggle .git-access-header {
padding-right: $sidebar-toggle-width;
2017-08-17 22:00:37 +05:30
}
2018-11-08 19:23:39 +05:30
@include media-breakpoint-up(md) {
2017-08-17 22:00:37 +05:30
&.has-sidebar-toggle {
padding-right: 0;
}
button.sidebar-toggle {
display: none;
}
}
}
.wiki-git-access {
margin: $gl-padding 0;
h3 {
2017-09-10 17:25:29 +05:30
font-size: 19px;
2018-03-17 18:26:18 +05:30
font-weight: $gl-font-weight-normal;
2017-09-10 17:25:29 +05:30
margin: $gl-padding 0;
2017-08-17 22:00:37 +05:30
}
}
.right-sidebar.wiki-sidebar {
2017-09-10 17:25:29 +05:30
padding: 0;
2017-08-17 22:00:37 +05:30
&.right-sidebar-collapsed {
display: none;
}
2017-09-10 17:25:29 +05:30
.sidebar-container {
padding: $gl-padding 0;
padding-right: 100px;
height: 100%;
overflow-y: scroll;
overflow-x: hidden;
-webkit-overflow-scrolling: touch;
}
2017-08-17 22:00:37 +05:30
.blocks-container {
padding: 0 $gl-padding;
}
a {
2021-01-03 14:25:43 +05:30
color: var(--gray-400, $gray-400);
2017-08-17 22:00:37 +05:30
&:hover,
&.active {
2018-03-17 18:26:18 +05:30
text-decoration: none;
span {
text-decoration: underline;
}
2017-08-17 22:00:37 +05:30
}
}
.active > a {
2021-01-03 14:25:43 +05:30
color: var(--black, $black);
2017-08-17 22:00:37 +05:30
}
2023-05-27 22:25:52 +05:30
.active > .wiki-list {
a,
.wiki-list-expand-button,
.wiki-list-collapse-button {
color: var(--black, $black);
}
}
.wiki-list-expand-button,
.wiki-list-collapse-button {
color: var(--gray-400, $gray-400);
&:hover {
color: var(--black, $black);
}
}
2017-08-17 22:00:37 +05:30
ul.wiki-pages,
ul.wiki-pages li {
list-style: none;
padding: 0;
margin: 0;
}
ul.wiki-pages li {
margin: 5px 0 10px;
}
ul.wiki-pages ul {
2023-05-27 22:25:52 +05:30
padding-left: 20px;
2017-08-17 22:00:37 +05:30
}
.wiki-sidebar-header {
padding: 0 $gl-padding $gl-padding;
.gutter-toggle {
margin-top: 0;
}
}
}
ul.wiki-pages-list.content-list {
2019-09-30 21:07:59 +05:30
a {
2021-01-03 14:25:43 +05:30
color: var(--blue-600, $blue-600);
2019-09-30 21:07:59 +05:30
}
2017-09-10 17:25:29 +05:30
ul {
2017-08-17 22:00:37 +05:30
list-style: none;
margin-left: 0;
padding-left: 15px;
2018-03-17 18:26:18 +05:30
li {
padding: 5px 0;
}
2017-08-17 22:00:37 +05:30
}
}
2020-07-28 23:09:34 +05:30
.empty-state-wiki .text-content {
max-width: 490px; // Widen to allow for the Confluence button
}
2020-11-24 15:15:51 +05:30
.wiki-form .markdown-area {
2021-11-18 22:05:49 +05:30
max-height: 55vh;
2020-11-24 15:15:51 +05:30
}
2023-05-27 22:25:52 +05:30
.wiki-list {
.wiki-list-expand-button,
.wiki-list-collapse-button {
left: -$gl-spacing-scale-5;
}
.wiki-list-expand-button {
display: none;
}
&.collapsed {
.wiki-list-collapse-button {
display: none;
}
.wiki-list-expand-button {
display: block;
}
}
&.collapsed + ul {
display: none;
}
}
.drawio-editor {
position: fixed;
top: calc(var(--header-height, 48px));
left: 0;
bottom: 0;
width: 100%;
height: calc(100% - var(--header-height, 48px));
border: 0;
z-index: 1100;
visibility: hidden;
}
.with-performance-bar .drawio-editor {
top: calc(var(--header-height, 48px) + 35px);
height: calc(100% - var(--header-height, 48px) - 35px);
}