Compare commits

...

8 Commits

Author SHA1 Message Date
0b508e37b1 0.5.44 2016-10-27 23:21:21 -07:00
e1a3aca9f8 Removing blockly custom media folder 2016-10-27 23:21:05 -07:00
bbe93ae9a2 UI changes: fixing mobile view. 2016-10-27 18:43:09 -07:00
6fd18b4f4c 0.5.43 2016-10-27 16:20:39 -07:00
b511537348 Bump pxt-core to 0.5.21 2016-10-27 16:20:37 -07:00
749ba6b984 UI changes to match the calliope design. 2016-10-27 16:15:44 -07:00
e571bec213 0.5.42 2016-10-27 14:30:07 -07:00
1ad90eda81 Bump pxt-core to 0.5.18 2016-10-27 14:30:05 -07:00
16 changed files with 154 additions and 24 deletions

View File

@ -4,7 +4,7 @@
/**
* Provides access to basic micro:bit functionality.
*/
//% color=#0078D7 weight=100
//% color=#54C9C9 weight=100
namespace basic {
/**
* Sets the color on the build-in LED. Set to 0 to turn off.

View File

@ -34,7 +34,7 @@ enum Colors {
/**
* Provides access to basic micro:bit functionality.
*/
//% color=#0078D7 weight=100
//% color=#54C9C9 weight=100
namespace basic {
/**
* Converts the color name to a number

View File

@ -1,7 +1,7 @@
/**
* Runtime and event utilities.
*/
//% weight=1 color="#333333"
//% weight=1 color="#42495F"
//% advanced=true
namespace control {

View File

@ -108,7 +108,7 @@ enum class Gesture {
SixG = MICROBIT_ACCELEROMETER_EVT_6G
};
//% color=300 weight=99
//% color=#C90072 weight=99
namespace input {
/**
* Do something when a button (``A``, ``B`` or both ``A+B``) is pressed

View File

@ -1,7 +1,7 @@
/**
* Events and data from sensors
*/
//% color=#B4009E weight=99
//% color=#C90072 weight=99
namespace input {
/**
* Attaches code to run when the screen is facing up.

View File

@ -8,7 +8,7 @@ enum class DisplayMode_ {
// TODO DISPLAY_MODE_BLACK_AND_WHITE_LIGHT_SENSE
};
//% color=3 weight=35
//% color=#8169E6 weight=35
namespace led {
/**

View File

@ -1,7 +1,7 @@
/**
* Control of the LED screen.
*/
//% color=#5C2D91 weight=97
//% color=#8169E6 weight=97
namespace led {
// what's the current high value

View File

@ -3,7 +3,7 @@
/**
* Blocks to control the onboard motors
*/
//% weight=30
//% color=#008272 weight=30
namespace motors {
/**
* Controls the power sent to a single motor

View File

@ -125,7 +125,7 @@ enum BeatFraction {
/**
* Generation of music tones through pin ``P0``.
*/
//% color=#D83B01 weight=98
//% color=#DF4600 weight=98
namespace music {
let beatsPerMinute: number = 120;

View File

@ -126,7 +126,7 @@ declare interface Image {
/**
* Provides access to basic micro:bit functionality.
*/
//% color=#0078D7 weight=100
//% color=#54C9C9 weight=100
declare namespace basic {
/**
@ -218,7 +218,7 @@ declare namespace basic {
//% color=300 weight=99
//% color=#C90072 weight=99
declare namespace input {
/**
@ -432,7 +432,7 @@ declare namespace control {
//% color=3 weight=35
//% color=#8169E6 weight=35
declare namespace led {
/**
@ -513,7 +513,7 @@ declare namespace led {
/**
* Blocks to control the onboard motors
*/
//% weight=30
//% color=#008272 weight=30
declare namespace motors {
/**

View File

@ -1,6 +1,6 @@
{
"name": "pxt-calliope",
"version": "0.5.41",
"version": "0.5.44",
"description": "calliope target for PXT",
"keywords": [
"JavaScript",
@ -30,7 +30,7 @@
"typescript": "^1.8.7"
},
"dependencies": {
"pxt-core": "0.5.17",
"pxt-core": "0.5.21",
"less": "^2.6.0",
"semantic-ui-less": "^2.2.4"
}

View File

@ -219,8 +219,6 @@
},
"appTheme": {
"accentColor": "#249899",
"downloadClass": "orange",
"invertedMenu": true,
"defaultLocale": "de",
"logoUrl": "https://calliope.cc/about",
"logo": "./static/Calliopeminieditor.svg",
@ -350,6 +348,11 @@
"browser": "*",
"path": "/static/mb/device/usb-windows-sendto.jpg"
}
]
],
"invertedMenu": true,
"invertedToolbox": true,
"blocklyOptions": {
"trashcan": true
}
}
}

View File

@ -1,3 +1,13 @@
/*******************************
User Variable Overrides
*******************************/
@invertedBackground: #525A67;
@dropdownMenuDistance: 0px;
/*******************************
PXT Theme Overrides
*******************************/
@mainMenuHeight: 5rem;
@mainMenuMinHeight: (@itemVerticalPadding * 2) + 2em;

View File

@ -1,3 +1,15 @@
/*******************************
Site Overrides
*******************************/
.ui.inverted.input input {
background:#424852;
border-radius: 20px;
border: 0px !important;
padding: 0.2em !important;
padding-left: 0.6em !important;
}
.rtl .ui.inverted.input input {
padding-right: 0.6em !important;
}

View File

@ -7,13 +7,20 @@
@secondaryColor: #43C9C9;
@red:#E81123;
@orange:#D78C01;
@yellow:#EEDA47;
@orange:#DF4600;
@yellow:#F4C918;
@green:#3FC863;
@teal:#008272;
@blue:#0078D7;
@violet:#CF0071;
@purple:#8073E5;
@blue:#54C9C9;
@violet:#C90072;
@purple:#8169E6;
@pink:#E2008C;
@brown:#6B5B4C;
@grey:#515B67;
@grey:#42495F;
/*******************************
PXT Overrides
*******************************/
@backgroundColor: #FDFDFA;
@blocklyToolboxColor: #F6F4E6;

View File

@ -1,2 +1,100 @@
/* Import all components */
@import 'semantic';
@import 'themes/default/globals/site.variables';
@import 'themes/pxt/globals/site.variables';
@import 'site/globals/site.variables';
/* Reference import */
@import (reference) "semantic.less";
.openproject {
background: #4ECC60 !important;
}
.blocks-menuitem, .javascript-menuitem {
background: #738791 !important;
}
.help-dropdown-menuitem, .more-dropdown-menuitem {
background: #424955 !important;
margin-right:0px !important;
}
.play-button {
&:extend(.ui all);
&:extend(.button all);
&:extend(.blue all);
}
.download-button {
&:extend(.ui all);
&:extend(.button all);
&:extend(.yellow all);
}
.blocklyTreeRow {
border-radius:5px;
}
/* This removes any padding at the top of the toolbox */
.blocklyTreeRoot {
padding: 0px !important;
}
/* Blockly Text */
.blocklyTreeLabel {
font-family: "Gotham SSm A","Gotham SSm B","Montserrat","Lucida Grande","Lucida Sans Unicode","Lucida Sans",Geneva,Verdana,sans-serif !important;
}
.blocklyTreeLabel {
font-size:1rem !important;
}
.blocklyFlyoutBackground {
fill: @grey;
}
.blocklyToolboxDiv {
/*left:30px !important;*/
padding:7px;
}
/* Mobile */
@media only screen and (max-width: @largestMobileScreen) {
.blocklyTreeLabel {
font-size: 0.5rem !important;
}
}
/* Tablet */
@media only screen and (min-width: @tabletBreakpoint) and (max-width: @largestTabletScreen) {
}
/* Small Monitor */
@media only screen and (min-width: @computerBreakpoint) and (max-width: @largestSmallMonitor) {
.blocklyTreeRow {
width: 230px;
}
}
/* Large Monitor */
@media only screen and (min-width: @largeMonitorBreakpoint) {
.blocklyTreeRow {
width: 230px;
}
}
/*******************************
Menu Bar
*******************************/
#menubar {
height: 5rem;
}
#fileNameInput {
width: 350px;
}