Advertisement
Guest User

Untitled

a guest
Jun 15th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.00 KB | None | 0 0
  1. import styles from '../RssApp.module.scss';
  2. let newsElement = (element: IRssItem)=> { //Newly added
  3. return (
  4. <div className = {styles.row} >
  5. <div className={styles.myTitle} style={{fontSize: '30px'}}>{element.title}</div>
  6. <div className={ styles.description }>{element.description}</div>
  7.  
  8. <div>{element.author}</div>
  9. </div>
  10. );
  11. };
  12.  
  13. return (
  14. <div className = {styles.column}>
  15.  
  16. <DefaultButton
  17. data-automation-id="test"
  18. text="Settings"
  19. onClick={this._showPanel}
  20. />
  21. {this.state.items.map(newsElement)}
  22. {settingsPanel}
  23. </div>
  24.  
  25.  
  26. );
  27.  
  28. // @import '~@microsoft/sp-office-ui-fabric-core/dist/sass/SPFabricCore.scss';
  29.  
  30.  
  31.  
  32. .rssApp {
  33. .myTitle{
  34. background-color: blue;
  35. }
  36. // .container {
  37. // max-width: 800px;
  38. // margin: 0px auto;
  39. // box-shadow: 0 2px 4px 0 rgba(90, 21, 21, 0.2), 0 25px 50px 0 rgba(0, 0, 0, 0.1);
  40. // }
  41.  
  42. // .row{
  43. // background-color: blue;
  44. // }
  45.  
  46. // .row {
  47. // background-color: black;
  48. // }
  49.  
  50. // .column {
  51. // @include ms-Grid-col;
  52. // @include ms-lg10;
  53. // @include ms-xl8;
  54. // @include ms-xlPush2;
  55. // @include ms-lgPush1;
  56.  
  57. // }
  58.  
  59. // .title {
  60. // @include ms-font-l;
  61. // @include ms-fontColor-white;
  62. // background-color: $ms-color-themePrimary;
  63. // }
  64.  
  65. // .subTitle {
  66. // @include ms-font-l;
  67. // @include ms-fontColor-white;
  68. // }
  69.  
  70. // .description {
  71. // @include ms-font-l;
  72. // @include ms-fontColor-white;
  73. // }
  74.  
  75. // .button {
  76. // // Our button
  77. // text-decoration: none;
  78. // height: 32px;
  79.  
  80. // // Primary Button
  81. // min-width: 80px;
  82. // background-color: $ms-color-themePrimary;
  83. // border-color: $ms-color-themePrimary;
  84. // color: $ms-color-white;
  85.  
  86. // // Basic Button
  87. // outline: transparent;
  88. // position: relative;
  89. // font-family: "Segoe UI WestEuropean","Segoe UI",-apple-system,BlinkMacSystemFont,Roboto,"Helvetica Neue",sans-serif;
  90. // -webkit-font-smoothing: antialiased;
  91. // font-size: $ms-font-size-m;
  92. // font-weight: $ms-font-weight-regular;
  93. // border-width: 0;
  94. // text-align: center;
  95. // cursor: pointer;
  96. // display: inline-block;
  97. // padding: 0 16px;
  98.  
  99. // .label {
  100. // font-weight: $ms-font-weight-semibold;
  101. // font-size: $ms-font-size-m;
  102. // height: 32px;
  103. // line-height: 32px;
  104. // margin: 0 4px;
  105. // vertical-align: top;
  106. // display: inline-block;
  107. // }
  108. // }
  109.  
  110. }
  111.  
  112. /* tslint:disable */
  113. require("./RssApp.module.css");
  114. const styles = {
  115. rssApp: 'rssApp_9a4695d5',
  116. container: 'container_9a4695d5',
  117. row: 'row_9a4695d5',
  118. column: 'column_9a4695d5',
  119. 'ms-Grid': 'ms-Grid_9a4695d5',
  120. myTitle: 'myTitle_9a4695d5',
  121. //title: 'title_9a4695d5',
  122. subTitle: 'subTitle_9a4695d5',
  123. description: 'description_9a4695d5',
  124. button: 'button_9a4695d5',
  125. label: 'label_9a4695d5',
  126. };
  127.  
  128. export default styles;
  129. /* tslint:enable */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement