Initial themeing

This commit is contained in:
Sam El-Husseini
2017-07-07 18:16:01 +03:00
parent 99a25e07a7
commit d2946842a9
8 changed files with 486 additions and 93 deletions

View File

@ -2,32 +2,91 @@
User Global Variables
*******************************/
@importGoogleFonts: true;
@importGoogleFonts: false;
@fontName : 'Open Sans';
@headerFont : Roboto,"Arial Narrow","Helvetica Neue",Helvetica,Arial,sans-serif;
@pageFont : Roboto,"Helvetica Neue",Helvetica,Arial,sans-serif;
@emSize : 14px;
@fontSize : 13px;
@primaryColor: @blue;
@secondaryColor: @pink;
@primaryColor: @red;
@secondaryColor: @yellow;
@red:#CC2936;
@yellow:#FFC914;
@teal:#08415C;
@violet:#C200C0;
@brown:#2E282A;
@grey:#999;
/* Adafruit colors */
@blue:#2EB7ED;
@pink:#FB48C7;
@green: #40bf4a; /*#00922B;*/
@purple:#8073E5;
@orange:#FFA702;
@pageBackground: #ecf0f1;
/* Lego colors */
@red: @brightRed;
@blue: #008ad2;
@yellow: #fccd00;
@orange: #fa7f2a;
@green: #9acc1f;
/* Lego official colors */
/* Solid */
@brightYellow: #FDB80C;
@brightOrange: #DF5014;
@brightRed: #D4000D;
@brightPurple: #D42878;
@brightBlue: #064597;
@brightGreen: #0F841C;
@brightYellowishGreen: #84AB0F;
@brightReddishViolet: #890058;
@mediumBlue: #3979B9;
@mediumLilac: #211063;
@mediumNougat: #996A44;
@darkBrown: #240D08;
@darkStoneGrey: #3B4044;
@darkOrange: #962E12;
@darkRed: #6C0815;
@darkGreen: #0C681F;
@earthBlue: #011C32;
@earthGreen: #032712;
@lightRoyalBlue: #75B3E4;
@lightPurple: #E88BB6;
@lightNougat: #F1B477;
@lightStoneGrey: #DDDED1;
@sandYellow: #7A6141;
@coolYellow: #FFFF88;
@flameYellowishOrange: #F0890A;
@reddishBrown: #48150C;
@nougat: #CB5F32;
@brickYellow: #D0AD68;
/* Effects */
@silver: #7A8284;
@warmGold: #996C23;
@metallicDarkGrey: #38302D;
@phosphorusGreen: #FEFBCC;
/* Transparent */
@transparentYellow: #F7EB58;
@transparentBrightOrange: #E5630F;
@transparentReddishOrange: #DF5338;
@transparentRed: #D61F1F;
@transparentReddishViolet: #E88BB6;
@transparentBrightBluishViolet: #8A83BA;
@transparentLightBlue: #A8D9E5;
@transparentBlue: #42A1E2;
@transparentFluorescentBlue: #C3DCF3;
@transparentGreen: #52A35B;
@transparentBrightGreen: #8AFF55;
@transparentFluorescentGreen: #F8E94B;
@transparentBrown: #957F6F;
@transparent: #EAEAEA;
@pageBackground: #fff;
/*******************************
PXT Overrides
@ -37,11 +96,9 @@
Menu
--------------------*/
@mainMenuInvertedBackground: @blue;
@mainMenuInvertedBackground: @yellow;
@mainMenuTutorialBackground: @orange;
@mainMenuBlocksJsToggleColor: @black;
@tutorialSelectedMenuColor: @blue;
/*-------------------
@ -56,9 +113,9 @@
Background
--------------------*/
@simulatorBackground: #2F2F2F; /*#313638;*/
@editorToolsBackground: #2F2F2F; /*#1e1e1e;*/
@blocklySvgColor: #4c4b4d; /*#1e1e1e;*/
@simulatorBackground: #fcfbfa;
@editorToolsBackground: #fcfbfa;
@blocklySvgColor: #ecf6ff;
/*-------------------
Full screen
@ -78,7 +135,7 @@
Editor
--------------------*/
@blocklyToolboxColor: transparent;
@blocklyToolboxColor: #FED30D;
@trashIconColor: @primaryColor;
@ -88,3 +145,10 @@
@blocklyRowWidthWide: 160px;
@blocklyRowWidthComputer: 140px;
@blocklyRowWidthTablet: 100px;
@blocklyRowWidthMobile: 50px;
@blocklyRowHeightWide: 50px;
@blocklyRowHeightComputer: 50px;
@blocklyRowHeightTablet: 50px;
@blocklyRowHeightMobile: 50px;

View File

@ -15,8 +15,16 @@
Add your custom CSS here
*******************************/
/* Roboto font */
@RobotoFont: data-uri("../docs/static/fonts/Roboto_400_normal.woff");
@font-face {
font-family: 'Roboto';
src: @RobotoFont format("woff");
}
.ui.button.download-button {
&:extend(.ui.secondary.button all);
&:extend(.ui.primary.button all);
}
.ui.button.editortools-btn {
@ -24,7 +32,6 @@
}
.projectname-input {
&:extend(.inverted all);
}
.ui.button.getting-started-btn {
@ -35,43 +42,48 @@
&:extend(.ui.blue.button all);
}
/* Menu bar colors */
#menubar .ui.item {
color: @blue;
}
/* logo */
#logo a.ui.image .ui.logo {
min-width: 2.0rem;
}
/* Toolbox padding */
.blocklyToolboxDiv, .monacoToolboxDiv {
padding: 0.5rem;
-webkit-box-shadow: inset 0px 0px 0px 2px rgba(255,255,255,0.31);
-moz-box-shadow: inset 0px 0px 0px 2px rgba(255,255,255,0.31);
box-shadow: inset 0px 0px 0px 2px rgba(255,255,255,0.31);
border-bottom-left-radius: 3px;
border-bottom-right-radius: 3px;
}
div.blocklyTreeRow {
border-radius: 0px;
-webkit-box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,0.50);
-moz-box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,0.50);
box-shadow: inset 0px 0px 0px 3px rgba(255,255,255,0.50);
}
div.blocklyTreeRoot div div div div div.blocklyTreeRow {
padding-top: 0.5rem !important;
}
/* Remove shadow around blockly blocks */
.blocklyPathDark, .blocklyPathLight {
display: none;
}
/* Specifying rounded toolbox borders. */
div.blocklyTreeRow {
border-radius: 3px;
margin-bottom: 3px !important;
border: 1px solid #1e1e1e;
border-left-width: 1px !important;
}
div.blocklyTreeRoot div div div div div.blocklyTreeRow {
border-left-width: 1px !important;
}
/* Highlight category item */
div.blocklyTreeRow.blocklyTreeSelected, div.blocklyTreeRoot div div div div div.blocklyTreeRow.blocklyTreeSelected {
border: 2px solid #fc3;
border-left-width: 2px !important;
}
/* This removes any padding at the top of the toolbox */
div.blocklyTreeRoot {
padding: 0px !important;
}
/* Blockly Text */
span.blocklyTreeLabel {
font-family: "Gotham SSm A","Gotham SSm B","Montserrat","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif !important;
font-family: @pageFont !important;
text-transform: uppercase !important;
font-size:1rem !important;
}
svg.blocklySvg {
background: #00487C; /* For browsers that do not support gradients */
font-weight: bold;
}
.blocklyFlyoutBackground {
@ -81,40 +93,31 @@ svg.blocklySvg {
background: rgba(40, 40, 40, 0.9);
}
.blocklyToolboxDiv, .monacoToolboxDiv {
padding: 0.5rem;
border-right: solid 1px #282828;
background-color: #383838 !important;
}
.blocklyScrollbarHandle {
fill: #000 !important;
fill-opacity:.8;
}
/* Editor menu toggle */
.ui.menu .item.editor-menuitem {
background: fade(@black, 20%) !important;
#menubar .ui.menu .item.editor-menuitem {
background: @red !important;
}
#menubar .ui.menu .item.editor-menuitem .item {
color: white !important;
}
/* Search box */
#blocklySearchArea {
margin: 0.5rem;
margin-left: 1rem;
margin-right: 1rem;
}
.blocklySearchInputField {
border-radius: 0.2rem !important;
border-radius: 1rem !important;
}
.sandboxfooter a:not(.thin) {
color:white !important;
}
/* Scrollbars */
::-webkit-scrollbar-thumb {
border-radius: 5px;
background-color: rgba(0, 0, 0, 0.8);
box-shadow: 0 0 1px rgba(0, 0, 0, 0.8);
-webkit-box-shadow: 0 0 1px rgba(0, 0, 0, 0.8);
/* Monaco editor */
.monaco-editor, .monaco-editor .inputarea, .monaco-editor-background {
background: @blocklySvgColor !important;
}
/* Mobile */
@ -132,14 +135,23 @@ svg.blocklySvg {
/* Tablet */
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
div.blocklyTreeRow {
padding-left: 0.5rem !important;
}
}
/* Small Monitor */
@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {
div.blocklyTreeRow {
padding-left: 0.5rem !important;
}
}
/* Large Monitor */
@media only screen and (min-width: @largeMonitorBreakpoint) {
div.blocklyTreeRow {
padding-left: 0.5rem !important;
}
}
/* Mobile, Tablet AND thin screen */
@media only screen and (max-width: @largestTabletScreen) and (max-height: @thinEditorBreakpoint) {