Skip to content
This repository was archived by the owner on Feb 19, 2023. It is now read-only.

#48 fixed #49

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#50 apply code format via editorconfig
  • Loading branch information
danielkoch committed Sep 14, 2014
commit c704cb14bf1fb3310df22d1fce4de9875591d537
68 changes: 31 additions & 37 deletions css-less/general.less
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
// 10. Gallery page collapsed layout
// 11. Media queries < 620px
// 12. Media queries < 420px
//
//
////////////////////////////////////////////////////////////////////

@import "css-less/mixins.less"; // less stuff
Expand All @@ -35,16 +35,16 @@ body {
}
html, body {
-webkit-font-smoothing: subpixel-antialiased;
height: 100%;
width: 100%;
height: 100%;
width: 100%;
}
#main-wrap {
height: 100%;
.box-sizing();
}
#page {
min-height: 100%;
border-left: @sidebar-width-full solid @sidebar-background;
min-height: 100%;
border-left: @sidebar-width-full solid @sidebar-background;
zoom: 1;
margin: 0 0 -@footer-max-height 0; // the bottom margin is the negative value of the footer's height
}
Expand Down Expand Up @@ -99,7 +99,7 @@ html, body {
a {
text-decoration: none;
border-bottom-color: @sidebar-background;

color: @menu-item-color;
.transition(none, 0);
}
Expand All @@ -111,7 +111,7 @@ html, body {
li.important-item a {
background: #afeef5;
}

li.current-menu-item > a {
color: @selected-menu-item-color;
font-weight: bold;
Expand All @@ -127,14 +127,14 @@ html, body {

#gallery-menu {
margin: .5em 0 0 0;
font-size: @projects-menu-font-size;
font-size: @projects-menu-font-size;
line-height: @projects-menu-line-height;

a {
color: @projects-menu-font-color;

}

li {
&.current-album-menu-item {
a {
Expand Down Expand Up @@ -277,7 +277,7 @@ a.menu-button {
line-height: @widget-body-line-height;

margin: @menus-margin / 2 0 @menus-margin / 2 0;

.widget-title {
font-weight: bold;
color: @sidebar-text-color;
Expand All @@ -286,7 +286,7 @@ a.menu-button {
font-size: @widget-title-font-size;
line-height: @widget-title-line-height;
}

li, ul {

margin-left: 0;
Expand Down Expand Up @@ -347,7 +347,7 @@ a.menu-button {
.slider-data {
display: none;
}

.two-dim-slider {
display: none;
left: 0;
Expand Down Expand Up @@ -395,8 +395,8 @@ a.menu-button {
position: relative;
float: left;
width: 320px;
border: 0;
margin-bottom: 8px;
border: 0;
margin-bottom: 8px;
.transition(none, 0);
&:hover {
background: none;
Expand All @@ -405,9 +405,9 @@ a.menu-button {
}
.project-thumb-inside {
padding: 7px;
border: 1px solid transparent;
.transition(border, .3s);
&:hover {
border: 1px solid transparent;
.transition(border, .3s);
&:hover {
border-color: #DDD;
img {
opacity: .7;
Expand Down Expand Up @@ -473,7 +473,7 @@ a.menu-button {
padding: 1.5em 1.5em;
}
#page {
border-left: @sidebar-width-full - 3 solid @sidebar-background;
border-left: @sidebar-width-full - 3 solid @sidebar-background;
}
.ds-gallery-page .two-dim-slider {
left: @sidebar-width-full - 3;
Expand Down Expand Up @@ -523,13 +523,13 @@ a.menu-button {
padding: @collapsed-layout-logo-padding;
}
}

.main-header {
width: 100%;
position: relative;
padding: 0;
margin: 0;

background: @sidebar-background;

.menus-container {
Expand Down Expand Up @@ -570,10 +570,10 @@ a.menu-button {
display: block;
overflow: hidden;
}

.site-description {
display: none;

}
.menu-button {
margin: @collapsed-layout-menu-button-margin;
Expand All @@ -583,7 +583,7 @@ a.menu-button {
.menu-sep {
display: none;
}

#main {
width: 100%;
clear: both;
Expand Down Expand Up @@ -626,12 +626,12 @@ a.menu-button {
}
}
#main {
border-left: none;
border-left: none;
}
.hentry, #comments, #nav-below {
max-width: none;
max-width: none;
}

.site-content {
margin: 0;
}
Expand Down Expand Up @@ -715,10 +715,10 @@ a.menu-button {
&::-webkit-scrollbar-thumb:hover {
background-color:fadeout(@menu-item-color, 70%);
}

width: auto;
max-width: none;
}
}
.main-header {
width: auto;
height: auto;
Expand Down Expand Up @@ -815,11 +815,11 @@ a.menu-button {
////////////////////////////////////////////

@media only screen and (max-width: 500px) {

.album-info-block {
font-size: 85%;
}
.collapsed-layout {
.collapsed-layout {
#primary,
#secondary .widget,
.footer-copy p {
Expand Down Expand Up @@ -868,10 +868,4 @@ a.menu-button {
padding-bottom: 1em;
}
}




}


29 changes: 12 additions & 17 deletions css-less/mixins.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/* LESS mixins
/* LESS mixins
--------------------------------------------- */
.font-small() {
font-size: @font-small;
Expand All @@ -7,30 +7,30 @@
.rounded (@radius: 6px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
border-radius: @radius;
}
.box-shadow (@x: 0, @y: 0, @blur: 2px, @color: #000) {
-webkit-box-shadow: @arguments;
-moz-box-shadow: @arguments;
box-shadow: @arguments;
box-shadow: @arguments;
}
.box-sizing (@type: border-box) {
-webkit-box-sizing: @type;
-moz-box-sizing: @type;
-o-box-sizing: @type;
box-sizing: @type;
-o-box-sizing: @type;
box-sizing: @type;
}
.transition (@property, @duration: .2s, @timing: ease-in-out) {
-webkit-transition: @arguments;
-moz-transition: @arguments;
-o-transition: @arguments;
transition: @arguments;
-o-transition: @arguments;
transition: @arguments;
}
.tab-size (@spaces: 2) {
-webkit-tab-size: @spaces;
-moz-tab-size: @spaces;
-o-tab-size: @spaces;
tab-size: @spaces;
-o-tab-size: @spaces;
tab-size: @spaces;
}
.transform(@string){
-webkit-transform: @string;
Expand Down Expand Up @@ -68,19 +68,14 @@
*zoom: 1;
&:before,
&:after {
display: table;
content: "";
display: table;
content: "";
}
&:after {
clear: both;
clear: both;
}
}

.fade-out {
opacity: 0 !important;
}





14 changes: 7 additions & 7 deletions css-less/page-and-blog.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,17 @@
// 2. Video-related things
// 3. Wrappers, image containers e.t.c
// 4. Album name + count (1 of n)
// 5. Collapsed slider styles
// 5. Collapsed slider styles
// 6. Album info block (share, close project button)
//
//
////////////////////////////////////////////////////////////////////

.entry-title {
margin: 0;
a {
color: @title-color;
&:hover {

background: none;
color: @link-hover-color;

Expand Down Expand Up @@ -87,7 +87,7 @@
min-height: 10em;
max-width: 100%;
width: 100%;
.box-sizing();
.box-sizing();
}
}
.commentlist {
Expand Down Expand Up @@ -119,7 +119,7 @@
cite {
font-style: normal;
font-weight: bold;

}
footer {
margin-bottom: 1em;
Expand Down Expand Up @@ -147,7 +147,7 @@
}
&:hover {
.reply {

}
}
}
Expand Down Expand Up @@ -195,4 +195,4 @@
}
.nav-next {
float: right;
}
}
36 changes: 18 additions & 18 deletions css-less/reset.less
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
// reset styles
// reset styles
html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
Expand All @@ -8,34 +8,34 @@ b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
margin: 0;
padding: 0;
border: 0;
font-size: 100%;
vertical-align: baseline;
}

// HTML5 display-role reset for older browsers
article, aside, details, figcaption, figure,
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
display: block;
isplay: block;
}
body {
line-height: 1;
line-height: 1;
}
blockquote, q {
quotes: none;
quotes: none;
}
blockquote:before, blockquote:after,
q:before, q:after {
content: '';
content: none;
content: '';
content: none;
}
table {
border-collapse: collapse;
border-spacing: 0;
}
border-collapse: collapse;
border-spacing: 0;
}
Loading