1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-20 05:39:42 +02:00
documize/gui/app/styles/core/base.scss

197 lines
2.9 KiB
SCSS
Raw Normal View History

2016-07-07 18:54:16 -07:00
// Copyright 2016 Documize Inc. <legal@documize.com>. All rights reserved.
//
// This software (Documize Community Edition) is licensed under
// GNU AGPL v3 http://www.gnu.org/licenses/agpl-3.0.en.html
//
// You can operate outside the AGPL restrictions by purchasing
// Documize Enterprise Edition and obtaining a commercial license
// by contacting <sales@documize.com>.
//
// https://documize.com
html {
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
-ms-overflow-style: -ms-autohiding-scrollbar;
text-rendering: optimizeLegibility;
height: 100%;
width: 100%;
2018-01-10 16:07:17 +00:00
overflow-y: scroll;
font-size: 0.875rem;
2016-07-07 18:54:16 -07:00
}
body {
display: flex;
2018-05-23 12:37:21 +01:00
flex-direction: column;
2016-07-07 18:54:16 -07:00
height: 100%;
// height: 100vh;
2016-07-07 18:54:16 -07:00
}
a {
2017-11-27 15:38:39 +00:00
@include ease-in();
2016-07-07 18:54:16 -07:00
color: $color-link;
text-decoration: none;
cursor: pointer;
-webkit-font-smoothing: antialiased;
2017-04-27 12:47:34 +01:00
-moz-osx-font-smoothing: grayscale;
2017-11-27 15:38:39 +00:00
a:focus,
a:hover {
text-decoration: none;
}
}
a.admin-link {
text-decoration: none;
font-weight: bold;
2016-07-07 18:54:16 -07:00
a:focus,
a:hover {
text-decoration: none;
2016-07-07 18:54:16 -07:00
}
}
2016-10-27 15:44:40 -07:00
a.broken-link {
2018-12-04 17:26:57 +00:00
color: map-get($red-shades, 600);
2016-10-27 15:44:40 -07:00
text-decoration: line-through;
}
.no-outline {
outline: none !important;
border: none !important;
box-shadow: none !important;
&:active,
&:focus {
border: none !important;
box-shadow: none !important;
}
}
.no-select {
-webkit-touch-callout: none;
-webkit-user-select: none;
-khtml-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
-o-user-select: none;
user-select: none;
}
ul {
margin: 0;
padding: 0;
li {
list-style: none;
list-style-type: none;
}
}
.cursor-pointer {
cursor: pointer;
}
.cursor-auto {
cursor: auto !important;
}
.no-width {
white-space: nowrap;
width: 1%;
}
.absolute-center {
margin: auto;
position: absolute;
top: 0;
left: 0;
bottom: 0;
right: 0;
}
input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 1000px white inset;
box-shadow: 0 0 0 1000px white inset;
}
.bordered {
2018-12-04 17:26:57 +00:00
border: 1px solid map-get($gray-shades, 300);
}
.text-truncate {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
2018-05-23 12:37:21 +01:00
::-webkit-scrollbar {
width: 7px;
}
::-webkit-scrollbar-track {
2018-12-04 17:26:57 +00:00
background: map-get($gray-shades, 100);
2018-05-23 12:37:21 +01:00
}
::-webkit-scrollbar-thumb {
2018-12-04 17:26:57 +00:00
background: map-get($gray-shades, 300);
2018-05-23 12:37:21 +01:00
&:hover {
2018-12-04 17:26:57 +00:00
background: map-get($gray-shades, 600);
2018-05-23 12:37:21 +01:00
}
}
2016-07-07 18:54:16 -07:00
$i: 150;
@while $i > 0 {
.margin-#{$i} {
margin: #{$i}px;
}
.margin-top-#{$i} {
margin-top: #{$i}px;
}
.margin-bottom-#{$i} {
margin-bottom: #{$i}px;
}
.margin-right-#{$i} {
margin-right: #{$i}px;
}
.margin-left-#{$i} {
margin-left: #{$i}px;
}
2016-07-07 18:54:16 -07:00
$i: $i - 5;
}
$i: 150;
@while $i > 0 {
.padding-#{$i} {
padding: #{$i}px;
}
.padding-top-#{$i} {
padding-top: #{$i}px;
}
.padding-bottom-#{$i} {
padding-bottom: #{$i}px;
}
.padding-right-#{$i} {
padding-right: #{$i}px;
}
.padding-left-#{$i} {
padding-left: #{$i}px;
}
2016-07-07 18:54:16 -07:00
$i: $i - 5;
}
$i: 100;
@while $i > 0 {
.width-#{$i} {
2017-03-01 18:46:25 +00:00
width: #{$i}#{"%"} !important;
}
2016-10-26 17:31:05 -07:00
$i: $i - 1;
2016-07-07 18:54:16 -07:00
}