Skip to content
This repository has been archived by the owner on May 14, 2020. It is now read-only.

Commit

Permalink
smaller icons
Browse files Browse the repository at this point in the history
  • Loading branch information
AKST committed Jun 26, 2015
1 parent a9db21f commit 07d91ee
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 15 deletions.
16 changes: 8 additions & 8 deletions resources/public/svg/tempature.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion resources/sass/_common.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
.background-wrapper {
//-webkit-filter: url('/svg/filters.svg#blur3');
-webkit-filter: url('/svg/filters.svg#blur3');
}
.background {
transition: ease-in-out $animation-time background;
Expand Down
13 changes: 9 additions & 4 deletions resources/sass/_main-page.scss
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,17 @@
margin-bottom: 40px;
}

$icon-number: 3;
$icon-width: $width / 4;

$h-margin: $icon-width * 0.25;
$inner-icon-width: $icon-width - $h-margin;

.main-links {
padding-left: 0;
width: $icon-width * $icon-number;
margin-left: auto;
margin-right: auto;
}
.main-link-it {
display: inline-block;
Expand All @@ -41,10 +50,6 @@
}

.main-icon {
$icon-width: $width / 3;

$h-margin: $icon-width * 0.07;
$inner-icon-width: $icon-width - $h-margin;
height: $inner-icon-width;
width: $inner-icon-width;
margin: 0 ($h-margin / 2);
Expand Down
8 changes: 7 additions & 1 deletion resources/sass/_temperature.scss
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
.temp-page {
$-temp-height: 400px;
$-temp-width: 600px;
$shadow-color: #aaa;

@include center($-temp-height, $-temp-width);

Expand Down Expand Up @@ -34,7 +35,12 @@
$heading-occupied-height: floor($line-height * $heading-font-size) + $vertical-spacing;
$value-occupied-height: floor($line-height * $value-font-size) + $vertical-spacing;

text-shadow: #aaa 2px 2px, #aaa 4px 4px;

text-shadow:
$shadow-color 1px 1px,
$shadow-color 2px 2px,
$shadow-color 3px 3px,
$shadow-color 4px 4px;

.temp-heading {
line-height: $line-height;
Expand Down
3 changes: 2 additions & 1 deletion src/svg_thing/components/light/svg.cljs
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@


(defn- rotation [props]
(str "rotate(" (get-current (props :light)) "deg)"))
(let [deg (* (get-current (props :light)) 3.6)]
(str "rotate(" deg "deg)")))


(defn- render-multiply [this]
Expand Down

0 comments on commit 07d91ee

Please sign in to comment.