semantic-ui

How to import Fomantic-UI into an Angular project

纵然是瞬间 提交于 2021-01-27 05:22:41
问题 I'm developing an Angular project base on Fomantic-UI framework (that is a fork of Semantic-UI). I have installed it: npm install --save fomantic-ui and then I have added the following lines in angular.json file: "styles": [ "node_modules/fomantic-ui/dist/semantic.min.css", "src/styles.scss" ], "scripts": [ "node_modules/jquery/dist/jquery.min.js", "node_modules/fomantic-ui/dist/semantic.min.js" ] I have also installed types for it with npm install --save @types/semantic-ui and, according to

Hide element for mobile only - Semantic UI

戏子无情 提交于 2021-01-26 03:57:06
问题 I have problem with hiding image for mobile devices. I'm using Semantic UI framework. In documentation I found some classes: mobile only - will only display below 768px tablet only - will only display between 768px - 991px computer only - will always display 992px and above Just for example, I'm using "computer only" classes to hide image on tablets and mobile, but the result confused me. <div class="ui grid stackable"> <div class="row middle aligned"> <div class="nine wide column"> <h1 class

Hide element for mobile only - Semantic UI

痞子三分冷 提交于 2021-01-26 03:56:33
问题 I have problem with hiding image for mobile devices. I'm using Semantic UI framework. In documentation I found some classes: mobile only - will only display below 768px tablet only - will only display between 768px - 991px computer only - will always display 992px and above Just for example, I'm using "computer only" classes to hide image on tablets and mobile, but the result confused me. <div class="ui grid stackable"> <div class="row middle aligned"> <div class="nine wide column"> <h1 class

semantic ui react select table cells not working

帅比萌擦擦* 提交于 2021-01-25 07:55:20
问题 in my Reactjs App, I want to create a table with selectable cells. on clicking on each cell return me a value. according to the documentation, I should just choose selectable . so I have defined like: <Table.Cell selectable key={j + k} onClick={this.handleCellClick(j, k)}> {j + k} </Table.Cell> this j , k values are coming from the mapping of the wrapper Table.Row , and Table.Column , and the handler method is just a console.log now. when the view is rendered, the onClick is called on each

Uncaught TypeError: Cannot read property 'setAttribute' of undefined at Object.onLoad

社会主义新天地 提交于 2021-01-02 05:00:04
问题 Any ideas what might be causing this error? List of my includes: <link rel="stylesheet" href="../../node_modules/semantic-ui/dist/semantic.min.css"> <link rel="stylesheet" href="../../node_modules/font-awesome/css/font-awesome.min.css"> <link rel="stylesheet" href="../../node_modules/bootstrap/dist/css/bootstrap.min.css"> <link rel="stylesheet" href="../../node_modules/fullcalendar/dist/fullcalendar.min.css"> <script src="../../node_modules/semantic-ui/dist/semantic.min.js"></script> <script

Height issue with segment inside to grid column

萝らか妹 提交于 2020-08-25 10:03:51
问题 I have a grid with 2 columns in it. In column one I have 1 raised segment, in column two I have 2 raised segments. Obviously, the second column will be larger. I need the segment in column one to take on full height. Any ideas? Thanks! <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="//oss.maxcdn.com/semantic-ui/2.1.8/semantic.min.js"></script> <link href="//oss.maxcdn.com/semantic-ui/2.1.8/semantic.min.css" rel="stylesheet" /> <div class=

Height issue with segment inside to grid column

坚强是说给别人听的谎言 提交于 2020-08-25 10:02:52
问题 I have a grid with 2 columns in it. In column one I have 1 raised segment, in column two I have 2 raised segments. Obviously, the second column will be larger. I need the segment in column one to take on full height. Any ideas? Thanks! <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script> <script src="//oss.maxcdn.com/semantic-ui/2.1.8/semantic.min.js"></script> <link href="//oss.maxcdn.com/semantic-ui/2.1.8/semantic.min.css" rel="stylesheet" /> <div class=

Pushed content with Semantic UI visible sidebar is too wide

时间秒杀一切 提交于 2020-07-06 10:51:51
问题 When using a visible Semantic UI sidebar the content in pusher is too wide. It has the width of the browser window, not the width of the available space. <div class="pushable"> <div class="ui left vertical inverted visible sidebar menu"> <a class="item" href="/">Item</a> </div> <div class="pusher"> My content <table class="ui red table"><thead><th>1</th></thead> <tbody><td>Test</td></tbody> </table> </div> </div> See a jsfiddle here: http://jsfiddle.net/xh9p6tgb/1/ 回答1: If you want to have an

Why custom css class does not work on React-Semantic-UI elements?

╄→尐↘猪︶ㄣ 提交于 2020-06-27 16:40:19
问题 I created card with react-semantic-ui, I want to add some extra styles via css class. One example is : I add custom 'card' class with box-shadow property, and that style is not applied. HTML PART: import './App.css'; {/* CLAIM CARDS SECTION */} <Card className='card'> <Card.Content> <Card.Header style={{display: 'flex', justifyContent: 'space-between', alignItems: 'center'}}> <h4> Church Mutual Worker's Compensation Claim <span style={{marginLeft: '130px'}}>Claim #1234567</span> </h4> </Card

semantic-ui-react fixed sidebar and navbar: can't get sidebar and content to scroll nicely

瘦欲@ 提交于 2020-06-27 10:42:12
问题 I'm new to semantic-ui-react and stuck trying to implement this layout. Look at this fiddle This is the closest I've been able to achieve. The two components have scroll-able areas (desired) but my primary issue is the sidebar doesn't stay fixed when scrolling in content, and scrolling to the bottom of the sidebar there is whitespace beneath. Any ideas? Here is the relevant component code: <div style={{paddingTop: '51px'}}> <Menu size="massive" fixed="top" inverted borderless > <Menu.Item