summaryrefslogtreecommitdiff
path: root/html/assets/css
diff options
context:
space:
mode:
Diffstat (limited to 'html/assets/css')
-rw-r--r--html/assets/css/admin.css150
-rw-r--r--html/assets/css/normalize.css349
-rw-r--r--html/assets/css/wiki.css348
3 files changed, 847 insertions, 0 deletions
diff --git a/html/assets/css/admin.css b/html/assets/css/admin.css
new file mode 100644
index 0000000..0dd338f
--- /dev/null
+++ b/html/assets/css/admin.css
@@ -0,0 +1,150 @@
+:root {
+ --wiki-btn-blue: #337ab7;
+ --wiki-btn-cyan: #5bc0de;
+ --wiki-btn-grey: #c9c9c9;
+ --wiki-btn-grey-light: #c9c9c999;
+}
+
+.wiki .manage {
+ width: 100%;
+ max-width: 1600px;
+ margin: 0 auto 2em;
+}
+.wiki .manage.maximized { max-width: 1960px; }
+.wiki .manage.minimized { max-width: 960px; }
+.wiki .manage.edit-post { max-width: 1420px; }
+
+.wiki .edit-post textarea[name=intro] { height: 12vh; }
+.wiki .edit-post textarea[name=body] {
+ height: calc(100vh - 492px);
+ min-height:320px;
+ font-family: Consolas, 'Ubuntu Mono','Courier New', Courier, monospace;
+ color: #333;
+}
+
+.wiki .edit-post .post-media button.over-bar { margin: -26px 0 0 0; }
+.wiki .edit-post .post-media ul {
+ border: 1px solid #ccc;
+ border-radius: 4px;
+ padding: 6px;
+}
+
+.wiki .edit-post .post-media ul li {
+ border-bottom: 1px solid #ddd;
+ list-style-type: none;
+ padding: 3px 6px;
+
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+}
+.wiki .edit-post .post-media ul li:last-child { border-bottom: none ;}
+.wiki .edit-post .post-media ul li:hover { background: #eee; }
+
+.wiki .manage h2 {
+ font-size: 20px;
+ color: #445;
+ margin: 20px 0;
+}
+
+.wiki .manage.edit-post textarea { width: 100% !important;}
+.wiki .manage.edit-post .select2-selection { min-height: 34px; }
+
+.wiki .manage.edit-post select#status.published {
+ background-color: #5cb85c;
+ border-color: #4cae4c;
+ color: #fff;
+ text-align: center;
+}
+.wiki .manage.edit-post select#status option {
+ background: #fff;
+ color: #333;
+}
+
+/* --- optional fields: defaut=hide --- */
+
+.wiki .edit-post .optional label {
+ margin-bottom: 1em;
+ padding-bottom: .5em;
+ border-bottom: 1px solid var(--wiki-btn-grey-light)
+}
+.wiki .edit-post .optional label.show {
+ margin-bottom: unset;
+ border: none;
+}
+
+
+.wiki .edit-post .optional label:hover {
+ cursor: pointer;
+ color: var(--wiki-btn-blue);
+}
+.wiki .edit-post .optional label::after { float: right; content: "+"; }
+.wiki .edit-post .optional label.show::after { content: "–"; }
+.wiki .edit-post .optional label + div { display: none; }
+.wiki .edit-post .optional label.show + div { display: block; }
+
+
+.alert.alert-info.title-bar { min-height: 52px; margin-top: 20px; }
+.alert.alert-info.title-bar button { margin-left: 8px; }
+
+.wiki .title-bar {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 8px 8px 8px 16px;
+}
+
+.wiki .action-btn button { float: right; }
+
+.wiki .top-bar { padding: 4px 0; }
+
+.wiki .top-bar .breadcrumb .btn {
+ margin-left: 0;
+ margin-right: 8px;
+ border-radius: 3px;
+ color: var(--wiki-btn-blue);
+}
+
+.wiki .top-bar .btn:hover {
+ background-color: var(--wiki-btn-grey-light);
+}
+.wiki .top-bar .btn.selected {
+ color: #fff;
+ background-color: var(--wiki-btn-blue);
+}
+
+
+/* --- dataTables --- */
+
+.wiki .manage .dataTable tbody tr:hover { background: #f8f8f8; }
+.wiki .manage .dataTable .dt-actions { width: 48px; text-align: right }
+
+/* --- unpublished posts -- */
+.wiki .manage .dataTable .fa-eye-slash { color: #999; }
+
+
+.wiki .js-copy:hover::after {
+ opacity: 0;
+ pointer-events: none;
+ background: #ddd7;
+ border-radius: 2px;
+ content: "Copy";
+ padding: .25em .75em;
+ position: absolute;
+ z-index: 10;
+ transform-origin: top;
+ margin-top: -16px;
+ transform: translate(-50%, 0);
+}
+
+.wiki .js-copy.copied:hover::after {
+ content: "Αντιγράφηκε";
+ opacity: 1;
+ margin-top: -22px;
+ transform: translate(-50%, 0);
+ transition: all 0.18s ease-out 0.18s;
+ background: #eee;
+ border: 1px solid #ddd9;
+}
+
+ \ No newline at end of file
diff --git a/html/assets/css/normalize.css b/html/assets/css/normalize.css
new file mode 100644
index 0000000..192eb9c
--- /dev/null
+++ b/html/assets/css/normalize.css
@@ -0,0 +1,349 @@
+/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */
+
+/* Document
+ ========================================================================== */
+
+/**
+ * 1. Correct the line height in all browsers.
+ * 2. Prevent adjustments of font size after orientation changes in iOS.
+ */
+
+html {
+ line-height: 1.15; /* 1 */
+ -webkit-text-size-adjust: 100%; /* 2 */
+}
+
+/* Sections
+ ========================================================================== */
+
+/**
+ * Remove the margin in all browsers.
+ */
+
+body {
+ margin: 0;
+}
+
+/**
+ * Render the `main` element consistently in IE.
+ */
+
+main {
+ display: block;
+}
+
+/**
+ * Correct the font size and margin on `h1` elements within `section` and
+ * `article` contexts in Chrome, Firefox, and Safari.
+ */
+
+h1 {
+ font-size: 2em;
+ margin: 0.67em 0;
+}
+
+/* Grouping content
+ ========================================================================== */
+
+/**
+ * 1. Add the correct box sizing in Firefox.
+ * 2. Show the overflow in Edge and IE.
+ */
+
+hr {
+ box-sizing: content-box; /* 1 */
+ height: 0; /* 1 */
+ overflow: visible; /* 2 */
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+pre {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+}
+
+/* Text-level semantics
+ ========================================================================== */
+
+/**
+ * Remove the gray background on active links in IE 10.
+ */
+
+a {
+ background-color: transparent;
+}
+
+/**
+ * 1. Remove the bottom border in Chrome 57-
+ * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
+ */
+
+abbr[title] {
+ border-bottom: none; /* 1 */
+ text-decoration: underline; /* 2 */
+ text-decoration: underline dotted; /* 2 */
+}
+
+/**
+ * Add the correct font weight in Chrome, Edge, and Safari.
+ */
+
+b,
+strong {
+ font-weight: bolder;
+}
+
+/**
+ * 1. Correct the inheritance and scaling of font size in all browsers.
+ * 2. Correct the odd `em` font sizing in all browsers.
+ */
+
+code,
+kbd,
+samp {
+ font-family: monospace, monospace; /* 1 */
+ font-size: 1em; /* 2 */
+}
+
+/**
+ * Add the correct font size in all browsers.
+ */
+
+small {
+ font-size: 80%;
+}
+
+/**
+ * Prevent `sub` and `sup` elements from affecting the line height in
+ * all browsers.
+ */
+
+sub,
+sup {
+ font-size: 75%;
+ line-height: 0;
+ position: relative;
+ vertical-align: baseline;
+}
+
+sub {
+ bottom: -0.25em;
+}
+
+sup {
+ top: -0.5em;
+}
+
+/* Embedded content
+ ========================================================================== */
+
+/**
+ * Remove the border on images inside links in IE 10.
+ */
+
+img {
+ border-style: none;
+}
+
+/* Forms
+ ========================================================================== */
+
+/**
+ * 1. Change the font styles in all browsers.
+ * 2. Remove the margin in Firefox and Safari.
+ */
+
+button,
+input,
+optgroup,
+select,
+textarea {
+ font-family: inherit; /* 1 */
+ font-size: 100%; /* 1 */
+ line-height: 1.15; /* 1 */
+ margin: 0; /* 2 */
+}
+
+/**
+ * Show the overflow in IE.
+ * 1. Show the overflow in Edge.
+ */
+
+button,
+input { /* 1 */
+ overflow: visible;
+}
+
+/**
+ * Remove the inheritance of text transform in Edge, Firefox, and IE.
+ * 1. Remove the inheritance of text transform in Firefox.
+ */
+
+button,
+select { /* 1 */
+ text-transform: none;
+}
+
+/**
+ * Correct the inability to style clickable types in iOS and Safari.
+ */
+
+button,
+[type="button"],
+[type="reset"],
+[type="submit"] {
+ -webkit-appearance: button;
+}
+
+/**
+ * Remove the inner border and padding in Firefox.
+ */
+
+button::-moz-focus-inner,
+[type="button"]::-moz-focus-inner,
+[type="reset"]::-moz-focus-inner,
+[type="submit"]::-moz-focus-inner {
+ border-style: none;
+ padding: 0;
+}
+
+/**
+ * Restore the focus styles unset by the previous rule.
+ */
+
+button:-moz-focusring,
+[type="button"]:-moz-focusring,
+[type="reset"]:-moz-focusring,
+[type="submit"]:-moz-focusring {
+ outline: 1px dotted ButtonText;
+}
+
+/**
+ * Correct the padding in Firefox.
+ */
+
+fieldset {
+ padding: 0.35em 0.75em 0.625em;
+}
+
+/**
+ * 1. Correct the text wrapping in Edge and IE.
+ * 2. Correct the color inheritance from `fieldset` elements in IE.
+ * 3. Remove the padding so developers are not caught out when they zero out
+ * `fieldset` elements in all browsers.
+ */
+
+legend {
+ box-sizing: border-box; /* 1 */
+ color: inherit; /* 2 */
+ display: table; /* 1 */
+ max-width: 100%; /* 1 */
+ padding: 0; /* 3 */
+ white-space: normal; /* 1 */
+}
+
+/**
+ * Add the correct vertical alignment in Chrome, Firefox, and Opera.
+ */
+
+progress {
+ vertical-align: baseline;
+}
+
+/**
+ * Remove the default vertical scrollbar in IE 10+.
+ */
+
+textarea {
+ overflow: auto;
+}
+
+/**
+ * 1. Add the correct box sizing in IE 10.
+ * 2. Remove the padding in IE 10.
+ */
+
+[type="checkbox"],
+[type="radio"] {
+ box-sizing: border-box; /* 1 */
+ padding: 0; /* 2 */
+}
+
+/**
+ * Correct the cursor style of increment and decrement buttons in Chrome.
+ */
+
+[type="number"]::-webkit-inner-spin-button,
+[type="number"]::-webkit-outer-spin-button {
+ height: auto;
+}
+
+/**
+ * 1. Correct the odd appearance in Chrome and Safari.
+ * 2. Correct the outline style in Safari.
+ */
+
+[type="search"] {
+ -webkit-appearance: textfield; /* 1 */
+ outline-offset: -2px; /* 2 */
+}
+
+/**
+ * Remove the inner padding in Chrome and Safari on macOS.
+ */
+
+[type="search"]::-webkit-search-decoration {
+ -webkit-appearance: none;
+}
+
+/**
+ * 1. Correct the inability to style clickable types in iOS and Safari.
+ * 2. Change font properties to `inherit` in Safari.
+ */
+
+::-webkit-file-upload-button {
+ -webkit-appearance: button; /* 1 */
+ font: inherit; /* 2 */
+}
+
+/* Interactive
+ ========================================================================== */
+
+/*
+ * Add the correct display in Edge, IE 10+, and Firefox.
+ */
+
+details {
+ display: block;
+}
+
+/*
+ * Add the correct display in all browsers.
+ */
+
+summary {
+ display: list-item;
+}
+
+/* Misc
+ ========================================================================== */
+
+/**
+ * Add the correct display in IE 10+.
+ */
+
+template {
+ display: none;
+}
+
+/**
+ * Add the correct display in IE 10.
+ */
+
+[hidden] {
+ display: none;
+}
diff --git a/html/assets/css/wiki.css b/html/assets/css/wiki.css
new file mode 100644
index 0000000..7599de9
--- /dev/null
+++ b/html/assets/css/wiki.css
@@ -0,0 +1,348 @@
+/** Wiki sections
+ * (main layout css-classes)
+ * -----------------------------------------------------------------------------
+ * .wiki {
+ * .top-bar {
+ * .breadcrumb
+ * .admin
+ * }
+ * .side-bar {
+ * .search
+ * .categories
+ * }
+ * .content
+ * }
+ * -----------------------------------------------------------------------------
+ */
+
+
+/* Variables
+ * ----------------------------------------------------------------------------
+ */
+
+:root {
+ --wiki-blue: #337ab7;
+ --wiki-blue-opaque: #337ab799;
+ --wiki-blue-dark: #082e44;
+ --wiki-orange: #f47920;
+ --wiki-orange-opaque: #f4792099;
+ --wiki-grey-background: #eeedeb;
+ --wiki-red: #d13;
+}
+
+
+
+/* main layout classes
+ * ----------------------------------------------------------------------------
+ */
+
+.wiki .top-bar {
+ display: flex;
+ justify-content: space-between;
+ align-items: center;
+ padding: 10px 14px;
+}
+
+.wiki .top-bar .breadcrumb { margin: 0; padding: 0; background: none; }
+
+
+.wiki .top-bar .admin .dropdown-menu .fas {
+ width: 32px;
+ text-align: center;
+}
+
+
+
+/* category list menu
+ * -----------------------------------------------------------------------------
+ */
+
+ .wiki .side-bar { padding-top: 20px; }
+ .wiki .side-bar h3 {
+ font-weight: 600; font-size: 1.4em;
+ color: var(--wiki-blue);
+}
+
+ /* --- ul > li > a --- */
+
+.wiki .side-bar ul { list-style: none; padding: 0; }
+.wiki .side-bar ul li { margin: 0.5em 0; }
+.wiki .side-bar ul li a {
+ display: flex;
+ padding: .2em;
+ background: #4442;
+ border-radius: 6px;
+ transition: background 0.3s;
+}
+.wiki .side-bar ul li a:hover,
+.wiki .side-bar ul li a:active {
+ background: #cde;
+ text-decoration: none;
+}
+
+/* --- li > a > span --- */
+
+.wiki .side-bar ul li a span {
+ display: block;
+ align-self: center;
+ padding: .3em;
+}
+.wiki .side-bar ul li a .label {
+ font-size: 13px;
+ color: var(--wiki-blue-dark);
+ flex-grow: 1;
+ text-align: left;
+ padding-left: 1em;
+ border-radius: 6px;
+ white-space: normal;
+ font-weight: 400;
+}
+
+/* --- inner --- */
+
+.wiki .side-bar ul .inner {
+ padding-left: 1em;
+ overflow: hidden;
+ display: none;
+}
+.wiki .side-bar ul .inner.show { display: block; }
+
+/* --- has-childs | toggler --- */
+
+.wiki .side-bar ul li a.has-childs { background: #9bf4; }
+.wiki .side-bar ul li a.has-childs:hover { background: #cde;}
+
+.wiki .side-bar ul li a.has-childs .label {
+ font-weight: 600;
+ border-radius: 6px 0 0 6px;
+ width: calc(100% - 36px);
+}
+
+.wiki .side-bar ul li a.has-childs .toggler {
+ text-align: center;
+ width: 32px;
+ font-size: 15px;
+ border-radius: 4px;
+ background: #7774;
+ font-weight: 700;
+}
+.wiki .side-bar ul li a.has-childs .toggler:hover {
+ background: var(--wiki-blue);
+ color: #fff;
+}
+.wiki .side-bar ul li a.selected {
+ background: var(--wiki-orange-opaque);
+}
+.wiki .side-bar ul li a:hover,
+.wiki .side-bar ul li a:active,
+.wiki .side-bar ul li a:focus,
+.wiki .side-bar ul li a:visited,
+.wiki .side-bar ul li a:link,
+.wiki .side-bar ul li a span:hover,
+.wiki .side-bar ul li a span:active,
+.wiki .side-bar ul li a span:focus,
+.wiki .side-bar ul li a span:visited,
+.wiki .side-bar ul li a span:link,
+.wiki .side-bar ul li a span:target { text-decoration: none !important; }
+
+
+
+.wiki .post img { max-width: 100%; }
+
+
+
+/** breadcrumb
+ * -----------------------------------------------------------------------------
+ */
+
+.wiki .breadcrumb { counter-reset: var(--wiki-blue); }
+.wiki .breadcrumb i.fas { padding: 0 6px; }
+
+
+
+
+/** content
+ * -----------------------------------------------------------------------------
+ */
+
+.wiki .content--wrapper {
+ max-width: 1024px;
+ width: 100%;
+ margin: 1em auto;
+ padding: 0 2em 2em 2em;
+}
+.wiki .content h2 {
+ font-weight: 700;
+ font-size: 24px;
+ padding: 8px 3em 1em 0; /* 1em 3em 1em 0; */
+ color: var(--wiki-blue-dark);
+}
+.wiki .content h3 {
+ font-weight: 600; font-size: 1.4em;
+ padding: 1em 3em 1em 0;
+ color: var(--wiki-blue);
+ border-bottom: 1px dashed var(--wiki-blue-opaque);
+}
+.wiki .content h3 span { font-weight: 400; color: #444; }
+.wiki .content p {
+ line-height: 150%;
+ padding: 5px 0;
+}
+
+/* --- post: medias -- */
+
+.wiki .content--wrapper .medias {
+ padding: 2em 0 1em;
+ border-top: 1px solid var(--wiki-grey-background);
+}
+.wiki .content--wrapper .medias ol li {
+ margin-left: -12px;
+ padding: 2px 8px;
+}
+.wiki .content--wrapper .medias ol li::marker {
+ font-size: 12px;
+ color: #999;
+}
+
+/* --- post: tags --- */
+
+.wiki .content--wrapper .tags {
+ padding: 2em 0 1em;
+ border-top: 1px solid var(--wiki-grey-background);
+}
+.wiki .content--wrapper .tags a {
+ color: #444;
+ background-color: var(--wiki-grey-background);
+ padding: 6px 12px;
+ margin: 6px;
+ border-radius: 3px;
+}
+
+
+
+
+/** sub-categories on category page
+ * -----------------------------------------------------------------------------
+ */
+
+.wiki .category-childs { margin: 1em; padding: 1em; }
+
+.wiki .category-childs a {
+ display: inline-block;
+ margin: .5em;
+ padding: .2em 2em;
+ border-radius: 2em;
+ border: 1px solid var(--wiki-blue);
+ line-height: 2em;
+ font-weight: 600;
+ transition: background 0.3s;
+}
+
+.wiki .category-childs a:hover {
+ background-color: var(--wiki-blue);
+ color: #fffe;
+ text-decoration: none;
+}
+
+
+
+
+
+/** articles-list
+ * -----------------------------------------------------------------------------
+ * 22 | Title of artivle
+ * July | path / of / categories
+ * 2023 | * some intro of article
+ * -----------------------------------------------------------------------------
+ */
+.wiki .post-card {
+ padding: .5em;
+ margin: 1em;
+ border-bottom: 1px solid #7773;
+ display: flex;
+}
+.wiki .post-card .post-card--content {
+ flex-grow: 1;
+ width: calc(100% - 90px);
+}
+.wiki .post-card h3 { padding: 0; margin: 0; border: none; }
+.wiki .post-card h3 a { display: block; }
+.wiki .post-card h3 a:hover { color: #f47920; }
+.wiki .post-card .category { color: #566; }
+.wiki .post-card .intro {
+ font-style: italic;
+ font-size: 16px;
+}
+/* --- date block --- */
+.wiki .date {
+ display: flex;
+ flex-direction: column;
+ width: 90px;
+}
+.wiki .date p {
+ padding: 0; margin: 0;
+ line-height: 115%;
+ text-align: center;
+}
+.wiki .date .day { font-size: 24px; color: var(--wiki-blue-opaque); }
+.wiki .date .month { font-size: 16px; color: #555; }
+.wiki .date .year { font-size: 12px; color: #666; }
+
+
+
+
+
+/** post (article)
+ * -----------------------------------------------------------------------------
+ */
+
+
+
+.wiki .post h2 { padding-bottom: 0; }
+
+.wiki .post h2 span { float:right; margin-right: -3em;}
+
+.wiki .post .intro {
+ font-style: italic;
+ font-size: 18px;
+ color: var(--wiki-blue-dark);
+ padding-bottom: 1em;
+}
+
+.wiki .post .post--date {
+ padding: 0;
+ color: var(--wiki-blue);
+}
+
+.wiki .article-body img {
+ display: block;
+ max-width: 100%;
+ margin: 1em auto;
+}
+/*
+.wiki .article-body a.modal-toggler {
+ padding: 0 16px;
+ background: #def;
+ color: #334;
+ border-radius: 3px;
+ text-decoration: none;
+ border: 1px solid var(--wiki-blue-opaque);
+}
+.wiki .article-body a.modal-toggler:hover { background: var(--wiki-blue); color: #fff; }
+*/
+.wiki .article-body table {
+ margin: 20px auto;
+ min-width: 67%;
+ border-spacing: 6px 0;
+ border-collapse: separate;
+}
+.wiki .article-body table tr { margin: 4px; }
+.wiki .article-body table thead th {
+ color: var(--wiki-btn-blue);
+ border-bottom: 3px solid var(--wiki-blue);
+ padding: 0 8px;
+}
+.wiki .article-body table tbody td {
+ padding: 6px 8px;
+ border-bottom: 1px solid var(--wiki-grey-background);
+} \ No newline at end of file