Permalink
Browse files

share: move style from js to css.

  • Loading branch information...
1 parent b731b53 commit daca885ab082e75de6e899c52d00e766839bee03 @cdujeu cdujeu committed Oct 12, 2016
@@ -165,7 +165,19 @@ public static function clearMessagesCache()
}
}
-
+ /**
+ * @param $array
+ */
+ public static function contributeMessages($array){
+ $inst = self::getInstance();
+ if(!isSet($inst->cache["ADDITIONAL_MESSAGES"])){
+ $inst->cache["ADDITIONAL_MESSAGES"] = [];
+ }
+ $inst->cache["ADDITIONAL_MESSAGES"] = $inst->cache["ADDITIONAL_MESSAGES"] + $array;
+ if(isset($inst->cache["MESSAGES"])){
+ unset($inst->cache["MESSAGES"]);
+ }
+ }
/**
* PRIVATE INSTANCE METHODS
@@ -238,6 +250,9 @@ private function getMessagesInst($forceRefresh = false)
VarsFilter::filterI18nStrings($this->cache["CONF_MESSAGES"]);
@file_put_contents($messageFile, "<?php \$MESSAGES = ".var_export($this->cache["MESSAGES"], true) ." ; \$CONF_MESSAGES = ".var_export($this->cache["CONF_MESSAGES"], true) ." ; ");
}
+ if(isSet($this->cache["ADDITIONAL_MESSAGES"])){
+ $this->cache["MESSAGES"] = $this->cache["MESSAGES"] + $this->cache["ADDITIONAL_MESSAGES"];
+ }
return $this->cache["MESSAGES"];
}
@@ -18,6 +18,12 @@ div#react_share_form .mui-checkbox .mui-checkbox-icon {
div#react_share_form div.headerPanel {
background-color: #4aceb0 !important;
}
+div#react_share_form div.headerPanel > div {
+ color: white;
+ font-size: 24px;
+ padding: 20px 16px 14px;
+ word-break: 'break-all';
+}
div#react_share_form .mui-tabs-container .mui-tab-item-container {
background-color: #4aceb0 !important;
}
@@ -34,6 +34,12 @@ div#react_share_form {
}
div.headerPanel {
background-color: @color0 !important;
+ > div{
+ color: white;
+ font-size: 24px;
+ padding:20px 16px 14px;
+ word-break:'break-all';
+ }
}
.mui-tabs-container {
.mui-tab-item-container {
@@ -195,9 +195,7 @@
*/
return (
<div className="headerPanel">
- <div
- style={{fontSize: 24, color:'white', padding:'20px 16px 14px', wordBreak:'break-all'}}
- >{this.context.getMessage('44').replace('%s', PathUtils.getBasename(nodePath))}</div>
+ <div>{this.context.getMessage('44').replace('%s', PathUtils.getBasename(nodePath))}</div>
</div>
);
}

0 comments on commit daca885

Please sign in to comment.