SIGN IN SIGN UP
connors / photon UNCLAIMED

The fastest way to build beautiful Electron apps using simple HTML and CSS

0 0 1 SCSS
2015-09-27 22:08:52 -07:00
//
// Base styles
// --------------------------------------------------
* {
2015-09-29 12:06:56 -07:00
cursor: default;
-webkit-user-drag: text;
2015-09-29 11:37:02 -07:00
-webkit-user-select: none;
2015-09-27 22:08:52 -07:00
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
html {
height: 100%;
width: 100%;
overflow: hidden;
}
// We fix position the body and scroll `.content`.
body {
height: 100%;
margin: 0;
padding: 0;
2015-09-27 22:24:14 -07:00
font: 13px/1.6 system, -apple-system, ".SFNSDisplay-Regular", "Helvetica Neue", Helvetica, "Segoe UI", sans-serif;
2015-09-27 22:08:52 -07:00
color: #000;
background-color: #fff;
}
2015-09-29 12:06:56 -07:00
img {
-webkit-user-drag: text;
}
2015-09-29 14:55:49 -07:00
// Typography
h1, h2, h3, h4, h5, h6 {
margin-top: 20px;
margin-bottom: 10px;
font-weight: 500;
}
h1 { font-size: 36px; }
h2 { font-size: 30px; }
h3 { font-size: 24px; }
h4 { font-size: 18px; }
h5 { font-size: 14px; }
h6 { font-size: 12px; }
2015-09-28 22:31:52 -07:00
// Basic app structure
2015-09-29 14:55:49 -07:00
.window {
2015-09-28 22:31:52 -07:00
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
display: flex;
flex-direction: column;
}
2015-09-29 14:55:49 -07:00
.window-content {
2015-09-28 22:31:52 -07:00
position: relative;
overflow-y: auto;
display: flex;
flex: 1;
}
2015-09-27 22:08:52 -07:00
// Utility classes
2015-09-29 11:37:02 -07:00
.selectable-text {
2015-09-29 15:01:31 -07:00
cursor: text;
2015-09-29 11:37:02 -07:00
-webkit-user-select: text;
}
2015-09-27 22:08:52 -07:00
.text-center {
text-align: center;
}
2015-09-29 14:55:49 -07:00
// Floats
2015-09-27 22:08:52 -07:00
.pull-left {
float: left;
}
.pull-right {
float: right;
}
2015-09-29 14:55:49 -07:00
// Padding
.padded {
padding: 10px;
}
.padded-more {
padding: 5px;
}
.padded-more {
padding: 20px;
}
// Clearfix
2015-09-27 22:08:52 -07:00
.clearfix {
@include clearfix();
}