Search code examples
javascripthtmltidesdksemantic-ui

Semantic-UI based page not work correctly in Tide SDK


I'm trying to make some app in TideSDK using Semantic-UI (http://semantic-ui.com/). When I open my page in Chrome it works correctly:

chrome http://krakow45.pl/test/chrome.png

but when I'm launching my code with TideSDK it looks like:

tide http://krakow45.pl/test/tide.png

How you can see, some elements are missing and it isn't work correctly.

Here is my HTML:

<!DOCTYPE html>
<html>
<head>
    <!-- JavaScript includes -->
    <script src="vendor/jquery.js"></script>
    <script src="js/app.js"></script>
    <script src="vendor/semantic/semantic.js"></script>
    <!-- /JavaScript includes -->

    <!-- CSS includes -->
    <link rel="stylesheet" type="text/css" href="vendor/semantic/semantic.css">
    <link rel="stylesheet" type="text/css" href="css/main.css">
    <!-- /CSS includes -->

    <title>xxx</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
</head>
<body>
    <!-- PAGE: NEW_REPORT -->
    <div id="NEW_REPORT_fieldsContainer" class="ui segment">
        <div class="ui input">
            <input id="NEW_REPORT_firstName" type="text" placeholder="Imię">
        </div><br /><br />
        <div class="ui input">
            <input id="NEW_REPORT_lastName" type="text" placeholder="Nazwisko">
        </div><br /><br />
        <div class="ui left icon input">
            <input id="NEW_REPORT_date" type="text" placeholder="26/03/2015">
            <i class="calendar icon"></i>
        </div><br /><br />
        <div id="NEW_REPORT_buttonNext" class="ui animated button">
            <div class="visible content">Dalej</div>
            <div class="hidden content">
                <i class="right arrow icon"></i>
            </div>
        </div>
    </div>
    <!-- /PAGE: NEW_REPORT -->
</body>


Solution

  • Remember that TideSDK uses an old version of webkit. I'm pretty sure you'll have to prefix your CSS3 rules (-webkit-). But also keep in mind that all the CSS3 rules cannot be used, but for now I haven't encounter major CSS3 issues. Just one thing is bothering me, it's the old developper console..