semantic-ui

Semantic UI - Change Theme

青春壹個敷衍的年華 提交于 2019-12-20 10:01:35
问题 I can't get the theme selection to work in Semantic UI. I attempt to follow the instructions provided in the workflow section of the documentation: Files in the examples/ folder of your project can be useful for testing out changes in your UI. For example, you might run gulp watch download a new theme to src/site/themes/ then adjust your theme.config file with the name of the new theme and refresh examples/kitchensink.html to inspect changes in the theme. So in the semantic ui directory,

Change styling on hover semantic-ui-react components

三世轮回 提交于 2019-12-20 04:49:08
问题 if I set up a className for certain components like <Segment className="Change" color='blue' inverted></Segment> and in my css I use .Change:hover{ background-color: black; //or any other change on hover } nothing is overriden on the hover. I have also noticed there are many other components that refuse changes of mine, seemingly randomly. One semantic component will let me change a width the next will not. Is the cause from the same issue? How do I override the color on a hover? 回答1: After

Bug in Meteor/Semantic-UI?

岁酱吖の 提交于 2019-12-19 04:09:37
问题 the usage of a semantic-ui modal window does not work if the root-element is a meteor template: package: semantic-ui-css Error reproduction: hello.html: <template name="hello"> <head> <title>Hello Error</title> </head> <body> <h1>Reproduce error</h1> {{> navigation}} <div class="delete openModal">OPEN<i class="close icon"></i></div> <div id="modalView" class="ui modal"> <div class="content"> <div class="ui fluid input"> Modal Error Test </div> </div> <div class="actions"> <div class="ui

Using vue.js with semantic UI

╄→尐↘猪︶ㄣ 提交于 2019-12-18 10:09:25
问题 I'm trying to use webpack + Semantic UI with Vue.js and I found this library https://vueui.github.io/ But there was problem compling: ERROR in ./~/vue-ui/components/sidebar/sidebar.jade Module parse failed: /Project/node_modules/vue- ui/components/sidebar/sidebar.jade Unexpected token (1:24) You may need an appropriate loader to handle this file type. So I installed jade(pug) but still no luck. And there's comment in github for that lib: WIP, do not use ( https://github.com/vueui/vue-ui ) I

Running into a '__resizeListeners__' of undefined with react and Semantic-UI accordion

◇◆丶佛笑我妖孽 提交于 2019-12-14 03:15:37
问题 I am using Semantic-UI accordion for the Segment react component that is wrapped around an eCharts line plot (using echarts-for-react). I currently have a button that allows me to collapse the line plot, as seen in the "collapsed" variable. I also have a button that allows me to change the size of the component from half screen to full screen. The problem is when the component is already "collapsed" and I trigger the resize from half screen to full screen then "uncollapse" the component, the

Scrolling vertical overflow while still allowing horizontal overflow

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 16:11:37
问题 I'm trying to hide the vertical overflow while allowing the horizontal overflow with a dropdown, so that subcategories can be selected. I've tried using overflow-y: scroll; and overflow-x: visible , but that still causes overflow to the side to scroll. How can I scroll for the vertical overflow, and allow the horizontal overflow? JSFiddle: https://jsfiddle.net/utqz406p/8/ Snippet: $('.ui.dropdown') .dropdown({}); .ui.selection.dropdown.show .menu { overflow: visible !important; } <script src=

Semantic UI form validation - validate certain form fields only if value is not empty

别来无恙 提交于 2019-12-13 12:37:44
问题 I have a form that has fields that are required and also fields that are optional. I am using Semantic UI's Form Validation behavior to validate the fields. However what I want to achieve is that the form validation behavior only validates the optional fields when they have a value in them. An example optional field: <div class="field"> <label>First name</label> <input type="text" name="first_name" placeholder="First name"> </div> An example required field: <div class="required field"> <label

Semantic UI - How to get data of active Input Element?

蓝咒 提交于 2019-12-13 08:47:35
问题 how can I get the value of the input field to the urlData Object? <input id="username"> And the JS is: $('#username').api({ action: 'check username', urlData: {username: $(this).val()}, onSuccess: function(response){ console.log(response) }, onError: function(error){ console.log(error) } });` With normal JQuery i can get it with an $(this).val(); . But in this case it´s empty. How does it work with Semantic UI ? 回答1: You can try like this $( "#username" ).keyup(function() { var value=$(this)

multiple semantic-ui popups with target element defined in atribute of each instance

半城伤御伤魂 提交于 2019-12-13 07:19:09
问题 I have succesfully defined a popup for a clickable link element: The element: `<a href="{{URL::to('alerts')}}" data-tcs="#popup-1">Alerts Page</a>` The script which triggers my popup (note the commented lines!) $('[data-tcs]') .popup({ // (default as in example provided on the S-UI, works well) // popup : $('#popup-1'), // (attempt 1, doesn't work) // popup : $(this).data('tcs'), // (attempt 2, doesn't work) popup : $(this).attr('data-tcs'), on : 'hover', delay: { show: 0, hide: 500 },

How to change position of Semantic UI sidebar for different screen sizes?

做~自己de王妃 提交于 2019-12-13 07:09:51
问题 I am using a Semantic UI sidebar — it's a standard setup: <div class="ui inverted labeled icon right inline vertical sidebar menu"> <a class="item"> <i class="home icon"></i> Home </a> <a class="item"> <i class="block layout icon"></i> Topics </a> <a class="item"> <i class="smile icon"></i> Friends </a> <a class="item"> <i class="calendar icon"></i> History </a> </div> There is also a JSFiddle here. Semantic UI positions its sidebar with classes right , left , top and bottom . I would like to