0
mirror of https://github.com/valentineus/popov.link.git synced 2025-07-03 16:10:26 +03:00

Complete redesign of site styles

Signed-off-by: Valentin Popov <info@valentineus.link>
This commit is contained in:
2018-05-15 15:28:17 +04:00
parent bdbcbedc35
commit 3647ff37c5
34 changed files with 26 additions and 1261 deletions

View File

@ -0,0 +1,18 @@
@import 'utilities/boxsizing';
@import 'utilities/textsizeadjust';
*,
*::after,
*::before {
@include box-sizing(border-box);
@include text-size-adjust(100%);
}
html {
overflow-y: scroll;
}
body {
padding-bottom: 20px;
padding-top: 20px;
}

View File

@ -0,0 +1,4 @@
img {
max-width: 100%;
width: auto;
}

View File

@ -1,7 +0,0 @@
// ...
$color-initial: #fff;
$color-primary: #9b4dca;
$color-quaternary: #d1d1d1;
$color-quinary: #e1e1e1;
$color-secondary: #606c76;
$color-tertiary: #f4f5f6;

View File

@ -1,27 +0,0 @@
@import 'utilities/boxsizing';
@import 'utilities/textsizeadjust';
*,
*::after,
*::before {
@include box-sizing(border-box);
@include text-size-adjust(100%);
}
html {
font-size: 62.5%;
overflow-y: scroll;
}
body {
color: $color-secondary;
font-family: -apple-system, BlinkMacSystemFont, Roboto, Cantarell, 'Droid Sans', 'Fira Sans', Helvetica, 'Helvetica Neue', 'Helvetica Neue', Oxygen, 'Segoe UI', Ubuntu, sans-serif;
font-size: 16px;
letter-spacing: .01em;
line-height: 1.6;
margin: 0 auto;
max-width: 128rem;
min-height: 100vh;
padding: 2rem;
width: 100%;
}

View File

@ -1,31 +0,0 @@
@import 'utilities/flexbox';
body {
@include flexbox();
@include flex-basis(auto);
@include flex-direction(column);
}
main {
@include flexbox();
@include flex-basis(auto);
@include flex-grow(1);
}
.navigation {
@include flexbox();
@include flex-shrink(0);
@include justify-content(flex-end);
}
.content {
@include flexbox();
@include flex-basis(auto);
@include flex-direction(column);
}
.footer {
@include flexbox();
@include flex-shrink(0);
@include justify-content(center);
}

View File

@ -1,3 +0,0 @@
.comments {
border-top: .1rem solid $color-tertiary;
}

View File

@ -1,4 +0,0 @@
.content {
min-width: 0;
width: 100%;
}

View File

@ -1,16 +0,0 @@
.footer {
padding-top: 1rem;
text-align: center;
a {
padding: 0 .5rem;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}
}

View File

@ -1,5 +0,0 @@
.post-item {
border-left: .3rem solid $color-primary;
margin-bottom: 4rem;
padding-left: 1rem;
}

View File

@ -1,17 +0,0 @@
.navigation {
padding: 0 .5rem 1rem;
text-align: right;
width: 100%;
a {
padding: 0 .5rem;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}
}

View File

@ -1,3 +0,0 @@
.social-links {
padding-bottom: 4rem;
}

File diff suppressed because one or more lines are too long

View File

@ -1,10 +0,0 @@
blockquote {
border-left: .3rem solid $color-quaternary;
margin-left: 0;
margin-right: 0;
padding: 1rem 1.5rem;
&:last-child {
margin-bottom: 0;
}
}

View File

@ -1,84 +0,0 @@
@import 'utilities/borderradius';
.button,
button,
input[type='button'],
input[type='reset'],
input[type='submit'] {
background-color: $color-primary;
border: .1rem solid $color-primary;
color: $color-initial;
cursor: pointer;
display: inline-block;
font-size: 1.1rem;
font-weight: 700;
height: 3.8rem;
letter-spacing: .1rem;
line-height: 3.8rem;
padding: 0 3rem;
text-align: center;
text-decoration: none;
text-transform: uppercase;
white-space: nowrap;
@include border-radius(.4rem);
&:focus,
&:hover {
background-color: $color-secondary;
border-color: $color-secondary;
color: $color-initial;
outline: 0;
}
&[disabled] {
cursor: default;
opacity: .5;
&:focus,
&:hover {
background-color: $color-primary;
border-color: $color-primary;
}
}
&.button-outline {
background-color: transparent;
color: $color-primary;
&:focus,
&:hover {
background-color: transparent;
border-color: $color-secondary;
color: $color-secondary;
}
&[disabled] {
&:focus,
&:hover {
border-color: inherit;
color: $color-primary;
}
}
}
&.button-clear {
background-color: transparent;
border-color: transparent;
color: $color-primary;
&:focus,
&:hover {
background-color: transparent;
border-color: transparent;
color: $color-secondary;
}
&[disabled] {
&:focus,
&:hover {
color: $color-primary;
}
}
}
}

View File

@ -1,25 +0,0 @@
@import 'utilities/borderradius';
code {
background: $color-tertiary;
font-size: 86%;
margin: 0 .2rem;
padding: .2rem .5rem;
white-space: nowrap;
@include border-radius(.4rem);
}
pre {
background: $color-tertiary;
border-left: .3rem solid $color-primary;
overflow-x: auto;
& > code {
display: block;
padding: 1rem 1.5rem;
white-space: pre;
@include border-radius(0);
}
}

View File

@ -1,5 +0,0 @@
hr {
border: 0;
border-top: .1rem solid $color-tertiary;
margin: 3rem 0;
}

View File

@ -1,69 +0,0 @@
@import 'utilities/appearance';
@import 'utilities/borderradius';
@import 'utilities/boxshadow';
@import 'utilities/boxsizing';
input:not([type]),
input[type='color'],
input[type='date'],
input[type='datetime'],
input[type='datetime-local'],
input[type='email'],
input[type='month'],
input[type='number'],
input[type='password'],
input[type='search'],
input[type='tel'],
input[type='text'],
input[type='url'],
input[type='week'],
select,
textarea {
background-color: transparent;
border: .1rem solid $color-quaternary;
height: 3.8rem;
padding: .6rem 1rem;
width: 100%;
@include appearance(none);
@include border-radius(.4rem);
@include box-shadow(none);
@include box-sizing(inherit);
&:focus {
border-color: $color-primary;
outline: 0;
}
}
select {
padding-right: 3rem;
}
textarea {
min-height: 6.5rem;
}
label,
legend {
display: block;
font-size: 1.6rem;
font-weight: 700;
margin-bottom: .5rem;
}
fieldset {
border-width: 0;
padding: 0;
}
input[type='checkbox'],
input[type='radio'] {
display: inline;
}
.label-inline {
display: inline-block;
font-weight: normal;
margin-left: .5rem;
}

View File

@ -1,29 +0,0 @@
@import 'utilities/boxshadow';
img {
max-width: 100%;
width: auto;
&:hover {
@include box-shadow(0 0 10px rgba(0, 0, 0, .5));
}
}
.fullscreen {
background: rgba(0, 0, 0, .5);
display: none;
height: 100%;
left: 0;
position: fixed;
text-align: center;
top: 0;
width: 100%;
&:target {
display: block;
}
img {
margin-top: 10rem;
}
}

View File

@ -1,9 +0,0 @@
a {
color: $color-primary;
text-decoration: none;
&:focus,
&:hover {
color: $color-secondary;
}
}

View File

@ -1,22 +0,0 @@
dl,
ol,
ul {
list-style: none;
margin-top: 0;
padding-left: 0;
dl,
ol,
ul {
font-size: 90%;
margin: 1.5rem 0 1.5rem 3rem;
}
}
ol {
list-style: decimal inside;
}
ul {
list-style: circle inside;
}

View File

@ -1,26 +0,0 @@
.button,
button,
dd,
dt,
li {
margin-bottom: 1rem;
}
fieldset,
input,
select,
textarea {
margin-bottom: 1.5rem;
}
blockquote,
dl,
figure,
form,
ol,
p,
pre,
table,
ul {
margin-bottom: 2.5rem;
}

View File

@ -1,19 +0,0 @@
table {
border-spacing: 0;
width: 100%;
}
td,
th {
border-bottom: .1rem solid $color-quinary;
padding: 1.2rem 1.5rem;
text-align: left;
&:first-child {
padding-left: 0;
}
&:last-child {
padding-right: 0;
}
}

View File

@ -1,51 +0,0 @@
b,
strong {
font-weight: bold;
}
p {
margin-top: 0;
}
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: 300;
letter-spacing: .01em;
margin-bottom: 2rem;
margin-top: 0;
}
h1 {
font-size: 4.6rem;
line-height: 1.2;
}
h2 {
font-size: 3.6rem;
line-height: 1.25;
}
h3 {
font-size: 2.8rem;
line-height: 1.3;
}
h4 {
font-size: 2.2rem;
line-height: 1.35;
}
h5 {
font-size: 1.8rem;
line-height: 1.5;
}
h6 {
font-size: 1.6rem;
line-height: 1.4;
}